Skip to content

Commit bfa057c

Browse files
committed
Remove polyfills for unsupported PHP versions
1 parent bfe8d65 commit bfa057c

File tree

5 files changed

+3
-171
lines changed

5 files changed

+3
-171
lines changed

bin/phpstan

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ use Symfony\Component\Console\Helper\ProgressBar;
4545
|| !array_key_exists('a4a119a56e50fbb293281d9a48007e0e', $composerAutoloadFiles)
4646
|| !array_key_exists('0e6d7bf4a5811bfa5cf40c5ccd6fae6a', $composerAutoloadFiles)
4747
|| !array_key_exists('e69f7f6ee287b969198c3c9d6777bd38', $composerAutoloadFiles)
48-
|| !array_key_exists('0d59ee240a4cd96ddbb4ff164fccea4d', $composerAutoloadFiles)
49-
|| !array_key_exists('b686b8e46447868025a15ce5d0cb2634', $composerAutoloadFiles)
5048
|| !array_key_exists('8825ede83f2f289127722d4e842cf7e8', $composerAutoloadFiles)
5149
|| !array_key_exists('23c18046f52bef3eea034657bafda50f', $composerAutoloadFiles)
5250
) {
@@ -69,12 +67,6 @@ use Symfony\Component\Console\Helper\ProgressBar;
6967
// vendor/symfony/polyfill-intl-normalizer/bootstrap.php
7068
'e69f7f6ee287b969198c3c9d6777bd38' => true,
7169

72-
// vendor/symfony/polyfill-php73/bootstrap.php
73-
'0d59ee240a4cd96ddbb4ff164fccea4d' => true,
74-
75-
// vendor/symfony/polyfill-php74/bootstrap.php
76-
'b686b8e46447868025a15ce5d0cb2634' => true,
77-
7870
// vendor/symfony/polyfill-intl-grapheme/bootstrap.php
7971
'8825ede83f2f289127722d4e842cf7e8' => true,
8072

compiler/build/scoper.inc.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
'../../vendor/symfony/polyfill-php81',
2121
'../../vendor/symfony/polyfill-mbstring',
2222
'../../vendor/symfony/polyfill-intl-normalizer',
23-
'../../vendor/symfony/polyfill-php73',
24-
'../../vendor/symfony/polyfill-php74',
2523
'../../vendor/symfony/polyfill-intl-grapheme',
2624
]) as $file) {
2725
if ($file->getPathName() === '../../vendor/jetbrains/phpstorm-stubs/PhpStormStubsMap.php') {
@@ -238,8 +236,6 @@ function (string $filePath, string $prefix, string $content): string {
238236
'Symfony\Polyfill\Php81',
239237
'Symfony\Polyfill\Mbstring',
240238
'Symfony\Polyfill\Intl\Normalizer',
241-
'Symfony\Polyfill\Php73',
242-
'Symfony\Polyfill\Php74',
243239
'Symfony\Polyfill\Intl\Grapheme',
244240
],
245241
'expose-global-functions' => false,

composer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,15 @@
4141
"symfony/polyfill-intl-grapheme": "^1.23",
4242
"symfony/polyfill-intl-normalizer": "^1.23",
4343
"symfony/polyfill-mbstring": "^1.23",
44-
"symfony/polyfill-php73": "^1.23",
45-
"symfony/polyfill-php74": "^1.23",
4644
"symfony/polyfill-php80": "^1.23",
4745
"symfony/polyfill-php81": "^1.27",
4846
"symfony/process": "^5.4.3",
4947
"symfony/service-contracts": "^2.5.0",
5048
"symfony/string": "^5.4.3"
5149
},
5250
"replace": {
53-
"phpstan/phpstan": "self.version"
51+
"phpstan/phpstan": "self.version",
52+
"symfony/polyfill-php73": "*"
5453
},
5554
"require-dev": {
5655
"brianium/paratest": "^6.5",

composer.lock

Lines changed: 1 addition & 154 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/PHPStan/Composer/AutoloadFilesTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ public function testExpectedFiles(): void
6666
'symfony/polyfill-intl-grapheme/bootstrap.php', // afaik polyfills aren't necessary
6767
'symfony/polyfill-intl-normalizer/bootstrap.php', // afaik polyfills aren't necessary
6868
'symfony/polyfill-mbstring/bootstrap.php', // afaik polyfills aren't necessary
69-
'symfony/polyfill-php73/bootstrap.php', // afaik polyfills aren't necessary
70-
'symfony/polyfill-php74/bootstrap.php', // afaik polyfills aren't necessary
7169
'symfony/polyfill-php80/bootstrap.php', // afaik polyfills aren't necessary
7270
'symfony/polyfill-php81/bootstrap.php', // afaik polyfills aren't necessary
7371
'symfony/string/Resources/functions.php', // afaik polyfills aren't necessary

0 commit comments

Comments
 (0)