1 | <?php namespace Propaganistas\LaravelPhone\Exceptions; |
||
6 | class NumberParseException extends libNumberParseException |
||
7 | { |
||
8 | /** |
||
9 | * @var string |
||
10 | */ |
||
11 | protected $number; |
||
12 | |||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | protected $countries = []; |
||
17 | |||
18 | /** |
||
19 | * Country specification required static constructor. |
||
20 | * |
||
21 | * @param string $number |
||
22 | * @return static |
||
23 | */ |
||
24 | 33 | public static function countryRequired($number) |
|
35 | |||
36 | /** |
||
37 | * Country mismatch static constructor. |
||
38 | * |
||
39 | * @param string $number |
||
40 | * @param string|array $country |
||
|
|||
41 | * @return static |
||
42 | */ |
||
43 | 30 | public static function countryMismatch($number, $countries) |
|
57 | |||
58 | /** |
||
59 | * @return string |
||
60 | */ |
||
61 | 3 | public function getNumber() |
|
65 | |||
66 | /** |
||
67 | * @return array |
||
68 | */ |
||
69 | 3 | public function getCountries() |
|
73 | } |
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.