1 | <?php |
||
7 | class StubFileManager |
||
8 | { |
||
9 | const STUBS_FOLDER_NAME = 'Stubs'; |
||
10 | |||
11 | const STUBS_FILE_FORMAT = '.stub'; |
||
12 | |||
13 | /** |
||
14 | * Render The Stub With Passed Paramt into typeHintClassPath |
||
15 | * |
||
16 | * @param string $stubName |
||
|
|||
17 | * |
||
18 | * @param array $keysMap |
||
19 | * |
||
20 | * @return string |
||
21 | */ |
||
22 | public static function getRenderedStub($stubFileName, $keysMap = null) |
||
44 | |||
45 | /** |
||
46 | * Get the Stubs Content When Stub File is Exists! |
||
47 | * |
||
48 | * @param string $stubName |
||
49 | * |
||
50 | * @throws InvalidArgumentException |
||
51 | * |
||
52 | * @return string |
||
53 | */ |
||
54 | private static function getStubContentByFileName($stubName) |
||
66 | } |
||
67 |
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.