@@ -89,6 +89,7 @@ |
||
89 | 89 | |
90 | 90 | /** |
91 | 91 | * @throws \Exception |
92 | + * @param AbstractStep $step |
|
92 | 93 | */ |
93 | 94 | protected function performStep($step, &$params, $track) |
94 | 95 | { |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | public function railway() : Railway |
11 | 11 | { |
12 | 12 | return (new Railway) |
13 | - ->step(function ($params) { |
|
13 | + ->step(function($params) { |
|
14 | 14 | echo "Hey {$params['name']}. Say hello to anonymous function!"; |
15 | 15 | //return error($params, 'Early fail'); |
16 | 16 | return ok($params, ['newParam' => 'newValue']); |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | public function nestedRailway($params) |
39 | 39 | { |
40 | 40 | return (new Railway) |
41 | - ->step(function ($params) { |
|
41 | + ->step(function($params) { |
|
42 | 42 | //return error($params, 'Nested Railway failed!'); |
43 | 43 | return ok($params, ['nestedRwParam' => 'nestedRwValue']); |
44 | 44 | }) |