| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 8 | class ReadOnlyRepositoryTraitTest extends TestCase |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var ReadOnlyRepositoryTrait |
||
| 12 | */ |
||
| 13 | private $repository; |
||
| 14 | |||
| 15 | public function testCreate() |
||
| 16 | { |
||
| 17 | $this->expectExceptionMessage('The create method of this repository is not supported'); |
||
| 18 | $this->repository->create([]); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function testUpdate() |
||
| 25 | } |
||
| 26 | |||
| 27 | public function testDelete() |
||
| 31 | } |
||
| 32 | |||
| 33 | protected function setUp(): void |
||
| 36 | } |
||
| 37 | } |
||
| 38 |
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..