| 1 | <?php |
||
| 18 | class YiiDebug extends CComponent |
||
| 19 | { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Displays a variable. |
||
| 23 | * This method achieves the similar functionality as var_dump and print_r |
||
| 24 | * but is more robust when handling complex objects such as Yii controllers. |
||
| 25 | * @param mixed $var variable to be dumped |
||
| 26 | */ |
||
| 27 | public static function dump($var, $depth=10) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Writes a trace dump. |
||
| 35 | * @param string $msg message to be logged |
||
|
|
|||
| 36 | */ |
||
| 37 | public static function trace($message) |
||
| 41 | |||
| 42 | public static function getClass($class) |
||
| 46 | |||
| 47 | public static function getClassMethod($class,$name) |
||
| 54 | |||
| 55 | public static function t($str,$params=array(),$dic='yii-debug-toolbar') { |
||
| 58 | } |
||
| 59 |
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.