1 | <?php |
||||
2 | namespace Elgg\Composer; |
||||
3 | |||||
4 | use Composer\Installer\PackageEvent; |
||||
5 | |||||
6 | /** |
||||
7 | * A composer command handler to run after post-package-update event |
||||
8 | */ |
||||
9 | class PostUpdate { |
||||
10 | /** |
||||
11 | * Todo |
||||
12 | * |
||||
13 | * @param PackageEvent $event The Composer event (install/upgrade) |
||||
1 ignored issue
–
show
|
|||||
14 | * |
||||
15 | * @return void |
||||
16 | */ |
||||
17 | public static function execute(PackageEvent $event) { |
||||
1 ignored issue
–
show
The parameter
$event is not used and could be removed.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
Loading history...
|
|||||
18 | |||||
19 | } |
||||
20 | } |
||||
21 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths