1 | <?php |
||
31 | class Application |
||
32 | { |
||
33 | /** @var Container $registry */ |
||
34 | private $treasureChest; |
||
35 | |||
36 | /** @var string $configFolder */ |
||
37 | private $configFolder = 'config'; |
||
38 | |||
39 | /** @var string $environment */ |
||
40 | private $environment = 'production'; |
||
41 | |||
42 | /** |
||
43 | * There be nay feckin wi' constructors on board this ship |
||
44 | * There be nay copyin' o' th'ship either |
||
45 | * This ship is a singleton! |
||
46 | */ |
||
47 | private function __construct(){} |
||
48 | |||
49 | private function __clone(){} |
||
50 | |||
51 | |||
52 | /** |
||
53 | * Ahoy! There nay be boardin without yer configuration |
||
54 | * |
||
55 | * @param array $config |
||
|
|||
56 | * @return Application |
||
57 | */ |
||
58 | 10 | public static function ahoy() |
|
74 | |||
75 | |||
76 | /** |
||
77 | * |
||
78 | * T' the high seas! Garrr! |
||
79 | * |
||
80 | * @return bool |
||
81 | * @throws \Exception |
||
82 | */ |
||
83 | 8 | public function setSail() |
|
115 | |||
116 | /** |
||
117 | * @return bool |
||
118 | */ |
||
119 | public function isMultilingual(): bool |
||
124 | |||
125 | |||
126 | /** |
||
127 | * @param ServerRequestInterface $request |
||
128 | * @param bool $handle |
||
129 | * @return ServerRequestInterface |
||
130 | * @throws NotFoundException |
||
131 | */ |
||
132 | private function i18nRequestCheck(ServerRequestInterface $request, bool $handle = true): ServerRequestInterface |
||
145 | |||
146 | /** |
||
147 | * @return Container |
||
148 | */ |
||
149 | 1 | public function getContainer(): Container |
|
153 | |||
154 | /** |
||
155 | * @param string $configFolder |
||
156 | */ |
||
157 | 8 | public function setConfigFolder(string $configFolder) |
|
161 | |||
162 | /** |
||
163 | * @param string $environment |
||
164 | */ |
||
165 | public function setEnvironment(string $environment) |
||
169 | } |
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.