1 | <?php |
||
9 | trait GeneratorCommandTrait |
||
10 | { |
||
11 | /** |
||
12 | * addon. |
||
13 | * |
||
14 | * @var \LaravelPlus\Extension\Addons\Addon |
||
15 | */ |
||
16 | protected $addon; |
||
17 | |||
18 | /** |
||
19 | * Execute the console command. |
||
20 | * |
||
21 | * @return bool |
||
22 | */ |
||
23 | 44 | public function handle() |
|
33 | |||
34 | /** |
||
35 | * Process command line arguments |
||
36 | * |
||
37 | * @return bool |
||
38 | */ |
||
39 | 39 | protected function processArguments() |
|
43 | |||
44 | /** |
||
45 | * Option --addon specified. |
||
46 | * |
||
47 | * @return bool |
||
48 | */ |
||
49 | 8 | protected function onAddon() |
|
53 | |||
54 | /** |
||
55 | * Get addon. |
||
56 | * |
||
57 | * @return string |
||
58 | */ |
||
59 | 46 | protected function getAddon() |
|
73 | |||
74 | /** |
||
75 | * Get the application namespace. |
||
76 | * |
||
77 | * @return $string |
||
78 | */ |
||
79 | 20 | protected function getAppNamespace() |
|
83 | |||
84 | /** |
||
85 | * Get the addon namespace. |
||
86 | * |
||
87 | * @return $string |
||
88 | */ |
||
89 | 15 | protected function getAddonNamespace() |
|
93 | |||
94 | /** |
||
95 | * Get the default namespace for the class. |
||
96 | * |
||
97 | * @return $string |
||
98 | */ |
||
99 | 29 | protected function getRootNamespace() |
|
103 | |||
104 | /** |
||
105 | * Get the directory path for root namespace. |
||
106 | * |
||
107 | * @return string |
||
108 | */ |
||
109 | 29 | protected function getRootDirectory() |
|
124 | } |
||
125 |
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..