1 | <?php namespace Mascame\Artificer\Model; |
||
9 | class FakeModel extends \Eloquent |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * @var |
||
14 | */ |
||
15 | public static $fakeTable; |
||
16 | |||
17 | /** |
||
18 | * @var |
||
19 | */ |
||
20 | public static $fakePrimaryKey; |
||
21 | // |
||
22 | // /** |
||
23 | // * @param array $attributes |
||
24 | // */ |
||
25 | public function __construct(array $attributes = array()) |
||
36 | |||
37 | protected $guarded = array(); |
||
38 | |||
39 | public $timestamps = false; |
||
40 | |||
41 | /** |
||
42 | * @param $table |
||
43 | * @param null $primaryKey |
||
|
|||
44 | * @return static |
||
45 | */ |
||
46 | public function setup($config) |
||
65 | } |
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.