| Conditions | 3 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | public function getChecks() |
||
| 52 | { |
||
| 53 | if (null === $this->checks) { |
||
| 54 | $this->checks = []; |
||
| 55 | foreach ($this->migrations as $key => $migration) { |
||
| 56 | $check = new LaminasDoctrineMigration($this->container->get($migration)); |
||
| 57 | $check->setLabel(sprintf('Doctrine migrations "%s"', $key)); |
||
| 58 | |||
| 59 | $this->checks[$key] = $check; |
||
| 60 | } |
||
| 61 | } |
||
| 62 | |||
| 63 | return $this->checks; |
||
| 64 | } |
||
| 65 | } |
||
| 66 |
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..