1 | <?php |
||
9 | class ObjectItem extends MagicMap |
||
10 | { |
||
11 | /** @var ObjectItem[] */ |
||
12 | protected $__nestedObjects; |
||
13 | |||
14 | public function setNestedProperty($propertyName, $value, Egg $nestedEgg) |
||
28 | |||
29 | protected $__additionalPropertyNames; |
||
30 | public function addAdditionalPropertyName($name) |
||
34 | |||
35 | /** |
||
36 | * @return null|string[] |
||
37 | */ |
||
38 | public function getAdditionalPropertyNames() |
||
42 | |||
43 | protected $__patternPropertyNames; |
||
44 | |||
45 | public function addPatternPropertyName($pattern, $name) |
||
49 | |||
50 | /** |
||
51 | * @param $pattern |
||
52 | * @return null|string[] |
||
53 | */ |
||
54 | public function getPatternPropertyNames($pattern) |
||
62 | |||
63 | public function jsonSerialize() |
||
77 | |||
78 | |||
79 | } |
This check marks implicit conversions of arrays to boolean values in a comparison. While in PHP an empty array is considered to be equal (but not identical) to false, this is not always apparent.
Consider making the comparison explicit by using
empty(..)
or! empty(...)
instead.