1 | <?php |
||
12 | class Config implements ConfigContract |
||
13 | { |
||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $items; |
||
18 | |||
19 | /** |
||
20 | * Config constructor. |
||
21 | */ |
||
22 | public function __construct() |
||
26 | |||
27 | /** |
||
28 | * @return bool |
||
29 | */ |
||
30 | public function isPolymorphic() |
||
34 | |||
35 | /** |
||
36 | * @return bool |
||
37 | */ |
||
38 | public function isStrict() |
||
42 | |||
43 | /** |
||
44 | * @return bool |
||
45 | */ |
||
46 | public function isTranslated() |
||
50 | |||
51 | /** |
||
52 | * @return string |
||
53 | * @throws InvalidArgumentException |
||
54 | */ |
||
55 | public function getNotifiedModel() |
||
63 | |||
64 | /** |
||
65 | * @return array |
||
66 | */ |
||
67 | public function getAdditionalFields() |
||
71 | |||
72 | /** |
||
73 | * @return array |
||
74 | */ |
||
75 | public function getAdditionalRequiredFields() |
||
79 | |||
80 | /** |
||
81 | * @return string |
||
82 | */ |
||
83 | public function getTranslationDomain() |
||
87 | |||
88 | /** |
||
89 | * @param string $key |
||
90 | * @param null|mixed $default |
||
91 | * @return mixed |
||
92 | */ |
||
93 | public function get($key, $default = null) |
||
97 | |||
98 | /** |
||
99 | * @param string $key |
||
100 | * @return bool |
||
101 | */ |
||
102 | public function has($key) |
||
106 | |||
107 | /** |
||
108 | * @param string $key |
||
109 | * @param null $value |
||
110 | */ |
||
111 | public function set($key, $value = null) |
||
116 | |||
117 | /** |
||
118 | * @param string $key |
||
119 | * @param null $value |
||
|
|||
120 | */ |
||
121 | public function forget($key) |
||
126 | |||
127 | public function reload() |
||
131 | |||
132 | /** |
||
133 | * @param string $key |
||
134 | * @return mixed |
||
135 | */ |
||
136 | public function __get($key) |
||
140 | |||
141 | /** |
||
142 | * @param string $key |
||
143 | * @param mixed $value |
||
144 | */ |
||
145 | public function __set($key, $value) |
||
149 | } |
||
150 |
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.