1 | <?php |
||
25 | class ObjectType extends AbstractType |
||
26 | { |
||
27 | /** |
||
28 | * The name of the class this must be an instance of |
||
29 | * |
||
30 | * @readable |
||
31 | * @var ClassName |
||
32 | */ |
||
33 | protected $classname; |
||
34 | |||
35 | /** |
||
36 | * Generic types for this object |
||
37 | * |
||
38 | * @readable |
||
39 | * @var ArrayList |
||
40 | */ |
||
41 | protected $generics; |
||
42 | |||
43 | /** |
||
44 | * Creates this ObjectType with the given classname |
||
45 | * |
||
46 | * @param mixed $class The name of the class this must be an |
||
|
|||
47 | * instance of |
||
48 | */ |
||
49 | 39 | public function __construct($classname) |
|
56 | |||
57 | /** |
||
58 | * {@inheritDoc} |
||
59 | */ |
||
60 | 2 | public function equals($type) : bool |
|
82 | |||
83 | /** |
||
84 | * Returns a string representation of the object |
||
85 | * |
||
86 | * @return string |
||
87 | */ |
||
88 | 2 | public function __toString() : string |
|
100 | } |
||
101 |
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.