From 6f744ff25b0ff152cbcec75a1685b47d38ab0d1d Mon Sep 17 00:00:00 2001 From: Bud Manz Date: Wed, 17 Mar 2021 15:30:24 -0400 Subject: [PATCH] Update symfony --- composer.json | 4 +- vendor/bin/var-dump-server | 71 ++------- vendor/bin/var-dump-server.bat | 4 + vendor/composer/ClassLoader.php | 34 +++++ vendor/composer/InstalledVersions.php | 143 ++++++++++++++---- vendor/composer/autoload_files.php | 3 +- vendor/composer/autoload_psr4.php | 1 + vendor/composer/autoload_real.php | 2 +- vendor/composer/autoload_static.php | 8 +- vendor/composer/installed.json | 97 +++++++++++- vendor/composer/installed.php | 19 ++- vendor/composer/platform_check.php | 4 +- vendor/symfony/polyfill-php74/LICENSE | 19 +++ vendor/symfony/polyfill-php74/Php74.php | 94 ++++++++++++ vendor/symfony/polyfill-php74/README.md | 16 ++ vendor/symfony/polyfill-php74/bootstrap.php | 26 ++++ vendor/symfony/polyfill-php74/composer.json | 39 +++++ .../var-dumper/Command/ServerDumpCommand.php | 2 +- 18 files changed, 482 insertions(+), 104 deletions(-) create mode 100644 vendor/bin/var-dump-server.bat create mode 100644 vendor/symfony/polyfill-php74/LICENSE create mode 100644 vendor/symfony/polyfill-php74/Php74.php create mode 100644 vendor/symfony/polyfill-php74/README.md create mode 100644 vendor/symfony/polyfill-php74/bootstrap.php create mode 100644 vendor/symfony/polyfill-php74/composer.json diff --git a/composer.json b/composer.json index ef9077b..335502e 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,8 @@ { "repositories": [], "require": { - "symfony/var-dumper": "^5.1" + "php": "^7.4.14", + "symfony/polyfill-php74": "^1.17", + "symfony/var-dumper": "^5.2" } } diff --git a/vendor/bin/var-dump-server b/vendor/bin/var-dump-server index 98c813a..4b749cc 100644 --- a/vendor/bin/var-dump-server +++ b/vendor/bin/var-dump-server @@ -1,63 +1,24 @@ #!/usr/bin/env php - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - /** - * Starts a dump server to collect and output dumps on a single place with multiple formats support. + * Proxy PHP file generated by Composer * - * @author Maxime Steinhausser + * This file includes the referenced bin path (../symfony/var-dumper/Resources/bin/var-dump-server) using eval to remove the shebang if present + * + * @generated */ -use Psr\Log\LoggerInterface; -use Symfony\Component\Console\Application; -use Symfony\Component\Console\Input\ArgvInput; -use Symfony\Component\Console\Input\InputOption; -use Symfony\Component\Console\Logger\ConsoleLogger; -use Symfony\Component\Console\Output\ConsoleOutput; -use Symfony\Component\VarDumper\Command\ServerDumpCommand; -use Symfony\Component\VarDumper\Server\DumpServer; - -function includeIfExists(string $file): bool -{ - return file_exists($file) && include $file; -} - -if ( - !includeIfExists(__DIR__ . '/../../../../autoload.php') && - !includeIfExists(__DIR__ . '/../../vendor/autoload.php') && - !includeIfExists(__DIR__ . '/../../../../../../vendor/autoload.php') -) { - fwrite(STDERR, 'Install dependencies using Composer.'.PHP_EOL); - exit(1); -} - -if (!class_exists(Application::class)) { - fwrite(STDERR, 'You need the "symfony/console" component in order to run the VarDumper server.'.PHP_EOL); - exit(1); +$binPath = realpath(__DIR__ . "/" . '../symfony/var-dumper/Resources/bin/var-dump-server'); +$contents = file_get_contents($binPath); +$contents = preg_replace('{^#!/.+\r?\n<\?(php)?}', '', $contents, 1, $replaced); +if ($replaced) { + $contents = strtr($contents, array( + '__FILE__' => var_export($binPath, true), + '__DIR__' => var_export(dirname($binPath), true), + )); + + eval($contents); + exit(0); } - -$input = new ArgvInput(); -$output = new ConsoleOutput(); -$defaultHost = '127.0.0.1:9912'; -$host = $input->getParameterOption(['--host'], $_SERVER['VAR_DUMPER_SERVER'] ?? $defaultHost, true); -$logger = interface_exists(LoggerInterface::class) ? new ConsoleLogger($output->getErrorOutput()) : null; - -$app = new Application(); - -$app->getDefinition()->addOption( - new InputOption('--host', null, InputOption::VALUE_REQUIRED, 'The address the server should listen to', $defaultHost) -); - -$app->add($command = new ServerDumpCommand(new DumpServer($host, $logger))) - ->getApplication() - ->setDefaultCommand($command->getName(), true) - ->run($input, $output) -; +include $binPath; diff --git a/vendor/bin/var-dump-server.bat b/vendor/bin/var-dump-server.bat new file mode 100644 index 0000000..46836b5 --- /dev/null +++ b/vendor/bin/var-dump-server.bat @@ -0,0 +1,4 @@ +@ECHO OFF +setlocal DISABLEDELAYEDEXPANSION +SET BIN_TARGET=%~dp0/../symfony/var-dumper/Resources/bin/var-dump-server +php "%BIN_TARGET%" %* diff --git a/vendor/composer/ClassLoader.php b/vendor/composer/ClassLoader.php index 1a58957..247294d 100644 --- a/vendor/composer/ClassLoader.php +++ b/vendor/composer/ClassLoader.php @@ -42,6 +42,8 @@ */ class ClassLoader { + private $vendorDir; + // PSR-4 private $prefixLengthsPsr4 = array(); private $prefixDirsPsr4 = array(); @@ -57,6 +59,13 @@ class ClassLoader private $missingClasses = array(); private $apcuPrefix; + private static $registeredLoaders = array(); + + public function __construct($vendorDir = null) + { + $this->vendorDir = $vendorDir; + } + public function getPrefixes() { if (!empty($this->prefixesPsr0)) { @@ -300,6 +309,17 @@ public function getApcuPrefix() public function register($prepend = false) { spl_autoload_register(array($this, 'loadClass'), true, $prepend); + + if (null === $this->vendorDir) { + return; + } + + if ($prepend) { + self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; + } else { + unset(self::$registeredLoaders[$this->vendorDir]); + self::$registeredLoaders[$this->vendorDir] = $this; + } } /** @@ -308,6 +328,10 @@ public function register($prepend = false) public function unregister() { spl_autoload_unregister(array($this, 'loadClass')); + + if (null !== $this->vendorDir) { + unset(self::$registeredLoaders[$this->vendorDir]); + } } /** @@ -367,6 +391,16 @@ public function findFile($class) return $file; } + /** + * Returns the currently registered loaders indexed by their corresponding vendor directories. + * + * @return self[] + */ + public static function getRegisteredLoaders() + { + return self::$registeredLoaders; + } + private function findFileWithExtension($class, $ext) { // PSR-4 lookup diff --git a/vendor/composer/InstalledVersions.php b/vendor/composer/InstalledVersions.php index 3906a1d..ba52fa9 100644 --- a/vendor/composer/InstalledVersions.php +++ b/vendor/composer/InstalledVersions.php @@ -1,7 +1,18 @@ array ( ), - 'reference' => 'a6e3da380d95149610300f3b6afc43191a4b7fc7', + 'reference' => 'e60dba04906ba92f9bf65ec2c6eba4da766d49c8', 'name' => '__root__', ), 'versions' => @@ -31,7 +42,7 @@ class InstalledVersions 'aliases' => array ( ), - 'reference' => 'a6e3da380d95149610300f3b6afc43191a4b7fc7', + 'reference' => 'e60dba04906ba92f9bf65ec2c6eba4da766d49c8', ), 'symfony/polyfill-mbstring' => array ( @@ -42,6 +53,15 @@ class InstalledVersions ), 'reference' => '5232de97ee3b75b0360528dae24e73db49566ab1', ), + 'symfony/polyfill-php74' => + array ( + 'pretty_version' => 'v1.22.1', + 'version' => '1.22.1.0', + 'aliases' => + array ( + ), + 'reference' => '577e147350331efeb816897e004d85e6e765daaf', + ), 'symfony/polyfill-php80' => array ( 'pretty_version' => 'v1.22.1', @@ -53,15 +73,17 @@ class InstalledVersions ), 'symfony/var-dumper' => array ( - 'pretty_version' => 'v5.2.4', - 'version' => '5.2.4.0', + 'pretty_version' => 'v5.2.5', + 'version' => '5.2.5.0', 'aliases' => array ( ), - 'reference' => '6a81fec0628c468cf6d5c87a4d003725e040e223', + 'reference' => '002ab5a36702adf0c9a11e6d8836623253e9045e', ), ), ); +private static $canGetVendors; +private static $installedByVendor = array(); @@ -71,7 +93,17 @@ class InstalledVersions public static function getInstalledPackages() { -return array_keys(self::$installed['versions']); +$packages = array(); +foreach (self::getInstalled() as $installed) { +$packages[] = array_keys($installed['versions']); +} + + +if (1 === \count($packages)) { +return $packages[0]; +} + +return array_keys(array_flip(\call_user_func_array('array_merge', $packages))); } @@ -84,7 +116,13 @@ public static function getInstalledPackages() public static function isInstalled($packageName) { -return isset(self::$installed['versions'][$packageName]); +foreach (self::getInstalled() as $installed) { +if (isset($installed['versions'][$packageName])) { +return true; +} +} + +return false; } @@ -119,42 +157,50 @@ public static function satisfies(VersionParser $parser, $packageName, $constrain public static function getVersionRanges($packageName) { -if (!isset(self::$installed['versions'][$packageName])) { -throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); +foreach (self::getInstalled() as $installed) { +if (!isset($installed['versions'][$packageName])) { +continue; } $ranges = array(); -if (isset(self::$installed['versions'][$packageName]['pretty_version'])) { -$ranges[] = self::$installed['versions'][$packageName]['pretty_version']; +if (isset($installed['versions'][$packageName]['pretty_version'])) { +$ranges[] = $installed['versions'][$packageName]['pretty_version']; } -if (array_key_exists('aliases', self::$installed['versions'][$packageName])) { -$ranges = array_merge($ranges, self::$installed['versions'][$packageName]['aliases']); +if (array_key_exists('aliases', $installed['versions'][$packageName])) { +$ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']); } -if (array_key_exists('replaced', self::$installed['versions'][$packageName])) { -$ranges = array_merge($ranges, self::$installed['versions'][$packageName]['replaced']); +if (array_key_exists('replaced', $installed['versions'][$packageName])) { +$ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']); } -if (array_key_exists('provided', self::$installed['versions'][$packageName])) { -$ranges = array_merge($ranges, self::$installed['versions'][$packageName]['provided']); +if (array_key_exists('provided', $installed['versions'][$packageName])) { +$ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']); } return implode(' || ', $ranges); } +throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); +} + public static function getVersion($packageName) { -if (!isset(self::$installed['versions'][$packageName])) { -throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); +foreach (self::getInstalled() as $installed) { +if (!isset($installed['versions'][$packageName])) { +continue; } -if (!isset(self::$installed['versions'][$packageName]['version'])) { +if (!isset($installed['versions'][$packageName]['version'])) { return null; } -return self::$installed['versions'][$packageName]['version']; +return $installed['versions'][$packageName]['version']; +} + +throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); } @@ -163,15 +209,19 @@ public static function getVersion($packageName) public static function getPrettyVersion($packageName) { -if (!isset(self::$installed['versions'][$packageName])) { -throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); +foreach (self::getInstalled() as $installed) { +if (!isset($installed['versions'][$packageName])) { +continue; } -if (!isset(self::$installed['versions'][$packageName]['pretty_version'])) { +if (!isset($installed['versions'][$packageName]['pretty_version'])) { return null; } -return self::$installed['versions'][$packageName]['pretty_version']; +return $installed['versions'][$packageName]['pretty_version']; +} + +throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); } @@ -180,15 +230,19 @@ public static function getPrettyVersion($packageName) public static function getReference($packageName) { -if (!isset(self::$installed['versions'][$packageName])) { -throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); +foreach (self::getInstalled() as $installed) { +if (!isset($installed['versions'][$packageName])) { +continue; } -if (!isset(self::$installed['versions'][$packageName]['reference'])) { +if (!isset($installed['versions'][$packageName]['reference'])) { return null; } -return self::$installed['versions'][$packageName]['reference']; +return $installed['versions'][$packageName]['reference']; +} + +throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); } @@ -197,7 +251,9 @@ public static function getReference($packageName) public static function getRootPackage() { -return self::$installed['root']; +$installed = self::getInstalled(); + +return $installed[0]['root']; } @@ -232,5 +288,32 @@ public static function getRawData() public static function reload($data) { self::$installed = $data; +self::$installedByVendor = array(); +} + + + + +private static function getInstalled() +{ +if (null === self::$canGetVendors) { +self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders'); +} + +$installed = array(); + +if (self::$canGetVendors) { +foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { +if (isset(self::$installedByVendor[$vendorDir])) { +$installed[] = self::$installedByVendor[$vendorDir]; +} elseif (is_file($vendorDir.'/composer/installed.php')) { +$installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; +} +} +} + +$installed[] = self::$installed; + +return $installed; } } diff --git a/vendor/composer/autoload_files.php b/vendor/composer/autoload_files.php index 74cbc8b..08de00b 100644 --- a/vendor/composer/autoload_files.php +++ b/vendor/composer/autoload_files.php @@ -6,7 +6,8 @@ $baseDir = dirname($vendorDir); return array( - 'a4a119a56e50fbb293281d9a48007e0e' => $vendorDir . '/symfony/polyfill-php80/bootstrap.php', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php', + 'a4a119a56e50fbb293281d9a48007e0e' => $vendorDir . '/symfony/polyfill-php80/bootstrap.php', + 'b686b8e46447868025a15ce5d0cb2634' => $vendorDir . '/symfony/polyfill-php74/bootstrap.php', '667aeda72477189d0494fecd327c3641' => $vendorDir . '/symfony/var-dumper/Resources/functions/dump.php', ); diff --git a/vendor/composer/autoload_psr4.php b/vendor/composer/autoload_psr4.php index f31b5e9..4561106 100644 --- a/vendor/composer/autoload_psr4.php +++ b/vendor/composer/autoload_psr4.php @@ -7,6 +7,7 @@ return array( 'Symfony\\Polyfill\\Php80\\' => array($vendorDir . '/symfony/polyfill-php80'), + 'Symfony\\Polyfill\\Php74\\' => array($vendorDir . '/symfony/polyfill-php74'), 'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'), 'Symfony\\Component\\VarDumper\\' => array($vendorDir . '/symfony/var-dumper'), ); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index b53df37..967b313 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -25,7 +25,7 @@ public static function getLoader() require __DIR__ . '/platform_check.php'; spl_autoload_register(array('ComposerAutoloaderInitfee985bd6360b2aa0b37889c01883282', 'loadClassLoader'), true, true); - self::$loader = $loader = new \Composer\Autoload\ClassLoader(); + self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); spl_autoload_unregister(array('ComposerAutoloaderInitfee985bd6360b2aa0b37889c01883282', 'loadClassLoader')); $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 1eb684d..6149f7a 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -7,8 +7,9 @@ class ComposerStaticInitfee985bd6360b2aa0b37889c01883282 { public static $files = array ( - 'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php', + 'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php', + 'b686b8e46447868025a15ce5d0cb2634' => __DIR__ . '/..' . '/symfony/polyfill-php74/bootstrap.php', '667aeda72477189d0494fecd327c3641' => __DIR__ . '/..' . '/symfony/var-dumper/Resources/functions/dump.php', ); @@ -16,6 +17,7 @@ class ComposerStaticInitfee985bd6360b2aa0b37889c01883282 'S' => array ( 'Symfony\\Polyfill\\Php80\\' => 23, + 'Symfony\\Polyfill\\Php74\\' => 23, 'Symfony\\Polyfill\\Mbstring\\' => 26, 'Symfony\\Component\\VarDumper\\' => 28, ), @@ -26,6 +28,10 @@ class ComposerStaticInitfee985bd6360b2aa0b37889c01883282 array ( 0 => __DIR__ . '/..' . '/symfony/polyfill-php80', ), + 'Symfony\\Polyfill\\Php74\\' => + array ( + 0 => __DIR__ . '/..' . '/symfony/polyfill-php74', + ), 'Symfony\\Polyfill\\Mbstring\\' => array ( 0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring', diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 9f66e4c..a15bb10 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -83,6 +83,89 @@ ], "install-path": "../symfony/polyfill-mbstring" }, + { + "name": "symfony/polyfill-php74", + "version": "v1.22.1", + "version_normalized": "1.22.1.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php74.git", + "reference": "577e147350331efeb816897e004d85e6e765daaf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php74/zipball/577e147350331efeb816897e004d85e6e765daaf", + "reference": "577e147350331efeb816897e004d85e6e765daaf", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "time": "2021-01-07T16:49:33+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.22-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php74\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.4+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php74/tree/v1.22.1" + }, + "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-php74" + }, { "name": "symfony/polyfill-php80", "version": "v1.22.1", @@ -171,17 +254,17 @@ }, { "name": "symfony/var-dumper", - "version": "v5.2.4", - "version_normalized": "5.2.4.0", + "version": "v5.2.5", + "version_normalized": "5.2.5.0", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "6a81fec0628c468cf6d5c87a4d003725e040e223" + "reference": "002ab5a36702adf0c9a11e6d8836623253e9045e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/6a81fec0628c468cf6d5c87a4d003725e040e223", - "reference": "6a81fec0628c468cf6d5c87a4d003725e040e223", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/002ab5a36702adf0c9a11e6d8836623253e9045e", + "reference": "002ab5a36702adf0c9a11e6d8836623253e9045e", "shasum": "" }, "require": { @@ -204,7 +287,7 @@ "ext-intl": "To show region name in time zone dump", "symfony/console": "To use the ServerDumpCommand and/or the bin/var-dump-server script" }, - "time": "2021-02-18T23:11:19+00:00", + "time": "2021-03-06T07:59:01+00:00", "bin": [ "Resources/bin/var-dump-server" ], @@ -242,7 +325,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v5.2.4" + "source": "https://github.com/symfony/var-dumper/tree/v5.2.5" }, "funding": [ { diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index c2b231d..a082cb5 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -6,7 +6,7 @@ 'aliases' => array ( ), - 'reference' => 'a6e3da380d95149610300f3b6afc43191a4b7fc7', + 'reference' => 'e60dba04906ba92f9bf65ec2c6eba4da766d49c8', 'name' => '__root__', ), 'versions' => @@ -18,7 +18,7 @@ 'aliases' => array ( ), - 'reference' => 'a6e3da380d95149610300f3b6afc43191a4b7fc7', + 'reference' => 'e60dba04906ba92f9bf65ec2c6eba4da766d49c8', ), 'symfony/polyfill-mbstring' => array ( @@ -29,6 +29,15 @@ ), 'reference' => '5232de97ee3b75b0360528dae24e73db49566ab1', ), + 'symfony/polyfill-php74' => + array ( + 'pretty_version' => 'v1.22.1', + 'version' => '1.22.1.0', + 'aliases' => + array ( + ), + 'reference' => '577e147350331efeb816897e004d85e6e765daaf', + ), 'symfony/polyfill-php80' => array ( 'pretty_version' => 'v1.22.1', @@ -40,12 +49,12 @@ ), 'symfony/var-dumper' => array ( - 'pretty_version' => 'v5.2.4', - 'version' => '5.2.4.0', + 'pretty_version' => 'v5.2.5', + 'version' => '5.2.5.0', 'aliases' => array ( ), - 'reference' => '6a81fec0628c468cf6d5c87a4d003725e040e223', + 'reference' => '002ab5a36702adf0c9a11e6d8836623253e9045e', ), ), ); diff --git a/vendor/composer/platform_check.php b/vendor/composer/platform_check.php index a8b98d5..8936c25 100644 --- a/vendor/composer/platform_check.php +++ b/vendor/composer/platform_check.php @@ -4,8 +4,8 @@ $issues = array(); -if (!(PHP_VERSION_ID >= 70205)) { - $issues[] = 'Your Composer dependencies require a PHP version ">= 7.2.5". You are running ' . PHP_VERSION . '.'; +if (!(PHP_VERSION_ID >= 70414)) { + $issues[] = 'Your Composer dependencies require a PHP version ">= 7.4.14". You are running ' . PHP_VERSION . '.'; } if ($issues) { diff --git a/vendor/symfony/polyfill-php74/LICENSE b/vendor/symfony/polyfill-php74/LICENSE new file mode 100644 index 0000000..1a18697 --- /dev/null +++ b/vendor/symfony/polyfill-php74/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2019 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/vendor/symfony/polyfill-php74/Php74.php b/vendor/symfony/polyfill-php74/Php74.php new file mode 100644 index 0000000..0a0946b --- /dev/null +++ b/vendor/symfony/polyfill-php74/Php74.php @@ -0,0 +1,94 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Polyfill\Php74; + +/** + * @author Ion Bazan + * + * @internal + */ +final class Php74 +{ + public static function get_mangled_object_vars($obj) + { + if (!\is_object($obj)) { + trigger_error('get_mangled_object_vars() expects parameter 1 to be object, '.\gettype($obj).' given', \E_USER_WARNING); + + return null; + } + + if ($obj instanceof \ArrayIterator || $obj instanceof \ArrayObject) { + $reflector = new \ReflectionClass($obj instanceof \ArrayIterator ? 'ArrayIterator' : 'ArrayObject'); + $flags = $reflector->getMethod('getFlags')->invoke($obj); + $reflector = $reflector->getMethod('setFlags'); + + $reflector->invoke($obj, ($flags & \ArrayObject::STD_PROP_LIST) ? 0 : \ArrayObject::STD_PROP_LIST); + $arr = (array) $obj; + $reflector->invoke($obj, $flags); + } else { + $arr = (array) $obj; + } + + return array_combine(array_keys($arr), array_values($arr)); + } + + public static function mb_str_split($string, $split_length = 1, $encoding = null) + { + if (null !== $string && !is_scalar($string) && !(\is_object($string) && method_exists($string, '__toString'))) { + trigger_error('mb_str_split() expects parameter 1 to be string, '.\gettype($string).' given', \E_USER_WARNING); + + return null; + } + + if (1 > $split_length = (int) $split_length) { + trigger_error('The length of each segment must be greater than zero', \E_USER_WARNING); + + return false; + } + + if (null === $encoding) { + $encoding = mb_internal_encoding(); + } + + if ('UTF-8' === $encoding || \in_array(strtoupper($encoding), ['UTF-8', 'UTF8'], true)) { + return preg_split("/(.{{$split_length}})/u", $string, null, \PREG_SPLIT_DELIM_CAPTURE | \PREG_SPLIT_NO_EMPTY); + } + + $result = []; + $length = mb_strlen($string, $encoding); + + for ($i = 0; $i < $length; $i += $split_length) { + $result[] = mb_substr($string, $i, $split_length, $encoding); + } + + return $result; + } + + public static function password_algos() + { + $algos = []; + + if (\defined('PASSWORD_BCRYPT')) { + $algos[] = \PASSWORD_BCRYPT; + } + + if (\defined('PASSWORD_ARGON2I')) { + $algos[] = \PASSWORD_ARGON2I; + } + + if (\defined('PASSWORD_ARGON2ID')) { + $algos[] = \PASSWORD_ARGON2ID; + } + + return $algos; + } +} diff --git a/vendor/symfony/polyfill-php74/README.md b/vendor/symfony/polyfill-php74/README.md new file mode 100644 index 0000000..8133ce9 --- /dev/null +++ b/vendor/symfony/polyfill-php74/README.md @@ -0,0 +1,16 @@ +Symfony Polyfill / Php74 +======================== + +This component provides functions added to PHP 7.4 core: + +- [`get_mangled_object_vars`](https://php.net/get_mangled_object_vars) +- [`mb_str_split`](https://php.net/mb_str_split) +- [`password_algos`](https://php.net/password_algos) + +More information can be found in the +[main Polyfill README](https://github.com/symfony/polyfill/blob/master/README.md). + +License +======= + +This library is released under the [MIT license](LICENSE). diff --git a/vendor/symfony/polyfill-php74/bootstrap.php b/vendor/symfony/polyfill-php74/bootstrap.php new file mode 100644 index 0000000..f6a11f1 --- /dev/null +++ b/vendor/symfony/polyfill-php74/bootstrap.php @@ -0,0 +1,26 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +use Symfony\Polyfill\Php74 as p; + +if (\PHP_VERSION_ID >= 70400) { + return; +} + +if (!function_exists('get_mangled_object_vars')) { + function get_mangled_object_vars($object) { return p\Php74::get_mangled_object_vars($object); } +} +if (!function_exists('mb_str_split') && function_exists('mb_substr')) { + function mb_str_split($string, $length = 1, $encoding = null) { return p\Php74::mb_str_split($string, $length, $encoding); } +} +if (!function_exists('password_algos')) { + function password_algos() { return p\Php74::password_algos(); } +} diff --git a/vendor/symfony/polyfill-php74/composer.json b/vendor/symfony/polyfill-php74/composer.json new file mode 100644 index 0000000..1630a5d --- /dev/null +++ b/vendor/symfony/polyfill-php74/composer.json @@ -0,0 +1,39 @@ +{ + "name": "symfony/polyfill-php74", + "type": "library", + "description": "Symfony polyfill backporting some PHP 7.4+ features to lower PHP versions", + "keywords": ["polyfill", "shim", "compatibility", "portable"], + "homepage": "https://symfony.com", + "license": "MIT", + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "require": { + "php": ">=7.1" + }, + "autoload": { + "psr-4": { "Symfony\\Polyfill\\Php74\\": "" }, + "files": [ "bootstrap.php" ] + }, + "minimum-stability": "dev", + "extra": { + "branch-alias": { + "dev-main": "1.22-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + } +} diff --git a/vendor/symfony/var-dumper/Command/ServerDumpCommand.php b/vendor/symfony/var-dumper/Command/ServerDumpCommand.php index c8a61da..3ec8353 100644 --- a/vendor/symfony/var-dumper/Command/ServerDumpCommand.php +++ b/vendor/symfony/var-dumper/Command/ServerDumpCommand.php @@ -58,7 +58,7 @@ protected function configure() $this ->addOption('format', null, InputOption::VALUE_REQUIRED, sprintf('The output format (%s)', $availableFormats), 'cli') - ->setDescription('Starts a dump server that collects and displays dumps in a single place') + ->setDescription('Start a dump server that collects and displays dumps in a single place') ->setHelp(<<<'EOF' %command.name% starts a dump server that collects and displays dumps in a single place for debugging you application: