1 | <?php |
||
20 | abstract class AbstractAuthItemSearch extends Model |
||
21 | { |
||
22 | use AuthManagerAwareTrait; |
||
23 | use ContainerAwareTrait; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | public $name; |
||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | public $description; |
||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | public $rule_name; |
||
37 | |||
38 | /** |
||
39 | * @return int |
||
40 | */ |
||
41 | abstract public function getType(); |
||
42 | |||
43 | /** |
||
44 | * @return array |
||
45 | */ |
||
46 | public function scenarios() |
||
52 | |||
53 | public function search($params = []) |
||
74 | } |
||
75 |
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: