| Total Complexity | 7 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class TypedNoDefaultReflectionProperty extends ReflectionProperty |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * {@inheritDoc} |
||
| 14 | * |
||
| 15 | * Checks that a typed property is initialized before accessing its value. |
||
| 16 | * This is neccessary to avoid PHP error "Error: Typed property must not be accessed before initialization". |
||
| 17 | * Should be used only for reflecting typed properties without a default value. |
||
| 18 | */ |
||
| 19 | public function getValue($object = null) |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * {@inheritDoc} |
||
| 26 | * |
||
| 27 | * Works around the problem with setting typed no default properties to |
||
| 28 | * NULL which is not supported, instead unset() to uninitialize. |
||
| 29 | * |
||
| 30 | * @link https://github.com/doctrine/orm/issues/7999 |
||
| 31 | */ |
||
| 32 | public function setValue($object, $value = null) |
||
| 49 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.