| 1 | <?php |
||
| 13 | class PipelineCollection |
||
| 14 | { |
||
| 15 | /** @var Pipeline[] | \SplFixedArray */ |
||
| 16 | private $pipelines; |
||
| 17 | |||
| 18 | 51 | public function __construct(PipelineFactory $pipelineFactory, int $maxProcessNumber = 10) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @param AbstractParaunitProcess $process |
||
| 29 | * @return Pipeline |
||
| 30 | * @throws \RuntimeException |
||
| 31 | */ |
||
| 32 | 26 | public function push(AbstractParaunitProcess $process): Pipeline |
|
| 44 | |||
| 45 | 28 | public function hasEmptySlots(): bool |
|
| 55 | |||
| 56 | 28 | public function isEmpty(): bool |
|
| 66 | |||
| 67 | 24 | public function triggerProcessTermination() |
|
| 73 | } |
||
| 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..