| 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 | * Creates this ObjectType with the given classname |
||
| 37 | * |
||
| 38 | * @param mixed $class The name of the class this must be an |
||
|
|
|||
| 39 | * instance of |
||
| 40 | */ |
||
| 41 | 29 | public function __construct($classname) |
|
| 47 | |||
| 48 | /** |
||
| 49 | * {@inheritDoc} |
||
| 50 | */ |
||
| 51 | 1 | public function equals($type) : bool |
|
| 64 | |||
| 65 | /** |
||
| 66 | * Returns a string representation of the object |
||
| 67 | * |
||
| 68 | * @return string |
||
| 69 | */ |
||
| 70 | 21 | public function __toString() : string |
|
| 76 | } |
||
| 77 |
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.