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