Skip to content

Commit

Permalink
Add polyfill for PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jul 18, 2023
1 parent 158c61c commit a8818be
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 1 deletion.
2 changes: 2 additions & 0 deletions compiler/build/scoper.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
'../../vendor/jetbrains/phpstorm-stubs',
'../../vendor/phpstan/php-8-stubs/stubs',
'../../vendor/symfony/polyfill-php80',
'../../vendor/symfony/polyfill-php81',
'../../vendor/symfony/polyfill-mbstring',
'../../vendor/symfony/polyfill-intl-normalizer',
'../../vendor/symfony/polyfill-php73',
Expand Down Expand Up @@ -224,6 +225,7 @@ function (string $filePath, string $prefix, string $content): string {
'PhpParser',
'Hoa',
'Symfony\Polyfill\Php80',
'Symfony\Polyfill\Php81',
'Symfony\Polyfill\Mbstring',
'Symfony\Polyfill\Intl\Normalizer',
'Symfony\Polyfill\Php73',
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"symfony/polyfill-php73": "^1.23",
"symfony/polyfill-php74": "^1.23",
"symfony/polyfill-php80": "^1.23",
"symfony/polyfill-php81": "^1.27",
"symfony/process": "^5.4.3",
"symfony/service-contracts": "^2.5.0",
"symfony/string": "^5.4.3"
Expand Down
81 changes: 80 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tests/PHPStan/Composer/AutoloadFilesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public function testExpectedFiles(): void
'symfony/polyfill-php73/bootstrap.php', // afaik polyfills aren't necessary
'symfony/polyfill-php74/bootstrap.php', // afaik polyfills aren't necessary
'symfony/polyfill-php80/bootstrap.php', // afaik polyfills aren't necessary
'symfony/polyfill-php81/bootstrap.php', // afaik polyfills aren't necessary
'symfony/string/Resources/functions.php', // afaik polyfills aren't necessary
];

Expand Down

0 comments on commit a8818be

Please sign in to comment.