1 | <?php namespace Lanin\Laravel\SetupWizard\Commands; |
||
6 | class Setup extends Command |
||
7 | { |
||
8 | const VERSION = '0.1.0'; |
||
9 | |||
10 | /** |
||
11 | * The name and signature of the console command. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $signature = 'app:setup |
||
16 | {step? : Step to run} |
||
17 | {--P|pretend : Pretend to execute}'; |
||
18 | |||
19 | /** |
||
20 | * The console command description. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $description = 'Setup the project.'; |
||
25 | |||
26 | /** |
||
27 | * Installation steps. |
||
28 | * |
||
29 | * @var array |
||
30 | */ |
||
31 | public $steps = []; |
||
32 | |||
33 | /** |
||
34 | * @inheritDoc |
||
35 | */ |
||
36 | public function __construct() |
||
42 | |||
43 | /** |
||
44 | * @inheritDoc |
||
45 | */ |
||
46 | public function getHelp() |
||
57 | |||
58 | /** |
||
59 | * Execute the console command. |
||
60 | * |
||
61 | * @return mixed |
||
62 | */ |
||
63 | public function handle() |
||
75 | |||
76 | /** |
||
77 | * Run all steps one by one. |
||
78 | * |
||
79 | * @param array $steps |
||
80 | * @param bool $pretend |
||
81 | * @return bool |
||
82 | */ |
||
83 | protected function runSteps($steps = [], $pretend = false) |
||
98 | |||
99 | /** |
||
100 | * Run installation step |
||
101 | * |
||
102 | * @param string $step |
||
103 | * @param bool $pretend |
||
104 | * @return bool |
||
105 | */ |
||
106 | protected function runStep($step, $pretend = false) |
||
124 | |||
125 | /** |
||
126 | * Instantiate step class. |
||
127 | * |
||
128 | * @param string $step |
||
129 | * @return AbstractStep |
||
130 | * @throws \Exception |
||
131 | */ |
||
132 | protected function createStep($step) |
||
149 | |||
150 | /** |
||
151 | * Check if step exists. |
||
152 | * |
||
153 | * @param string $step |
||
154 | * @return bool |
||
155 | */ |
||
156 | protected function stepExist($step) |
||
160 | |||
161 | } |
||
162 |
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..