Skip to content

Commit d6a11f4

Browse files
committed
Cleanup
1 parent c0b36e3 commit d6a11f4

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/Task/GenerateProductionAutoload.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,11 @@
66

77
use Composer\Autoload\AutoloadGenerator;
88
use Composer\Composer;
9-
use Composer\EventDispatcher\EventDispatcher;
109
use Composer\Filter\PlatformRequirementFilter\PlatformRequirementFilterFactory;
11-
use Composer\IO\ConsoleIO;
12-
use Composer\IO\IOInterface;
13-
use Composer\IO\NullIO;
14-
use Composer\PartialComposer;
1510
use Inpsyde\VipComposer\Config;
1611
use Inpsyde\VipComposer\Utils\InstalledPackages;
1712
use Inpsyde\VipComposer\Io;
1813
use Inpsyde\VipComposer\VipDirectories;
19-
use Seld\JsonLint\ParsingException;
2014

2115
final class GenerateProductionAutoload implements Task
2216
{
@@ -74,7 +68,6 @@ public function run(Io $io, TaskConfig $taskConfig): void
7468
/**
7569
* @param Io $io
7670
* @return void
77-
* @throws ParsingException
7871
*/
7972
private function doRun(?Io $io): void
8073
{
@@ -131,10 +124,8 @@ private function factoryAutoloadGenerator(): AutoloadGenerator
131124
$autoloader->setClassMapAuthoritative(true);
132125
$autoloader->setApcu(false);
133126
$autoloader->setRunScripts(false);
134-
if (class_exists(PlatformRequirementFilterFactory::class)) {
135-
$filter = PlatformRequirementFilterFactory::ignoreNothing();
136-
$autoloader->setPlatformRequirementFilter($filter);
137-
}
127+
$filter = PlatformRequirementFilterFactory::ignoreNothing();
128+
$autoloader->setPlatformRequirementFilter($filter);
138129

139130
return $autoloader;
140131
}

0 commit comments

Comments
 (0)