Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit ac66954

Browse files
committed
fix : fixing rector errors
1 parent 341c299 commit ac66954

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Contract/Prefetcher.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
namespace Narrowspark\Automatic\Prefetcher\Contract;
1515

16+
use Composer\Installer\InstallerEvent;
17+
1618
interface Prefetcher
1719
{
1820
/**
@@ -25,5 +27,5 @@ public function prefetchComposerRepositories(): void;
2527
/**
2628
* @param \Composer\Installer\InstallerEvent|\Composer\Installer\PackageEvent $event
2729
*/
28-
public function fetchAllFromOperations($event): void;
30+
public function fetchAllFromOperations(InstallerEvent $event): void;
2931
}

Plugin.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@
4545
use Symfony\Component\Console\Input\ArgvInput;
4646
use Symfony\Component\Console\Input\InputInterface;
4747

48+
/**
49+
* @noRector \Rector\CodeQuality\Rector\Class_\CompleteDynamicPropertiesRector
50+
*/
4851
final class Plugin implements EventSubscriberInterface, PluginInterface
4952
{
5053
/** @var string */
@@ -225,7 +228,7 @@ public function whatProvides(Pool $pool, $name, $bypassFilters = false): array
225228
*
226229
* @param \Composer\Installer\InstallerEvent|\Composer\Installer\PackageEvent $event
227230
*/
228-
public function populateFilesCacheDir($event): void
231+
public function populateFilesCacheDir(InstallerEvent $event): void
229232
{
230233
/** @var \Narrowspark\Automatic\Prefetcher\Contract\Prefetcher $prefetcher */
231234
$prefetcher = $this->container->get(PrefetcherContract::class);

0 commit comments

Comments
 (0)