1 | <?php |
||
14 | class AppKernel extends Kernel |
||
15 | { |
||
16 | /** |
||
17 | * @var string[] |
||
18 | */ |
||
19 | private $bundlesToRegister = []; |
||
20 | |||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | private $configFiles = []; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $cachePrefix = ''; |
||
30 | |||
31 | /** |
||
32 | * @var string|null; |
||
33 | */ |
||
34 | private $fakedProjectDir; |
||
35 | |||
36 | /** |
||
37 | * @param string $cachePrefix |
||
38 | */ |
||
39 | 1 | public function __construct($cachePrefix) |
|
46 | |||
47 | /** |
||
48 | * @param string $bundle |
||
|
|||
49 | */ |
||
50 | 1 | public function addBundle($bundleClassName) |
|
54 | |||
55 | /** |
||
56 | * @param string $configFile path to config file |
||
57 | */ |
||
58 | 1 | public function addConfigFile($configFile) |
|
62 | |||
63 | 1 | public function getCacheDir() |
|
67 | |||
68 | 1 | public function getLogDir() |
|
72 | |||
73 | public function getProjectDir() |
||
81 | |||
82 | /** |
||
83 | * @param string|null $rootDir |
||
84 | */ |
||
85 | public function setRootDir($rootDir) |
||
89 | |||
90 | /** |
||
91 | * @param string|null $projectDir |
||
92 | */ |
||
93 | public function setProjectDir($projectDir) |
||
97 | |||
98 | 1 | public function registerBundles() |
|
108 | |||
109 | /** |
||
110 | * (From MicroKernelTrait) |
||
111 | * {@inheritdoc} |
||
112 | */ |
||
113 | public function registerContainerConfiguration(LoaderInterface $loader) |
||
131 | |||
132 | /** |
||
133 | * (From MicroKernelTrait). |
||
134 | * |
||
135 | * @internal |
||
136 | */ |
||
137 | public function loadRoutes(LoaderInterface $loader) |
||
144 | } |
||
145 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$ireland
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was changed, but the annotation was not.