rfc:class_const_visibility
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
rfc:class_const_visibility [2015/12/03 13:56] – Update status ajf | rfc:class_const_visibility [2015/12/08 16:01] – Merged into 7.1 sean-der | ||
---|---|---|---|
Line 50: | Line 50: | ||
} | } | ||
- | </code> | + | //Reflection |
- | + | ||
- | + | ||
- | ===== Backward Incompatible Changes ===== | + | |
- | + | ||
- | ==== Reflection | + | |
- | The reflection extension has been updated | + | |
- | + | ||
- | Instead of getConstant/ | + | |
- | + | ||
- | <code php> | + | |
- | <?php | + | |
class testClass | class testClass | ||
const TEST_CONST = ' | const TEST_CONST = ' | ||
Line 68: | Line 56: | ||
$obj = new ReflectionClass( " | $obj = new ReflectionClass( " | ||
- | $const = $obj->getConstant( " | + | $const = $obj->getReflectionConstant( " |
- | $const-> | + | $consts = $obj->getReflectionConstants(); |
- | $const->getName(); | + | |
- | $const-> | + | |
- | $const-> | + | |
- | $const-> | + | |
- | $const-> | + | |
- | $const-> | + | |
- | $const-> | + | |
</ | </ | ||
+ | |||
+ | |||
+ | ===== Backward Incompatible Changes ===== | ||
===== Proposed PHP Version(s) ===== | ===== Proposed PHP Version(s) ===== | ||
Line 115: | Line 100: | ||
A pull request has been made. It is feature complete but needs review, more tests, and help with opcache changes : https:// | A pull request has been made. It is feature complete but needs review, more tests, and help with opcache changes : https:// | ||
+ | This feature was merged into PHP master here: https:// | ||
===== References ===== | ===== References ===== |
rfc/class_const_visibility.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1