rfc:returntypehint
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:returntypehint [2010/07/28 19:38] – New example felipe | rfc:returntypehint [2010/07/28 20:08] – New exampel felipe | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Request for Comments: | + | ====== Request for Comments: |
* Version: 1.0 | * Version: 1.0 | ||
* Date: 2010-07-28 | * Date: 2010-07-28 | ||
Line 33: | Line 33: | ||
PHP Catchable fatal error: | PHP Catchable fatal error: | ||
called in ... on line 9 and returning in ... on line 4 | called in ... on line 9 and returning in ... on line 4 | ||
+ | */ | ||
+ | </ | ||
+ | |||
+ | === Using an user class type === | ||
+ | |||
+ | <code php> | ||
+ | <?php | ||
+ | |||
+ | class Bar { } | ||
+ | |||
+ | class Foo extends Bar { | ||
+ | public function Bar test($x) { | ||
+ | return $x; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | $foo = new Foo; | ||
+ | $foo-> | ||
+ | $foo-> | ||
+ | /* | ||
+ | PHP Catchable fatal error: | ||
+ | called in ... on line 13 and returning in ... on line 7 | ||
*/ | */ | ||
</ | </ | ||
Line 74: | Line 96: | ||
var_dump($func-> | var_dump($func-> | ||
var_dump($func-> | var_dump($func-> | ||
- | var_dump($func-> | + | var_dump($func-> |
</ | </ | ||
rfc/returntypehint.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1