Property %s does not exist¶
Description¶
This error happens when the Reflection API fails at getting the description of a non-existent property. The name of the property should be checked before using the getProperty
method.
Example¶
<?php
$class = new ReflectionClass('ReflectionClass');
$property = $class->getProperty('unkown');
var_dump($property);
?>
Literal Examples¶
Property unknown does not exist
Solutions¶
Check that the property exists before using
getProperty
.