We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 1 |
Paths | 1 |
Total Lines | 30 |
Code Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function testObjectInheritance() |
||
21 | { |
||
22 | $this->assertArrayHasKey('Query', $this->config); |
||
23 | $this->assertEquals( |
||
24 | [ |
||
25 | 'type' => 'object', |
||
26 | 'extends' => ['QueryFoo', 'QueryBar', 'QueryHelloWord'], |
||
27 | 'decorator' => false, |
||
28 | 'config' => [ |
||
29 | 'fields' => [ |
||
30 | 'period' => [ |
||
31 | 'type' => 'Period', |
||
32 | 'args' => [], |
||
33 | ], |
||
34 | 'bar' => [ |
||
35 | 'type' => 'String', |
||
36 | 'args' => [], |
||
37 | ], |
||
38 | 'sayHello' => [ |
||
39 | 'type' => 'String', |
||
40 | 'args' => [], |
||
41 | ], |
||
42 | ], |
||
43 | 'interfaces' => ['QueryHelloWord'], |
||
44 | 'name' => 'Query', |
||
45 | ], |
||
46 | ], |
||
47 | $this->config['Query'] |
||
48 | ); |
||
49 | } |
||
50 | |||
78 |
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..