| 1 | <?php declare(strict_types=1); |
||
| 18 | class NumberProcessor extends ScalarProcessor |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * NumberHydrator constructor. |
||
| 22 | * @param ScalarSchema $schema |
||
| 23 | */ |
||
| 24 | public function __construct(ScalarSchema $schema) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Cast a scalar value using the schema. |
||
| 31 | * |
||
| 32 | * @param mixed $value |
||
| 33 | * @param Schema $schema |
||
|
|
|||
| 34 | * |
||
| 35 | * @return float|int|string|\DateTimeInterface |
||
| 36 | * @throws UnsupportedException |
||
| 37 | */ |
||
| 38 | public function hydrate($value) |
||
| 50 | } |
||
| 51 |
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.