| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | 17 | public function push(AbstractParaunitProcess $process): Pipeline |
|
| 31 | { |
||
| 32 | 17 | foreach ($this->pipelines as $pipeline) { |
|
| 33 | 17 | if ($pipeline->isFree()) { |
|
| 34 | 16 | $pipeline->execute($process); |
|
| 35 | |||
| 36 | 17 | return $pipeline; |
|
| 37 | } |
||
| 38 | } |
||
| 39 | |||
| 40 | 1 | throw new \RuntimeException('Cannot find an available pipeline'); |
|
| 41 | } |
||
| 42 | |||
| 67 |
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..