1 | <?php |
||
15 | class Railway |
||
16 | { |
||
17 | const TRACK_SUCCESS = 'success_track'; |
||
18 | const TRACK_FAILURE = 'failure_track'; |
||
19 | |||
20 | /** |
||
21 | * @var \SplQueue |
||
22 | */ |
||
23 | public $stepsQueue; |
||
24 | /** |
||
25 | * Accumulator of passed steps, while running railway |
||
26 | * |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $signaturesPipeline = []; |
||
30 | |||
31 | 6 | public function __construct() |
|
35 | |||
36 | /** |
||
37 | * |
||
38 | * @param AbstractStep $stepObject |
||
39 | * @param array $opt |
||
40 | * @return $this |
||
41 | */ |
||
42 | 6 | public function rawStep(AbstractStep $stepObject, $opt = []) : Railway |
|
47 | |||
48 | 6 | public function step(callable $callable, $opt = []) : Railway |
|
53 | |||
54 | public function always(callable $callable, $opt = []) : Railway |
||
59 | |||
60 | public function failure(callable $callable, $opt = []) : Railway |
||
65 | |||
66 | public function tryCatch(callable $callable, $opt = []) : Railway |
||
71 | |||
72 | /** |
||
73 | * @param $params |
||
74 | * @return Result |
||
75 | * @throws \Exception |
||
76 | */ |
||
77 | 6 | public function runWithParams($params) |
|
91 | |||
92 | /** |
||
93 | * @throws \Exception |
||
94 | */ |
||
95 | 6 | protected function performStep($step, &$params, $track) |
|
117 | } |
||
118 |
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..