Skip to content

Commit a8818be

Browse files
committed
Add polyfill for PHP 8.1
1 parent 158c61c commit a8818be

File tree

4 files changed

+84
-1
lines changed

4 files changed

+84
-1
lines changed

compiler/build/scoper.inc.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
'../../vendor/jetbrains/phpstorm-stubs',
1818
'../../vendor/phpstan/php-8-stubs/stubs',
1919
'../../vendor/symfony/polyfill-php80',
20+
'../../vendor/symfony/polyfill-php81',
2021
'../../vendor/symfony/polyfill-mbstring',
2122
'../../vendor/symfony/polyfill-intl-normalizer',
2223
'../../vendor/symfony/polyfill-php73',
@@ -224,6 +225,7 @@ function (string $filePath, string $prefix, string $content): string {
224225
'PhpParser',
225226
'Hoa',
226227
'Symfony\Polyfill\Php80',
228+
'Symfony\Polyfill\Php81',
227229
'Symfony\Polyfill\Mbstring',
228230
'Symfony\Polyfill\Intl\Normalizer',
229231
'Symfony\Polyfill\Php73',

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"symfony/polyfill-php73": "^1.23",
4343
"symfony/polyfill-php74": "^1.23",
4444
"symfony/polyfill-php80": "^1.23",
45+
"symfony/polyfill-php81": "^1.27",
4546
"symfony/process": "^5.4.3",
4647
"symfony/service-contracts": "^2.5.0",
4748
"symfony/string": "^5.4.3"

composer.lock

Lines changed: 80 additions & 1 deletion
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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public function testExpectedFiles(): void
7272
'symfony/polyfill-php73/bootstrap.php', // afaik polyfills aren't necessary
7373
'symfony/polyfill-php74/bootstrap.php', // afaik polyfills aren't necessary
7474
'symfony/polyfill-php80/bootstrap.php', // afaik polyfills aren't necessary
75+
'symfony/polyfill-php81/bootstrap.php', // afaik polyfills aren't necessary
7576
'symfony/string/Resources/functions.php', // afaik polyfills aren't necessary
7677
];
7778

0 commit comments

Comments
 (0)