Skip to content

Commit 53119f1

Browse files
committed
Cleanup
1 parent 2f4db0e commit 53119f1

File tree

2 files changed

+0
-36
lines changed

2 files changed

+0
-36
lines changed

compiler/patches/stubs/PDO/PDO.stub.patch

Lines changed: 0 additions & 18 deletions
This file was deleted.

compiler/src/Console/CompileCommand.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use Symfony\Component\Console\Input\InputInterface;
1111
use Symfony\Component\Console\Output\OutputInterface;
1212
use Symfony\Component\Finder\Finder;
13-
use function basename;
1413
use function chdir;
1514
use function dirname;
1615
use function escapeshellarg;
@@ -71,7 +70,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7170
$this->deleteUnnecessaryVendorCode();
7271
$this->fixComposerJson($this->buildDir);
7372
$this->renamePhpStormStubs();
74-
$this->patchPhpStormStubs($output);
7573
$this->renamePhp8Stubs();
7674
$this->transformSource();
7775

@@ -176,22 +174,6 @@ private function renamePhp8Stubs(): void
176174
}
177175
}
178176

179-
private function patchPhpStormStubs(OutputInterface $output): void
180-
{
181-
$stubFinder = Finder::create();
182-
$stubsDirectory = __DIR__ . '/../../../vendor/jetbrains/phpstorm-stubs';
183-
foreach ($stubFinder->files()->name('*.patch')->in(__DIR__ . '/../../patches/stubs') as $patchFile) {
184-
$absolutePatchPath = $patchFile->getPathname();
185-
$patchPath = $patchFile->getRelativePathname();
186-
$stubPath = realpath($stubsDirectory . '/' . dirname($patchPath) . '/' . basename($patchPath, '.patch'));
187-
if ($stubPath === false) {
188-
$output->writeln(sprintf('Stub %s not found.', $stubPath));
189-
continue;
190-
}
191-
$this->patchFile($output, $stubPath, $absolutePatchPath);
192-
}
193-
}
194-
195177
private function buildPreloadScript(): void
196178
{
197179
$vendorDir = $this->buildDir . '/vendor';

0 commit comments

Comments
 (0)