1 | <?php |
||
18 | class ExpressionBuilder implements ExpressionBuilderInterface |
||
19 | { |
||
20 | use ExpressionBuilderTrait; |
||
21 | |||
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | * @param Expression|ExpressionInterface $expression the expression to be built |
||
26 | */ |
||
27 | public function build(ExpressionInterface $expression, array &$params = []) |
||
42 | } |
||
43 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: