1 | <?php |
||
26 | class LogicX implements Specification |
||
27 | { |
||
28 | const AND_X = 'andX'; |
||
29 | |||
30 | const OR_X = 'orX'; |
||
31 | |||
32 | /** |
||
33 | * @var Filter[]|QueryModifier[] |
||
34 | */ |
||
35 | private $children; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | private $expression; |
||
41 | |||
42 | /** |
||
43 | * Take two or more Expression as parameters. |
||
44 | * |
||
45 | * @param string $expression |
||
46 | * @param Filter[]|QueryModifier[] $children |
||
47 | */ |
||
48 | public function __construct($expression, array $children = []) |
||
53 | |||
54 | /** |
||
55 | * @param QueryBuilder $qb |
||
56 | * @param string $dqlAlias |
||
57 | * |
||
58 | * @return string |
||
59 | */ |
||
60 | public function getFilter(QueryBuilder $qb, $dqlAlias) |
||
83 | |||
84 | /** |
||
85 | * @param QueryBuilder $query |
||
86 | * @param string $dqlAlias |
||
87 | */ |
||
88 | public function modify(QueryBuilder $query, $dqlAlias) |
||
96 | |||
97 | /** |
||
98 | * Add another child to this logic tree. |
||
99 | * |
||
100 | * @param Filter|QueryModifier $child |
||
101 | */ |
||
102 | protected function append($child) |
||
106 | } |
||
107 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..