1 | <?php |
||
18 | final class EntityInteractionEventTest extends TestCase |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * @var EntityInteractionEvent |
||
23 | */ |
||
24 | private $event; |
||
25 | |||
26 | /** |
||
27 | * @var stdClass |
||
28 | */ |
||
29 | private $entity; |
||
30 | |||
31 | public function setUp() |
||
43 | |||
44 | /** |
||
45 | * @test |
||
46 | */ |
||
47 | public function shouldRejectNonExistingClass() |
||
59 | |||
60 | /** |
||
61 | * @test |
||
62 | */ |
||
63 | public function shouldRejectNonObjectEntity() |
||
75 | |||
76 | /** |
||
77 | * @test |
||
78 | */ |
||
79 | public function shouldHaveEntityClass() |
||
83 | |||
84 | /** |
||
85 | * @test |
||
86 | */ |
||
87 | public function shouldHaveEntityId() |
||
91 | |||
92 | /** |
||
93 | * @test |
||
94 | */ |
||
95 | public function shouldHaveEntity() |
||
99 | |||
100 | /** |
||
101 | * @test |
||
102 | */ |
||
103 | public function shouldHaveMethod() |
||
107 | |||
108 | /** |
||
109 | * @test |
||
110 | */ |
||
111 | public function shouldHaveArguments() |
||
115 | |||
116 | } |
||
117 |
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..