| 1 | <?php |
||
| 24 | class EscaperFactory |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * |
||
| 28 | * The encoding for the escapers. |
||
| 29 | * |
||
| 30 | * @var string |
||
| 31 | * |
||
| 32 | */ |
||
| 33 | protected $encoding; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * |
||
| 37 | * The `htmlspecialchars()` flags for the escapers. |
||
| 38 | * |
||
| 39 | * @var int |
||
| 40 | * |
||
| 41 | */ |
||
| 42 | protected $flags; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * |
||
| 46 | * Constructor. |
||
| 47 | * |
||
| 48 | * @param string $encoding The encoding for the escapers. |
||
| 49 | * |
||
| 50 | * @param int $flags The `htmlspecialchars()` flags for the escapers. |
||
| 51 | * |
||
| 52 | */ |
||
| 53 | 85 | public function __construct($encoding = null, $flags = null) |
|
| 58 | |||
| 59 | /** |
||
| 60 | * |
||
| 61 | * Creates a new Escaper object. |
||
| 62 | * |
||
| 63 | * @param string $encoding The encoding for the escapers. |
||
|
|
|||
| 64 | * |
||
| 65 | * @param int $flags The `htmlspecialchars()` flags for the escapers. |
||
| 66 | * |
||
| 67 | * @return Escaper |
||
| 68 | * |
||
| 69 | */ |
||
| 70 | public function newInstance() |
||
| 78 | } |
||
| 79 |
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.