1 | <?php |
||
5 | final class GmapsUrlSigner |
||
6 | { |
||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | private $secretCode; |
||
11 | |||
12 | /** |
||
13 | * GmapsUrlSigner constructor. |
||
14 | * @param string $apiKey |
||
|
|||
15 | * @param string $secretCode |
||
16 | */ |
||
17 | public function __construct(string $secretCode) |
||
21 | |||
22 | /** |
||
23 | * @param string $url |
||
24 | * @return string |
||
25 | */ |
||
26 | public function sign(string $url): string |
||
38 | |||
39 | /** |
||
40 | * Use as a callable |
||
41 | * |
||
42 | * @param string $url |
||
43 | * @return string |
||
44 | */ |
||
45 | public function __invoke(string $url): string |
||
49 | } |
||
50 |
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.