| 1 | <?php |
||
| 19 | class Lang |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * AHNAMES Lang to Yii2 i18n. |
||
| 23 | * @param null $txt |
||
|
|
|||
| 24 | * @param string $path |
||
| 25 | * |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | public static function t($str = null, $path = 'app') |
||
| 33 | |||
| 34 | public static function lang($txt = null, $path = 'app') |
||
| 38 | |||
| 39 | public static function translate($a, $path = 'app') |
||
| 48 | } |
||
| 49 |
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.