From 8ff8fb0bfb1c9511600f5e14fcf6063e1654b2d5 Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Tue, 18 Apr 2023 14:32:06 +0200 Subject: [PATCH] Remove symfony/polyfill-php72 --- bin/phpstan | 4 - compiler/build/scoper.inc.php | 2 - composer.json | 1 - composer.lock | 78 +------------------- tests/PHPStan/Composer/AutoloadFilesTest.php | 1 - 5 files changed, 1 insertion(+), 85 deletions(-) diff --git a/bin/phpstan b/bin/phpstan index 0f153744e3..30658f8116 100755 --- a/bin/phpstan +++ b/bin/phpstan @@ -44,7 +44,6 @@ use Symfony\Component\Console\Helper\ProgressBar; || !array_key_exists('e69f7f6ee287b969198c3c9d6777bd38', $composerAutoloadFiles) || !array_key_exists('0d59ee240a4cd96ddbb4ff164fccea4d', $composerAutoloadFiles) || !array_key_exists('b686b8e46447868025a15ce5d0cb2634', $composerAutoloadFiles) - || !array_key_exists('25072dd6e2470089de65ae7bf11d3109', $composerAutoloadFiles) || !array_key_exists('8825ede83f2f289127722d4e842cf7e8', $composerAutoloadFiles) ) { echo "Composer autoloader changed\n"; @@ -72,9 +71,6 @@ use Symfony\Component\Console\Helper\ProgressBar; // vendor/symfony/polyfill-php74/bootstrap.php 'b686b8e46447868025a15ce5d0cb2634' => true, - // vendor/symfony/polyfill-php72/bootstrap.php - '25072dd6e2470089de65ae7bf11d3109' => true, - // vendor/symfony/polyfill-intl-grapheme/bootstrap.php '8825ede83f2f289127722d4e842cf7e8' => true, ]; diff --git a/compiler/build/scoper.inc.php b/compiler/build/scoper.inc.php index 11df14200d..a1f50ac9f2 100644 --- a/compiler/build/scoper.inc.php +++ b/compiler/build/scoper.inc.php @@ -21,7 +21,6 @@ '../../vendor/symfony/polyfill-intl-normalizer', '../../vendor/symfony/polyfill-php73', '../../vendor/symfony/polyfill-php74', - '../../vendor/symfony/polyfill-php72', '../../vendor/symfony/polyfill-intl-grapheme', ]) as $file) { if ($file->getPathName() === '../../vendor/jetbrains/phpstorm-stubs/PhpStormStubsMap.php') { @@ -229,7 +228,6 @@ function (string $filePath, string $prefix, string $content): string { 'Symfony\Polyfill\Intl\Normalizer', 'Symfony\Polyfill\Php73', 'Symfony\Polyfill\Php74', - 'Symfony\Polyfill\Php72', 'Symfony\Polyfill\Intl\Grapheme', ], 'expose-global-functions' => false, diff --git a/composer.json b/composer.json index 5d2d4a7b26..392c1735b2 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,6 @@ "symfony/polyfill-intl-grapheme": "^1.23", "symfony/polyfill-intl-normalizer": "^1.23", "symfony/polyfill-mbstring": "^1.23", - "symfony/polyfill-php72": "^1.23", "symfony/polyfill-php73": "^1.23", "symfony/polyfill-php74": "^1.23", "symfony/polyfill-php80": "^1.23", diff --git a/composer.lock b/composer.lock index dad490517f..3e7e332844 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "105370f38cefceec3bc747acf65a8294", + "content-hash": "f5c77fd38e0bf1e66eaf29dba73155a4", "packages": [ { "name": "clue/ndjson-react", @@ -3909,82 +3909,6 @@ ], "time": "2022-11-03T14:55:06+00:00" }, - { - "name": "symfony/polyfill-php72", - "version": "v1.27.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php72.git", - "reference": "869329b1e9894268a8a61dabb69153029b7a8c97" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/869329b1e9894268a8a61dabb69153029b7a8c97", - "reference": "869329b1e9894268a8a61dabb69153029b7a8c97", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.27-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Php72\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-php72/tree/v1.27.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2022-11-03T14:55:06+00:00" - }, { "name": "symfony/polyfill-php73", "version": "v1.27.0", diff --git a/tests/PHPStan/Composer/AutoloadFilesTest.php b/tests/PHPStan/Composer/AutoloadFilesTest.php index 0796fc2b64..8f63cb1dfe 100644 --- a/tests/PHPStan/Composer/AutoloadFilesTest.php +++ b/tests/PHPStan/Composer/AutoloadFilesTest.php @@ -70,7 +70,6 @@ public function testExpectedFiles(): void 'symfony/polyfill-intl-grapheme/bootstrap.php', // afaik polyfills aren't necessary 'symfony/polyfill-intl-normalizer/bootstrap.php', // afaik polyfills aren't necessary 'symfony/polyfill-mbstring/bootstrap.php', // afaik polyfills aren't necessary - 'symfony/polyfill-php72/bootstrap.php', // afaik polyfills aren't necessary '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