1 | <?php |
||
16 | abstract class Loader |
||
17 | { |
||
18 | /** |
||
19 | * The filesystem instance. |
||
20 | * |
||
21 | * @var \Illuminate\Filesystem\Filesystem |
||
22 | */ |
||
23 | protected $files; |
||
24 | |||
25 | /** |
||
26 | * The path to the application's packages. |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $packagePath; |
||
31 | |||
32 | /** |
||
33 | * Create a new publisher instance. |
||
34 | * |
||
35 | * @param \Illuminate\Filesystem\Filesystem $files |
||
36 | * @param string $publishPath |
||
|
|||
37 | */ |
||
38 | public function __construct(Filesystem $files) |
||
42 | |||
43 | /** |
||
44 | * Publish files from a given path. |
||
45 | * |
||
46 | * @param string $package |
||
47 | * @param string $source |
||
48 | * |
||
49 | * @return bool |
||
50 | */ |
||
51 | public function getFileList($package) |
||
55 | |||
56 | /** |
||
57 | * Set the default package path. |
||
58 | * |
||
59 | * @param string $packagePath |
||
60 | */ |
||
61 | public function setPackagePath($packagePath) |
||
65 | |||
66 | /** |
||
67 | * Get the source directory to publish. |
||
68 | * |
||
69 | * @param string $packagePath |
||
70 | * |
||
71 | * @return string |
||
72 | * |
||
73 | * @throws \InvalidArgumentException |
||
74 | */ |
||
75 | abstract protected function getSource($packagePath); |
||
76 | } |
||
77 |
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.