|
10 | 10 | use Symfony\Component\Console\Input\InputInterface; |
11 | 11 | use Symfony\Component\Console\Output\OutputInterface; |
12 | 12 | use Symfony\Component\Finder\Finder; |
13 | | -use function basename; |
14 | 13 | use function chdir; |
15 | 14 | use function dirname; |
16 | 15 | use function escapeshellarg; |
@@ -71,7 +70,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int |
71 | 70 | $this->deleteUnnecessaryVendorCode(); |
72 | 71 | $this->fixComposerJson($this->buildDir); |
73 | 72 | $this->renamePhpStormStubs(); |
74 | | - $this->patchPhpStormStubs($output); |
75 | 73 | $this->renamePhp8Stubs(); |
76 | 74 | $this->transformSource(); |
77 | 75 |
|
@@ -176,22 +174,6 @@ private function renamePhp8Stubs(): void |
176 | 174 | } |
177 | 175 | } |
178 | 176 |
|
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 | | - |
195 | 177 | private function buildPreloadScript(): void |
196 | 178 | { |
197 | 179 | $vendorDir = $this->buildDir . '/vendor'; |
|
0 commit comments