rfc:returntypehint
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
rfc:returntypehint [2010/07/29 00:44] – - Update example felipe | rfc:returntypehint [2010/07/29 01:36] – - Update examples felipe | ||
---|---|---|---|
Line 116: | Line 116: | ||
$func = new ReflectionMethod(' | $func = new ReflectionMethod(' | ||
- | var_dump($func-> | + | var_dump($func-> |
- | var_dump($func-> | + | var_dump($func-> |
- | var_dump($func-> | + | |
</ | </ | ||
Line 131: | Line 130: | ||
$func = new ReflectionFunction(' | $func = new ReflectionFunction(' | ||
- | var_dump($func-> | + | var_dump($func-> |
- | var_dump($func-> | + | var_dump($func-> |
</ | </ | ||
+ | === Using " | ||
+ | |||
+ | <code php> | ||
+ | <?php | ||
+ | |||
+ | class foo { | ||
+ | function self bar() { | ||
+ | return new foo; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | $func = new ReflectionMethod(' | ||
+ | var_dump($func-> | ||
+ | var_dump($func-> | ||
+ | </ | ||
===== Patch ===== | ===== Patch ===== |
rfc/returntypehint.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1