1 | <?php |
||
22 | class StartController extends CommonController |
||
23 | { |
||
24 | const MAIN_CONFIG = '.hidev/config.yml'; |
||
25 | |||
26 | /** |
||
27 | * @var string absolute path to the project root directory |
||
28 | */ |
||
29 | public $prjdir; |
||
30 | |||
31 | /** |
||
32 | * @var bool hidev already started flag |
||
33 | */ |
||
34 | public static $started = false; |
||
35 | |||
36 | /** |
||
37 | * Make action. |
||
38 | */ |
||
39 | public function actionMake() |
||
47 | |||
48 | /** |
||
49 | * Update action. |
||
50 | * @return int exit code |
||
51 | */ |
||
52 | public function actionUpdate() |
||
56 | |||
57 | /** |
||
58 | * Adds aliases: |
||
59 | * - @prjdir alias to current project root dir |
||
60 | * - current package namespace for it could be used from hidev. |
||
61 | */ |
||
62 | public function addAliases() |
||
72 | |||
73 | /** |
||
74 | * Require all configured requires. |
||
75 | */ |
||
76 | protected function requireAll() |
||
92 | |||
93 | /** |
||
94 | * Include all configs. |
||
95 | */ |
||
96 | public function includeAll() |
||
109 | |||
110 | /** |
||
111 | * Chdirs to project's root by looking for config file in the current directory and up. |
||
112 | * @throws InvalidParamException when failed to find |
||
113 | * @return string path to the root directory of hidev project |
||
114 | */ |
||
115 | protected function findPrjDir() |
||
127 | } |
||
128 |
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: