diff --git a/composer.json b/composer.json index 9795c202f..17b300aa0 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "optimize-autoloader": true, "classmap-authoritative": true, "platform": { - "php": "8.1.0" + "php": "8.2.0" }, "sort-packages": true, "allow-plugins": { @@ -17,7 +17,7 @@ } }, "require": { - "php": "^8.1", + "php": "^8.2", "ext-ctype": "*", "ext-mbstring": "*", "aws/aws-sdk-php": "^3.349", @@ -69,6 +69,7 @@ "replace": { "symfony/polyfill-php80": "*", "symfony/polyfill-php81": "*", + "symfony/polyfill-php82": "*", "symfony/polyfill-ctype": "*", "symfony/polyfill-mbstring": "*" }, diff --git a/composer.lock b/composer.lock index c8a6a1885..790c347e1 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": "f34be717061030fb2e787b1b220c71e8", + "content-hash": "dde938650207a3fe9c46262185eeeea6", "packages": [ { "name": "aws/aws-crt-php", @@ -5124,82 +5124,6 @@ ], "time": "2024-09-09T11:45:10+00:00" }, - { - "name": "symfony/polyfill-php82", - "version": "v1.32.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php82.git", - "reference": "5d2ed36f7734637dacc025f179698031951b1692" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php82/zipball/5d2ed36f7734637dacc025f179698031951b1692", - "reference": "5d2ed36f7734637dacc025f179698031951b1692", - "shasum": "" - }, - "require": { - "php": ">=7.2" - }, - "type": "library", - "extra": { - "thanks": { - "url": "https://github.com/symfony/polyfill", - "name": "symfony/polyfill" - } - }, - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Php82\\": "" - }, - "classmap": [ - "Resources/stubs" - ] - }, - "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 8.2+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-php82/tree/v1.32.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": "2024-09-09T11:45:10+00:00" - }, { "name": "symfony/polyfill-php83", "version": "v1.32.0", @@ -6218,13 +6142,13 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "^8.1", + "php": "^8.2", "ext-ctype": "*", "ext-mbstring": "*" }, "platform-dev": {}, "platform-overrides": { - "php": "8.1.0" + "php": "8.2.0" }, "plugin-api-version": "2.6.0" } diff --git a/composer/autoload_classmap.php b/composer/autoload_classmap.php index b7a46ca4a..ed773bb43 100644 --- a/composer/autoload_classmap.php +++ b/composer/autoload_classmap.php @@ -29,7 +29,6 @@ 'AWS\\CRT\\NativeResource' => $vendorDir . '/aws/aws-crt-php/src/AWS/CRT/NativeResource.php', 'AWS\\CRT\\OptionValue' => $vendorDir . '/aws/aws-crt-php/src/AWS/CRT/Options.php', 'AWS\\CRT\\Options' => $vendorDir . '/aws/aws-crt-php/src/AWS/CRT/Options.php', - 'AllowDynamicProperties' => $vendorDir . '/symfony/polyfill-php82/Resources/stubs/AllowDynamicProperties.php', 'Archive_Tar' => $vendorDir . '/pear/archive_tar/Archive/Tar.php', 'Aws\\AbstractConfigurationProvider' => $vendorDir . '/aws/aws-sdk-php/src/AbstractConfigurationProvider.php', 'Aws\\Api\\AbstractModel' => $vendorDir . '/aws/aws-sdk-php/src/Api/AbstractModel.php', @@ -1550,12 +1549,6 @@ 'Punic\\Script' => $vendorDir . '/punic/punic/src/Script.php', 'Punic\\Territory' => $vendorDir . '/punic/punic/src/Territory.php', 'Punic\\Unit' => $vendorDir . '/punic/punic/src/Unit.php', - 'Random\\BrokenRandomEngineError' => $vendorDir . '/symfony/polyfill-php82/Resources/stubs/Random/BrokenRandomEngineError.php', - 'Random\\CryptoSafeEngine' => $vendorDir . '/symfony/polyfill-php82/Resources/stubs/Random/CryptoSafeEngine.php', - 'Random\\Engine' => $vendorDir . '/symfony/polyfill-php82/Resources/stubs/Random/Engine.php', - 'Random\\Engine\\Secure' => $vendorDir . '/symfony/polyfill-php82/Resources/stubs/Random/Engine/Secure.php', - 'Random\\RandomError' => $vendorDir . '/symfony/polyfill-php82/Resources/stubs/Random/RandomError.php', - 'Random\\RandomException' => $vendorDir . '/symfony/polyfill-php82/Resources/stubs/Random/RandomException.php', 'SQLite3Exception' => $vendorDir . '/symfony/polyfill-php83/Resources/stubs/SQLite3Exception.php', 'Sabre\\CalDAV\\Backend\\AbstractBackend' => $vendorDir . '/sabre/dav/lib/CalDAV/Backend/AbstractBackend.php', 'Sabre\\CalDAV\\Backend\\BackendInterface' => $vendorDir . '/sabre/dav/lib/CalDAV/Backend/BackendInterface.php', @@ -1933,8 +1926,6 @@ 'SearchDAV\\XML\\QueryDiscoverResponse' => $vendorDir . '/icewind/searchdav/src/XML/QueryDiscoverResponse.php', 'SearchDAV\\XML\\Scope' => $vendorDir . '/icewind/searchdav/src/XML/Scope.php', 'SearchDAV\\XML\\SupportedQueryGrammar' => $vendorDir . '/icewind/searchdav/src/XML/SupportedQueryGrammar.php', - 'SensitiveParameter' => $vendorDir . '/symfony/polyfill-php82/Resources/stubs/SensitiveParameter.php', - 'SensitiveParameterValue' => $vendorDir . '/symfony/polyfill-php82/Resources/stubs/SensitiveParameterValue.php', 'SpomkyLabs\\Pki\\ASN1\\Component\\Identifier' => $vendorDir . '/spomky-labs/pki-framework/src/ASN1/Component/Identifier.php', 'SpomkyLabs\\Pki\\ASN1\\Component\\Length' => $vendorDir . '/spomky-labs/pki-framework/src/ASN1/Component/Length.php', 'SpomkyLabs\\Pki\\ASN1\\DERData' => $vendorDir . '/spomky-labs/pki-framework/src/ASN1/DERData.php', @@ -2885,10 +2876,6 @@ 'Symfony\\Polyfill\\Intl\\Idn\\Resources\\unidata\\DisallowedRanges' => $vendorDir . '/symfony/polyfill-intl-idn/Resources/unidata/DisallowedRanges.php', 'Symfony\\Polyfill\\Intl\\Idn\\Resources\\unidata\\Regex' => $vendorDir . '/symfony/polyfill-intl-idn/Resources/unidata/Regex.php', 'Symfony\\Polyfill\\Intl\\Normalizer\\Normalizer' => $vendorDir . '/symfony/polyfill-intl-normalizer/Normalizer.php', - 'Symfony\\Polyfill\\Php82\\NoDynamicProperties' => $vendorDir . '/symfony/polyfill-php82/NoDynamicProperties.php', - 'Symfony\\Polyfill\\Php82\\Php82' => $vendorDir . '/symfony/polyfill-php82/Php82.php', - 'Symfony\\Polyfill\\Php82\\Random\\Engine\\Secure' => $vendorDir . '/symfony/polyfill-php82/Random/Engine/Secure.php', - 'Symfony\\Polyfill\\Php82\\SensitiveParameterValue' => $vendorDir . '/symfony/polyfill-php82/SensitiveParameterValue.php', 'Symfony\\Polyfill\\Php83\\Php83' => $vendorDir . '/symfony/polyfill-php83/Php83.php', 'Symfony\\Polyfill\\Php84\\Php84' => $vendorDir . '/symfony/polyfill-php84/Php84.php', 'Symfony\\Polyfill\\Uuid\\Uuid' => $vendorDir . '/symfony/polyfill-uuid/Uuid.php', diff --git a/composer/autoload_files.php b/composer/autoload_files.php index cd7dda713..9ad805338 100644 --- a/composer/autoload_files.php +++ b/composer/autoload_files.php @@ -25,7 +25,6 @@ '662a729f963d39afe703c9d9b7ab4a8c' => $vendorDir . '/symfony/polyfill-php83/bootstrap.php', '8a9dc1de0ca7e01f3e08231539562f61' => $vendorDir . '/aws/aws-sdk-php/src/functions.php', 'decc78cc4436b1292c6c0d151b19445c' => $vendorDir . '/phpseclib/phpseclib/phpseclib/bootstrap.php', - '5897ea0ac4cccf14d323035e65887801' => $vendorDir . '/symfony/polyfill-php82/bootstrap.php', '9d2b9fc6db0f153a0a149fefb182415e' => $vendorDir . '/symfony/polyfill-php84/bootstrap.php', 'a1105708a18b76903365ca1c4aa61b02' => $vendorDir . '/symfony/translation/Resources/functions.php', ); diff --git a/composer/autoload_psr4.php b/composer/autoload_psr4.php index 5db7d9475..47a3230f5 100644 --- a/composer/autoload_psr4.php +++ b/composer/autoload_psr4.php @@ -18,7 +18,6 @@ 'Symfony\\Polyfill\\Uuid\\' => array($vendorDir . '/symfony/polyfill-uuid'), 'Symfony\\Polyfill\\Php84\\' => array($vendorDir . '/symfony/polyfill-php84'), 'Symfony\\Polyfill\\Php83\\' => array($vendorDir . '/symfony/polyfill-php83'), - 'Symfony\\Polyfill\\Php82\\' => array($vendorDir . '/symfony/polyfill-php82'), 'Symfony\\Polyfill\\Intl\\Normalizer\\' => array($vendorDir . '/symfony/polyfill-intl-normalizer'), 'Symfony\\Polyfill\\Intl\\Idn\\' => array($vendorDir . '/symfony/polyfill-intl-idn'), 'Symfony\\Polyfill\\Intl\\Grapheme\\' => array($vendorDir . '/symfony/polyfill-intl-grapheme'), diff --git a/composer/autoload_static.php b/composer/autoload_static.php index abc7d725d..240000def 100644 --- a/composer/autoload_static.php +++ b/composer/autoload_static.php @@ -26,7 +26,6 @@ class ComposerStaticInit2f23f73bc0cc116b4b1eee1521aa8652 '662a729f963d39afe703c9d9b7ab4a8c' => __DIR__ . '/..' . '/symfony/polyfill-php83/bootstrap.php', '8a9dc1de0ca7e01f3e08231539562f61' => __DIR__ . '/..' . '/aws/aws-sdk-php/src/functions.php', 'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php', - '5897ea0ac4cccf14d323035e65887801' => __DIR__ . '/..' . '/symfony/polyfill-php82/bootstrap.php', '9d2b9fc6db0f153a0a149fefb182415e' => __DIR__ . '/..' . '/symfony/polyfill-php84/bootstrap.php', 'a1105708a18b76903365ca1c4aa61b02' => __DIR__ . '/..' . '/symfony/translation/Resources/functions.php', ); @@ -73,7 +72,6 @@ class ComposerStaticInit2f23f73bc0cc116b4b1eee1521aa8652 'Symfony\\Polyfill\\Uuid\\' => 22, 'Symfony\\Polyfill\\Php84\\' => 23, 'Symfony\\Polyfill\\Php83\\' => 23, - 'Symfony\\Polyfill\\Php82\\' => 23, 'Symfony\\Polyfill\\Intl\\Normalizer\\' => 33, 'Symfony\\Polyfill\\Intl\\Idn\\' => 26, 'Symfony\\Polyfill\\Intl\\Grapheme\\' => 31, @@ -237,10 +235,6 @@ class ComposerStaticInit2f23f73bc0cc116b4b1eee1521aa8652 array ( 0 => __DIR__ . '/..' . '/symfony/polyfill-php83', ), - 'Symfony\\Polyfill\\Php82\\' => - array ( - 0 => __DIR__ . '/..' . '/symfony/polyfill-php82', - ), 'Symfony\\Polyfill\\Intl\\Normalizer\\' => array ( 0 => __DIR__ . '/..' . '/symfony/polyfill-intl-normalizer', @@ -556,7 +550,6 @@ class ComposerStaticInit2f23f73bc0cc116b4b1eee1521aa8652 'AWS\\CRT\\NativeResource' => __DIR__ . '/..' . '/aws/aws-crt-php/src/AWS/CRT/NativeResource.php', 'AWS\\CRT\\OptionValue' => __DIR__ . '/..' . '/aws/aws-crt-php/src/AWS/CRT/Options.php', 'AWS\\CRT\\Options' => __DIR__ . '/..' . '/aws/aws-crt-php/src/AWS/CRT/Options.php', - 'AllowDynamicProperties' => __DIR__ . '/..' . '/symfony/polyfill-php82/Resources/stubs/AllowDynamicProperties.php', 'Archive_Tar' => __DIR__ . '/..' . '/pear/archive_tar/Archive/Tar.php', 'Aws\\AbstractConfigurationProvider' => __DIR__ . '/..' . '/aws/aws-sdk-php/src/AbstractConfigurationProvider.php', 'Aws\\Api\\AbstractModel' => __DIR__ . '/..' . '/aws/aws-sdk-php/src/Api/AbstractModel.php', @@ -2077,12 +2070,6 @@ class ComposerStaticInit2f23f73bc0cc116b4b1eee1521aa8652 'Punic\\Script' => __DIR__ . '/..' . '/punic/punic/src/Script.php', 'Punic\\Territory' => __DIR__ . '/..' . '/punic/punic/src/Territory.php', 'Punic\\Unit' => __DIR__ . '/..' . '/punic/punic/src/Unit.php', - 'Random\\BrokenRandomEngineError' => __DIR__ . '/..' . '/symfony/polyfill-php82/Resources/stubs/Random/BrokenRandomEngineError.php', - 'Random\\CryptoSafeEngine' => __DIR__ . '/..' . '/symfony/polyfill-php82/Resources/stubs/Random/CryptoSafeEngine.php', - 'Random\\Engine' => __DIR__ . '/..' . '/symfony/polyfill-php82/Resources/stubs/Random/Engine.php', - 'Random\\Engine\\Secure' => __DIR__ . '/..' . '/symfony/polyfill-php82/Resources/stubs/Random/Engine/Secure.php', - 'Random\\RandomError' => __DIR__ . '/..' . '/symfony/polyfill-php82/Resources/stubs/Random/RandomError.php', - 'Random\\RandomException' => __DIR__ . '/..' . '/symfony/polyfill-php82/Resources/stubs/Random/RandomException.php', 'SQLite3Exception' => __DIR__ . '/..' . '/symfony/polyfill-php83/Resources/stubs/SQLite3Exception.php', 'Sabre\\CalDAV\\Backend\\AbstractBackend' => __DIR__ . '/..' . '/sabre/dav/lib/CalDAV/Backend/AbstractBackend.php', 'Sabre\\CalDAV\\Backend\\BackendInterface' => __DIR__ . '/..' . '/sabre/dav/lib/CalDAV/Backend/BackendInterface.php', @@ -2460,8 +2447,6 @@ class ComposerStaticInit2f23f73bc0cc116b4b1eee1521aa8652 'SearchDAV\\XML\\QueryDiscoverResponse' => __DIR__ . '/..' . '/icewind/searchdav/src/XML/QueryDiscoverResponse.php', 'SearchDAV\\XML\\Scope' => __DIR__ . '/..' . '/icewind/searchdav/src/XML/Scope.php', 'SearchDAV\\XML\\SupportedQueryGrammar' => __DIR__ . '/..' . '/icewind/searchdav/src/XML/SupportedQueryGrammar.php', - 'SensitiveParameter' => __DIR__ . '/..' . '/symfony/polyfill-php82/Resources/stubs/SensitiveParameter.php', - 'SensitiveParameterValue' => __DIR__ . '/..' . '/symfony/polyfill-php82/Resources/stubs/SensitiveParameterValue.php', 'SpomkyLabs\\Pki\\ASN1\\Component\\Identifier' => __DIR__ . '/..' . '/spomky-labs/pki-framework/src/ASN1/Component/Identifier.php', 'SpomkyLabs\\Pki\\ASN1\\Component\\Length' => __DIR__ . '/..' . '/spomky-labs/pki-framework/src/ASN1/Component/Length.php', 'SpomkyLabs\\Pki\\ASN1\\DERData' => __DIR__ . '/..' . '/spomky-labs/pki-framework/src/ASN1/DERData.php', @@ -3412,10 +3397,6 @@ class ComposerStaticInit2f23f73bc0cc116b4b1eee1521aa8652 'Symfony\\Polyfill\\Intl\\Idn\\Resources\\unidata\\DisallowedRanges' => __DIR__ . '/..' . '/symfony/polyfill-intl-idn/Resources/unidata/DisallowedRanges.php', 'Symfony\\Polyfill\\Intl\\Idn\\Resources\\unidata\\Regex' => __DIR__ . '/..' . '/symfony/polyfill-intl-idn/Resources/unidata/Regex.php', 'Symfony\\Polyfill\\Intl\\Normalizer\\Normalizer' => __DIR__ . '/..' . '/symfony/polyfill-intl-normalizer/Normalizer.php', - 'Symfony\\Polyfill\\Php82\\NoDynamicProperties' => __DIR__ . '/..' . '/symfony/polyfill-php82/NoDynamicProperties.php', - 'Symfony\\Polyfill\\Php82\\Php82' => __DIR__ . '/..' . '/symfony/polyfill-php82/Php82.php', - 'Symfony\\Polyfill\\Php82\\Random\\Engine\\Secure' => __DIR__ . '/..' . '/symfony/polyfill-php82/Random/Engine/Secure.php', - 'Symfony\\Polyfill\\Php82\\SensitiveParameterValue' => __DIR__ . '/..' . '/symfony/polyfill-php82/SensitiveParameterValue.php', 'Symfony\\Polyfill\\Php83\\Php83' => __DIR__ . '/..' . '/symfony/polyfill-php83/Php83.php', 'Symfony\\Polyfill\\Php84\\Php84' => __DIR__ . '/..' . '/symfony/polyfill-php84/Php84.php', 'Symfony\\Polyfill\\Uuid\\Uuid' => __DIR__ . '/..' . '/symfony/polyfill-uuid/Uuid.php', diff --git a/composer/installed.json b/composer/installed.json index b65a9664f..7043d98df 100644 --- a/composer/installed.json +++ b/composer/installed.json @@ -5343,85 +5343,6 @@ ], "install-path": "../symfony/polyfill-intl-normalizer" }, - { - "name": "symfony/polyfill-php82", - "version": "v1.32.0", - "version_normalized": "1.32.0.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php82.git", - "reference": "5d2ed36f7734637dacc025f179698031951b1692" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php82/zipball/5d2ed36f7734637dacc025f179698031951b1692", - "reference": "5d2ed36f7734637dacc025f179698031951b1692", - "shasum": "" - }, - "require": { - "php": ">=7.2" - }, - "time": "2024-09-09T11:45:10+00:00", - "type": "library", - "extra": { - "thanks": { - "url": "https://github.com/symfony/polyfill", - "name": "symfony/polyfill" - } - }, - "installation-source": "dist", - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Php82\\": "" - }, - "classmap": [ - "Resources/stubs" - ] - }, - "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 8.2+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-php82/tree/v1.32.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" - } - ], - "install-path": "../symfony/polyfill-php82" - }, { "name": "symfony/polyfill-php83", "version": "v1.32.0", diff --git a/composer/installed.php b/composer/installed.php index 144a81840..54bd91066 100644 --- a/composer/installed.php +++ b/composer/installed.php @@ -791,13 +791,10 @@ ), ), 'symfony/polyfill-php82' => array( - 'pretty_version' => 'v1.32.0', - 'version' => '1.32.0.0', - 'reference' => '5d2ed36f7734637dacc025f179698031951b1692', - 'type' => 'library', - 'install_path' => __DIR__ . '/../symfony/polyfill-php82', - 'aliases' => array(), 'dev_requirement' => false, + 'replaced' => array( + 0 => '*', + ), ), 'symfony/polyfill-php83' => array( 'pretty_version' => 'v1.32.0', diff --git a/composer/platform_check.php b/composer/platform_check.php index 2beb14918..14bf88da3 100644 --- a/composer/platform_check.php +++ b/composer/platform_check.php @@ -4,8 +4,8 @@ $issues = array(); -if (!(PHP_VERSION_ID >= 80100)) { - $issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . PHP_VERSION . '.'; +if (!(PHP_VERSION_ID >= 80200)) { + $issues[] = 'Your Composer dependencies require a PHP version ">= 8.2.0". You are running ' . PHP_VERSION . '.'; } if ($issues) { diff --git a/symfony/polyfill-php82/LICENSE b/symfony/polyfill-php82/LICENSE deleted file mode 100644 index 733c826eb..000000000 --- a/symfony/polyfill-php82/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2022-present Fabien Potencier - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/symfony/polyfill-php82/NoDynamicProperties.php b/symfony/polyfill-php82/NoDynamicProperties.php deleted file mode 100644 index 450deff45..000000000 --- a/symfony/polyfill-php82/NoDynamicProperties.php +++ /dev/null @@ -1,23 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Polyfill\Php82; - -/** - * @internal - */ -trait NoDynamicProperties -{ - public function __set(string $name, $value): void - { - throw new \Error('Cannot create dynamic property '.self::class.'::$'.$name); - } -} diff --git a/symfony/polyfill-php82/Php82.php b/symfony/polyfill-php82/Php82.php deleted file mode 100644 index 91da117f9..000000000 --- a/symfony/polyfill-php82/Php82.php +++ /dev/null @@ -1,394 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Polyfill\Php82; - -/** - * @author Alexander M. Turek - * @author Greg Roach - * - * @internal - */ -class Php82 -{ - /** - * Determines if a string matches the ODBC quoting rules. - * - * A valid quoted string begins with a '{', ends with a '}', and has no '}' - * inside of the string that aren't repeated (as to be escaped). - * - * These rules are what .NET also follows. - * - * @see https://github.com/php/php-src/blob/838f6bffff6363a204a2597cbfbaad1d7ee3f2b6/main/php_odbc_utils.c#L31-L57 - */ - public static function odbc_connection_string_is_quoted(string $str): bool - { - if ('' === $str || '{' !== $str[0]) { - return false; - } - - /* Check for } that aren't doubled up or at the end of the string */ - $length = \strlen($str) - 1; - for ($i = 0; $i < $length; ++$i) { - if ('}' !== $str[$i]) { - continue; - } - - if ('}' !== $str[++$i]) { - return $i === $length; - } - } - - return true; - } - - /** - * Determines if a value for a connection string should be quoted. - * - * The ODBC specification mentions: - * "Because of connection string and initialization file grammar, keywords and - * attribute values that contain the characters []{}(),;?*=!@ not enclosed - * with braces should be avoided." - * - * Note that it assumes that the string is *not* already quoted. You should - * check beforehand. - * - * @see https://github.com/php/php-src/blob/838f6bffff6363a204a2597cbfbaad1d7ee3f2b6/main/php_odbc_utils.c#L59-L73 - */ - public static function odbc_connection_string_should_quote(string $str): bool - { - return false !== strpbrk($str, '[]{}(),;?*=!@'); - } - - public static function odbc_connection_string_quote(string $str): string - { - return '{'.str_replace('}', '}}', $str).'}'; - } - - /** - * Implementation closely based on the original C code - including the GOTOs - * and pointer-style string access. - * - * @see https://github.com/php/php-src/blob/master/Zend/zend_ini.c - */ - public static function ini_parse_quantity(string $value): int - { - // Avoid dependency on ctype_space() - $ctype_space = " \t\v\r\n\f"; - - $str = 0; - $str_end = \strlen($value); - $digits = $str; - $overflow = false; - - /* Ignore leading whitespace, but keep it for error messages. */ - while ($digits < $str_end && false !== strpos($ctype_space, $value[$digits])) { - ++$digits; - } - - /* Ignore trailing whitespace, but keep it for error messages. */ - while ($digits < $str_end && false !== strpos($ctype_space, $value[$str_end - 1])) { - --$str_end; - } - - if ($digits === $str_end) { - return 0; - } - - $is_negative = false; - - if ('+' === $value[$digits]) { - ++$digits; - } elseif ('-' === $value[$digits]) { - $is_negative = true; - ++$digits; - } - - if ($value[$digits] < '0' || $value[$digits] > 9) { - $message = sprintf( - 'Invalid quantity "%s": no valid leading digits, interpreting as "0" for backwards compatibility', - self::escapeString($value) - ); - - trigger_error($message, \E_USER_WARNING); - - return 0; - } - - $base = 10; - $allowed_digits = '0123456789'; - - if ('0' === $value[$digits] && ($digits + 1 === $str_end || false === strpos($allowed_digits, $value[$digits + 1]))) { - if ($digits + 1 === $str_end) { - return 0; - } - - switch ($value[$digits + 1]) { - case 'g': - case 'G': - case 'm': - case 'M': - case 'k': - case 'K': - goto evaluation; - case 'x': - case 'X': - $base = 16; - $allowed_digits = '0123456789abcdefABCDEF'; - break; - case 'o': - case 'O': - $base = 8; - $allowed_digits = '01234567'; - break; - case 'b': - case 'B': - $base = 2; - $allowed_digits = '01'; - break; - default: - $message = sprintf( - 'Invalid prefix "0%s", interpreting as "0" for backwards compatibility', - $value[$digits + 1] - ); - trigger_error($message, \E_USER_WARNING); - - return 0; - } - - $digits += 2; - if ($digits === $str_end) { - $message = sprintf( - 'Invalid quantity "%s": no digits after base prefix, interpreting as "0" for backwards compatibility', - self::escapeString($value) - ); - trigger_error($message, \E_USER_WARNING); - - return 0; - } - - $digits_consumed = $digits; - /* Ignore leading whitespace. */ - while ($digits_consumed < $str_end && false !== strpos($ctype_space, $value[$digits_consumed])) { - ++$digits_consumed; - } - if ($digits_consumed !== $str_end && ('+' === $value[$digits_consumed] || '-' === $value[$digits_consumed])) { - ++$digits_consumed; - } - - if ('0' === $value[$digits_consumed]) { - /* Value is just 0 */ - if ($digits_consumed + 1 === $str_end) { - goto evaluation; - } - switch ($value[$digits_consumed + 1]) { - case 'x': - case 'X': - case 'o': - case 'O': - case 'b': - case 'B': - $digits_consumed += 2; - break; - } - } - - if ($digits !== $digits_consumed) { - $message = sprintf( - 'Invalid quantity "%s": no digits after base prefix, interpreting as "0" for backwards compatibility', - self::escapeString($value) - ); - trigger_error($message, \E_USER_WARNING); - - return 0; - } - } - - evaluation: - - if (10 === $base && '0' === $value[$digits]) { - $base = 8; - $allowed_digits = '01234567'; - } - - while ($digits < $str_end && ' ' === $value[$digits]) { - ++$digits; - } - - if ($digits < $str_end && '+' === $value[$digits]) { - ++$digits; - } elseif ($digits < $str_end && '-' === $value[$digits]) { - $is_negative = true; - $overflow = true; - ++$digits; - } - - $digits_end = $digits; - - while ($digits_end < $str_end && false !== strpos($allowed_digits, $value[$digits_end])) { - ++$digits_end; - } - - $retval = base_convert(substr($value, $digits, $digits_end - $digits), $base, 10); - - if ($is_negative && '0' === $retval) { - $is_negative = false; - $overflow = false; - } - - // Check for overflow - remember that -PHP_INT_MIN = 1 + PHP_INT_MAX - if ($is_negative) { - $signed_max = strtr((string) \PHP_INT_MIN, ['-' => '']); - } else { - $signed_max = (string) \PHP_INT_MAX; - } - - $max_length = max(\strlen($retval), \strlen($signed_max)); - - $tmp1 = str_pad($retval, $max_length, '0', \STR_PAD_LEFT); - $tmp2 = str_pad($signed_max, $max_length, '0', \STR_PAD_LEFT); - - if ($tmp1 > $tmp2) { - $retval = -1; - $overflow = true; - } elseif ($is_negative) { - $retval = '-'.$retval; - } - - $retval = (int) $retval; - - if ($digits_end === $digits) { - $message = sprintf( - 'Invalid quantity "%s": no valid leading digits, interpreting as "0" for backwards compatibility', - self::escapeString($value) - ); - trigger_error($message, \E_USER_WARNING); - - return 0; - } - - /* Allow for whitespace between integer portion and any suffix character */ - while ($digits_end < $str_end && false !== strpos($ctype_space, $value[$digits_end])) { - ++$digits_end; - } - - /* No exponent suffix. */ - if ($digits_end === $str_end) { - goto end; - } - - switch ($value[$str_end - 1]) { - case 'g': - case 'G': - $shift = 30; - break; - case 'm': - case 'M': - $shift = 20; - break; - case 'k': - case 'K': - $shift = 10; - break; - default: - /* Unknown suffix */ - $invalid = self::escapeString($value); - $interpreted = self::escapeString(substr($value, $str, $digits_end - $str)); - $chr = self::escapeString($value[$str_end - 1]); - - $message = sprintf( - 'Invalid quantity "%s": unknown multiplier "%s", interpreting as "%s" for backwards compatibility', - $invalid, - $chr, - $interpreted - ); - - trigger_error($message, \E_USER_WARNING); - - return $retval; - } - - $factor = 1 << $shift; - - if (!$overflow) { - if ($retval > 0) { - $overflow = $retval > \PHP_INT_MAX / $factor; - } else { - $overflow = $retval < \PHP_INT_MIN / $factor; - } - } - - if (\is_float($retval * $factor)) { - $overflow = true; - $retval <<= $shift; - } else { - $retval *= $factor; - } - - if ($digits_end !== $str_end - 1) { - /* More than one character in suffix */ - $message = sprintf( - 'Invalid quantity "%s", interpreting as "%s%s" for backwards compatibility', - self::escapeString($value), - self::escapeString(substr($value, $str, $digits_end - $str)), - self::escapeString($value[$str_end - 1]) - ); - trigger_error($message, \E_USER_WARNING); - - return $retval; - } - - end: - - if ($overflow) { - /* Not specifying the resulting value here because the caller may make - * additional conversions. Not specifying the allowed range - * because the caller may do narrower range checks. */ - $message = sprintf( - 'Invalid quantity "%s": value is out of range, using overflow result for backwards compatibility', - self::escapeString($value) - ); - trigger_error($message, \E_USER_WARNING); - } - - return $retval; - } - - /** - * Escape the string to avoid null bytes and to make non-printable chars visible. - */ - private static function escapeString(string $string): string - { - $escaped = ''; - - for ($n = 0, $len = \strlen($string); $n < $len; ++$n) { - $c = \ord($string[$n]); - - if ($c < 32 || '\\' === $string[$n] || $c > 126) { - switch ($string[$n]) { - case "\n": $escaped .= '\\n'; break; - case "\r": $escaped .= '\\r'; break; - case "\t": $escaped .= '\\t'; break; - case "\f": $escaped .= '\\f'; break; - case "\v": $escaped .= '\\v'; break; - case '\\': $escaped .= '\\\\'; break; - case "\x1B": $escaped .= '\\e'; break; - default: - $escaped .= '\\x'.strtoupper(sprintf('%02x', $c)); - } - } else { - $escaped .= $string[$n]; - } - } - - return $escaped; - } -} diff --git a/symfony/polyfill-php82/Random/Engine/Secure.php b/symfony/polyfill-php82/Random/Engine/Secure.php deleted file mode 100644 index 5565386c2..000000000 --- a/symfony/polyfill-php82/Random/Engine/Secure.php +++ /dev/null @@ -1,50 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Polyfill\Php82\Random\Engine; - -use Random\RandomException; -use Symfony\Polyfill\Php82\NoDynamicProperties; - -/** - * @author Tim Düsterhus - * @author Anton Smirnov - * - * @internal - */ -class Secure -{ - use NoDynamicProperties; - - public function generate(): string - { - try { - return random_bytes(\PHP_INT_SIZE); - } catch (\Exception $e) { - throw new RandomException($e->getMessage(), $e->getCode(), $e->getPrevious()); - } - } - - public function __sleep(): array - { - throw new \Exception("Serialization of 'Random\Engine\Secure' is not allowed"); - } - - public function __wakeup(): void - { - throw new \Exception("Unserialization of 'Random\Engine\Secure' is not allowed"); - } - - public function __clone() - { - throw new \Error('Trying to clone an uncloneable object of class Random\Engine\Secure'); - } -} diff --git a/symfony/polyfill-php82/Resources/stubs/AllowDynamicProperties.php b/symfony/polyfill-php82/Resources/stubs/AllowDynamicProperties.php deleted file mode 100644 index d216e0ade..000000000 --- a/symfony/polyfill-php82/Resources/stubs/AllowDynamicProperties.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -if (\PHP_VERSION_ID < 80200) { - #[Attribute(Attribute::TARGET_CLASS)] - final class AllowDynamicProperties - { - public function __construct() - { - } - } -} diff --git a/symfony/polyfill-php82/Resources/stubs/Random/BrokenRandomEngineError.php b/symfony/polyfill-php82/Resources/stubs/Random/BrokenRandomEngineError.php deleted file mode 100644 index 971ed570d..000000000 --- a/symfony/polyfill-php82/Resources/stubs/Random/BrokenRandomEngineError.php +++ /dev/null @@ -1,18 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Random; - -if (\PHP_VERSION_ID < 80200) { - class BrokenRandomEngineError extends RandomError - { - } -} diff --git a/symfony/polyfill-php82/Resources/stubs/Random/CryptoSafeEngine.php b/symfony/polyfill-php82/Resources/stubs/Random/CryptoSafeEngine.php deleted file mode 100644 index fb32496f1..000000000 --- a/symfony/polyfill-php82/Resources/stubs/Random/CryptoSafeEngine.php +++ /dev/null @@ -1,18 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Random; - -if (\PHP_VERSION_ID < 80200) { - interface CryptoSafeEngine extends Engine - { - } -} diff --git a/symfony/polyfill-php82/Resources/stubs/Random/Engine.php b/symfony/polyfill-php82/Resources/stubs/Random/Engine.php deleted file mode 100644 index 4fc78c8fb..000000000 --- a/symfony/polyfill-php82/Resources/stubs/Random/Engine.php +++ /dev/null @@ -1,19 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Random; - -if (\PHP_VERSION_ID < 80200) { - interface Engine - { - public function generate(): string; - } -} diff --git a/symfony/polyfill-php82/Resources/stubs/Random/Engine/Secure.php b/symfony/polyfill-php82/Resources/stubs/Random/Engine/Secure.php deleted file mode 100644 index e779b5445..000000000 --- a/symfony/polyfill-php82/Resources/stubs/Random/Engine/Secure.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Random\Engine; - -use Symfony\Polyfill\Php82 as p; - -if (\PHP_VERSION_ID < 80200) { - final class Secure extends p\Random\Engine\Secure implements \Random\CryptoSafeEngine - { - } -} diff --git a/symfony/polyfill-php82/Resources/stubs/Random/RandomError.php b/symfony/polyfill-php82/Resources/stubs/Random/RandomError.php deleted file mode 100644 index bf5e89e01..000000000 --- a/symfony/polyfill-php82/Resources/stubs/Random/RandomError.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Random; - -use Symfony\Polyfill\Php82\NoDynamicProperties; - -if (\PHP_VERSION_ID < 80200) { - class RandomError extends \Error - { - use NoDynamicProperties; - } -} diff --git a/symfony/polyfill-php82/Resources/stubs/Random/RandomException.php b/symfony/polyfill-php82/Resources/stubs/Random/RandomException.php deleted file mode 100644 index 3b9aae140..000000000 --- a/symfony/polyfill-php82/Resources/stubs/Random/RandomException.php +++ /dev/null @@ -1,21 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Random; - -use Symfony\Polyfill\Php82\NoDynamicProperties; - -if (\PHP_VERSION_ID < 80200) { - class RandomException extends \Exception - { - use NoDynamicProperties; - } -} diff --git a/symfony/polyfill-php82/Resources/stubs/SensitiveParameter.php b/symfony/polyfill-php82/Resources/stubs/SensitiveParameter.php deleted file mode 100644 index aea4dfbdd..000000000 --- a/symfony/polyfill-php82/Resources/stubs/SensitiveParameter.php +++ /dev/null @@ -1,20 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -if (\PHP_VERSION_ID < 80200) { - #[Attribute(Attribute::TARGET_PARAMETER)] - final class SensitiveParameter - { - public function __construct() - { - } - } -} diff --git a/symfony/polyfill-php82/Resources/stubs/SensitiveParameterValue.php b/symfony/polyfill-php82/Resources/stubs/SensitiveParameterValue.php deleted file mode 100644 index 8349170b6..000000000 --- a/symfony/polyfill-php82/Resources/stubs/SensitiveParameterValue.php +++ /dev/null @@ -1,16 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -if (\PHP_VERSION_ID < 80200) { - final class SensitiveParameterValue extends Symfony\Polyfill\Php82\SensitiveParameterValue - { - } -} diff --git a/symfony/polyfill-php82/SensitiveParameterValue.php b/symfony/polyfill-php82/SensitiveParameterValue.php deleted file mode 100644 index 944c0a659..000000000 --- a/symfony/polyfill-php82/SensitiveParameterValue.php +++ /dev/null @@ -1,47 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Polyfill\Php82; - -/** - * @author Tim Düsterhus - * - * @internal - */ -class SensitiveParameterValue -{ - private $value; - - public function __construct($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } - - public function __debugInfo(): array - { - return []; - } - - public function __sleep(): array - { - throw new \Exception("Serialization of 'SensitiveParameterValue' is not allowed"); - } - - public function __wakeup(): void - { - throw new \Exception("Unserialization of 'SensitiveParameterValue' is not allowed"); - } -} diff --git a/symfony/polyfill-php82/bootstrap.php b/symfony/polyfill-php82/bootstrap.php deleted file mode 100644 index 399504dcb..000000000 --- a/symfony/polyfill-php82/bootstrap.php +++ /dev/null @@ -1,34 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -use Symfony\Polyfill\Php82 as p; - -if (\PHP_VERSION_ID >= 80200) { - return; -} - -if (extension_loaded('odbc')) { - if (!function_exists('odbc_connection_string_is_quoted')) { - function odbc_connection_string_is_quoted(string $str): bool { return p\Php82::odbc_connection_string_is_quoted($str); } - } - - if (!function_exists('odbc_connection_string_should_quote')) { - function odbc_connection_string_should_quote(string $str): bool { return p\Php82::odbc_connection_string_should_quote($str); } - } - - if (!function_exists('odbc_connection_string_quote')) { - function odbc_connection_string_quote(string $str): string { return p\Php82::odbc_connection_string_quote($str); } - } -} - -if (!function_exists('ini_parse_quantity')) { - function ini_parse_quantity(string $shorthand): int { return p\Php82::ini_parse_quantity($shorthand); } -}