Conditions | 4 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
51 | public function initAnnotation(array $properties) |
||
52 | { |
||
53 | if(count($properties) !== 1 || !isset($properties['name']) || !is_string($properties['name'])) |
||
54 | { |
||
55 | throw new AnnotationException('The @databag annotation requires a property "name" of type string'); |
||
56 | } |
||
57 | $this->sName = $properties['name']; |
||
58 | } |
||
68 |
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.