1 | <?php |
||
24 | class Application extends \yii\console\Application implements ViewContextInterface |
||
25 | { |
||
26 | protected $_viewPath; |
||
27 | |||
28 | protected $_config; |
||
29 | |||
30 | protected $_first = true; |
||
31 | |||
32 | public function __construct($config = []) |
||
33 | { |
||
34 | $this->_config = $config; |
||
35 | parent::__construct($config); |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Creates application with given config and runs it. |
||
40 | * @param array $config |
||
41 | * @return int exit code |
||
42 | */ |
||
43 | public static function main(array $config) |
||
63 | |||
64 | public static function readExtraVendor($dir) |
||
68 | |||
69 | public static function readExtraConfig($path) |
||
73 | |||
74 | public function loadExtraConfig($path) |
||
78 | |||
79 | /** |
||
80 | * Load extra config files. |
||
81 | * @param array $config |
||
|
|||
82 | * @return void |
||
83 | */ |
||
84 | public function loadExtraVendor($dir) |
||
88 | |||
89 | /** |
||
90 | * Implements extra configuration. |
||
91 | * @param array $config |
||
92 | * @return void |
||
93 | */ |
||
94 | public function setExtraConfig($config) |
||
113 | |||
114 | public function createControllerByID($id) |
||
134 | |||
135 | public function runRequest($string) |
||
144 | } |
||
145 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.