Class %s does not have a property named %s¶
Description¶
The reflection extension allows the manipulation of various aspect of existing objects. Yet, it doesn’t allow the assignation of values to non-existing properties, static or not.
Example¶
<?php
class X { }
$rc = new ReflectionClass('X');
$rc->setStaticPropertyValue('property', 'value');
?>
Literal Examples¶
Class X does not have a property named property
Solutions¶
Make sure the property exists before trying to assign it a value.
Make sure the property is static.