| 1 | <?php |
||
| 10 | class ExecutionProcessFactory |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $consolePath; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | private $environment; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var float|null |
||
| 24 | */ |
||
| 25 | private $processTimeout; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $consolePath |
||
| 29 | * @param float|null $processTimeout |
||
| 30 | * @param string $environment |
||
| 31 | */ |
||
| 32 | 13 | public function __construct($consolePath, $processTimeout, $environment) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * Create process for given execution-uuid. |
||
| 41 | * |
||
| 42 | * @param string $uuid |
||
| 43 | * |
||
| 44 | * @return Process |
||
| 45 | */ |
||
| 46 | 2 | public function create($uuid) |
|
| 58 | } |
||
| 59 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: