| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | 51 | public function __construct(PipelineFactory $pipelineFactory, int $maxProcessNumber = 10) |
|
| 19 | { |
||
| 20 | 51 | $this->pipelines = new \SplFixedArray($maxProcessNumber); |
|
|
|
|||
| 21 | |||
| 22 | 51 | for ($pipelineNumber = 1; $pipelineNumber <= $maxProcessNumber; ++$pipelineNumber) { |
|
| 23 | 51 | $this->pipelines->offsetSet($pipelineNumber - 1, $pipelineFactory->create($pipelineNumber)); |
|
| 24 | } |
||
| 25 | } |
||
| 26 | |||
| 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..