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 | 20 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | public function testEnumInheritance() |
||
| 52 | { |
||
| 53 | $this->assertArrayHasKey('Period', $this->config); |
||
| 54 | $this->assertEquals( |
||
| 55 | [ |
||
| 56 | 'type' => 'enum', |
||
| 57 | 'extends' => ['Day', 'Month', 'Year'], |
||
| 58 | 'virtual' => false, |
||
| 59 | 'config' => [ |
||
| 60 | 'name' => 'Period', |
||
| 61 | 'values' => [ |
||
| 62 | 'YEAR' => ['value' => 3], |
||
| 63 | 'MONTH' => ['value' => 2], |
||
| 64 | 'DAY' => ['value' => 1], |
||
| 65 | ], |
||
| 66 | ], |
||
| 67 | ], |
||
| 68 | $this->config['Period'] |
||
| 69 | ); |
||
| 70 | } |
||
| 71 | |||
| 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..