dddmo 6 months ago
parent
commit
096df76ab8
51 changed files with 0 additions and 7072 deletions
  1. 0 1
      runtime/container/aspects.cache
  2. 0 0
      runtime/container/classes.cache
  3. 0 32
      runtime/container/proxy/App_Controller_AbstractController.proxy.php
  4. 0 34
      runtime/container/proxy/App_Controller_IndexController.proxy.php
  5. 0 0
      runtime/container/scan.cache
  6. 0 579
      vendor/composer/ClassLoader.php
  7. 0 359
      vendor/composer/InstalledVersions.php
  8. 0 21
      vendor/composer/LICENSE
  9. 0 37
      vendor/composer/autoload_files.php
  10. 0 9
      vendor/composer/autoload_namespaces.php
  11. 0 50
      vendor/composer/autoload_real.php
  12. 0 19
      vendor/composer/pcre/LICENSE
  13. 0 181
      vendor/composer/pcre/README.md
  14. 0 46
      vendor/composer/pcre/composer.json
  15. 0 46
      vendor/composer/pcre/src/MatchAllResult.php
  16. 0 46
      vendor/composer/pcre/src/MatchAllStrictGroupsResult.php
  17. 0 48
      vendor/composer/pcre/src/MatchAllWithOffsetsResult.php
  18. 0 39
      vendor/composer/pcre/src/MatchResult.php
  19. 0 39
      vendor/composer/pcre/src/MatchStrictGroupsResult.php
  20. 0 41
      vendor/composer/pcre/src/MatchWithOffsetsResult.php
  21. 0 60
      vendor/composer/pcre/src/PcreException.php
  22. 0 430
      vendor/composer/pcre/src/Preg.php
  23. 0 174
      vendor/composer/pcre/src/Regex.php
  24. 0 43
      vendor/composer/pcre/src/ReplaceResult.php
  25. 0 20
      vendor/composer/pcre/src/UnexpectedNullMatchException.php
  26. 0 26
      vendor/composer/platform_check.php
  27. 0 214
      vendor/composer/semver/CHANGELOG.md
  28. 0 19
      vendor/composer/semver/LICENSE
  29. 0 99
      vendor/composer/semver/README.md
  30. 0 59
      vendor/composer/semver/composer.json
  31. 0 11
      vendor/composer/semver/phpstan-baseline.neon
  32. 0 113
      vendor/composer/semver/src/Comparator.php
  33. 0 94
      vendor/composer/semver/src/CompilingMatcher.php
  34. 0 122
      vendor/composer/semver/src/Constraint/Bound.php
  35. 0 435
      vendor/composer/semver/src/Constraint/Constraint.php
  36. 0 75
      vendor/composer/semver/src/Constraint/ConstraintInterface.php
  37. 0 85
      vendor/composer/semver/src/Constraint/MatchAllConstraint.php
  38. 0 83
      vendor/composer/semver/src/Constraint/MatchNoneConstraint.php
  39. 0 325
      vendor/composer/semver/src/Constraint/MultiConstraint.php
  40. 0 98
      vendor/composer/semver/src/Interval.php
  41. 0 478
      vendor/composer/semver/src/Intervals.php
  42. 0 129
      vendor/composer/semver/src/Semver.php
  43. 0 586
      vendor/composer/semver/src/VersionParser.php
  44. 0 143
      vendor/composer/xdebug-handler/CHANGELOG.md
  45. 0 21
      vendor/composer/xdebug-handler/LICENSE
  46. 0 305
      vendor/composer/xdebug-handler/README.md
  47. 0 44
      vendor/composer/xdebug-handler/composer.json
  48. 0 91
      vendor/composer/xdebug-handler/src/PhpConfig.php
  49. 0 119
      vendor/composer/xdebug-handler/src/Process.php
  50. 0 222
      vendor/composer/xdebug-handler/src/Status.php
  51. 0 722
      vendor/composer/xdebug-handler/src/XdebugHandler.php

+ 0 - 1
runtime/container/aspects.cache

@@ -1 +0,0 @@
-a:8:{i:0;s:35:"Hyperf\Cache\Aspect\CacheableAspect";i:1;s:36:"Hyperf\Cache\Aspect\CacheAheadAspect";i:2;s:36:"Hyperf\Cache\Aspect\CacheEvictAspect";i:3;s:34:"Hyperf\Cache\Aspect\CachePutAspect";i:4;s:35:"Hyperf\Cache\Aspect\FailCacheAspect";i:5;s:36:"Hyperf\Config\Annotation\ValueAspect";i:6;s:44:"Hyperf\DbConnection\Aspect\TransactionAspect";i:7;s:33:"Hyperf\Di\Annotation\InjectAspect";}

File diff suppressed because it is too large
+ 0 - 0
runtime/container/classes.cache


+ 0 - 32
runtime/container/proxy/App_Controller_AbstractController.proxy.php

@@ -1,32 +0,0 @@
-<?php
-
-declare (strict_types=1);
-/**
- * This file is part of Hyperf.
- *
- * @link     https://www.hyperf.io
- * @document https://hyperf.wiki
- * @contact  group@hyperf.io
- * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
- */
-namespace App\Controller;
-
-use Hyperf\Di\Annotation\Inject;
-use Hyperf\HttpServer\Contract\RequestInterface;
-use Hyperf\HttpServer\Contract\ResponseInterface;
-use Psr\Container\ContainerInterface;
-abstract class AbstractController
-{
-    use \Hyperf\Di\Aop\ProxyTrait;
-    use \Hyperf\Di\Aop\PropertyHandlerTrait;
-    function __construct()
-    {
-        $this->__handlePropertyHandler(__CLASS__);
-    }
-    #[Inject]
-    protected ContainerInterface $container;
-    #[Inject]
-    protected RequestInterface $request;
-    #[Inject]
-    protected ResponseInterface $response;
-}

+ 0 - 34
runtime/container/proxy/App_Controller_IndexController.proxy.php

@@ -1,34 +0,0 @@
-<?php
-
-declare (strict_types=1);
-/**
- * This file is part of Hyperf.
- *
- * @link     https://www.hyperf.io
- * @document https://hyperf.wiki
- * @contact  group@hyperf.io
- * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
- */
-namespace App\Controller;
-
-class IndexController extends AbstractController
-{
-    use \Hyperf\Di\Aop\ProxyTrait;
-    use \Hyperf\Di\Aop\PropertyHandlerTrait;
-    function __construct()
-    {
-        if (method_exists(parent::class, '__construct')) {
-            parent::__construct(...func_get_args());
-        }
-        $this->__handlePropertyHandler(__CLASS__);
-    }
-    public function index()
-    {
-        $user = $this->request->input('user', 'Hyperf');
-        $method = $this->request->getMethod();
-        return ['method' => $method, 'message' => "Hello {$user}."];
-    }
-    public function category()
-    {
-    }
-}

File diff suppressed because it is too large
+ 0 - 0
runtime/container/scan.cache


+ 0 - 579
vendor/composer/ClassLoader.php

@@ -1,579 +0,0 @@
-<?php
-
-/*
- * This file is part of Composer.
- *
- * (c) Nils Adermann <naderman@naderman.de>
- *     Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Composer\Autoload;
-
-/**
- * ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
- *
- *     $loader = new \Composer\Autoload\ClassLoader();
- *
- *     // register classes with namespaces
- *     $loader->add('Symfony\Component', __DIR__.'/component');
- *     $loader->add('Symfony',           __DIR__.'/framework');
- *
- *     // activate the autoloader
- *     $loader->register();
- *
- *     // to enable searching the include path (eg. for PEAR packages)
- *     $loader->setUseIncludePath(true);
- *
- * In this example, if you try to use a class in the Symfony\Component
- * namespace or one of its children (Symfony\Component\Console for instance),
- * the autoloader will first look for the class under the component/
- * directory, and it will then fallback to the framework/ directory if not
- * found before giving up.
- *
- * This class is loosely based on the Symfony UniversalClassLoader.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- * @author Jordi Boggiano <j.boggiano@seld.be>
- * @see    https://www.php-fig.org/psr/psr-0/
- * @see    https://www.php-fig.org/psr/psr-4/
- */
-class ClassLoader
-{
-    /** @var \Closure(string):void */
-    private static $includeFile;
-
-    /** @var string|null */
-    private $vendorDir;
-
-    // PSR-4
-    /**
-     * @var array<string, array<string, int>>
-     */
-    private $prefixLengthsPsr4 = array();
-    /**
-     * @var array<string, list<string>>
-     */
-    private $prefixDirsPsr4 = array();
-    /**
-     * @var list<string>
-     */
-    private $fallbackDirsPsr4 = array();
-
-    // PSR-0
-    /**
-     * List of PSR-0 prefixes
-     *
-     * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2')))
-     *
-     * @var array<string, array<string, list<string>>>
-     */
-    private $prefixesPsr0 = array();
-    /**
-     * @var list<string>
-     */
-    private $fallbackDirsPsr0 = array();
-
-    /** @var bool */
-    private $useIncludePath = false;
-
-    /**
-     * @var array<string, string>
-     */
-    private $classMap = array();
-
-    /** @var bool */
-    private $classMapAuthoritative = false;
-
-    /**
-     * @var array<string, bool>
-     */
-    private $missingClasses = array();
-
-    /** @var string|null */
-    private $apcuPrefix;
-
-    /**
-     * @var array<string, self>
-     */
-    private static $registeredLoaders = array();
-
-    /**
-     * @param string|null $vendorDir
-     */
-    public function __construct($vendorDir = null)
-    {
-        $this->vendorDir = $vendorDir;
-        self::initializeIncludeClosure();
-    }
-
-    /**
-     * @return array<string, list<string>>
-     */
-    public function getPrefixes()
-    {
-        if (!empty($this->prefixesPsr0)) {
-            return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
-        }
-
-        return array();
-    }
-
-    /**
-     * @return array<string, list<string>>
-     */
-    public function getPrefixesPsr4()
-    {
-        return $this->prefixDirsPsr4;
-    }
-
-    /**
-     * @return list<string>
-     */
-    public function getFallbackDirs()
-    {
-        return $this->fallbackDirsPsr0;
-    }
-
-    /**
-     * @return list<string>
-     */
-    public function getFallbackDirsPsr4()
-    {
-        return $this->fallbackDirsPsr4;
-    }
-
-    /**
-     * @return array<string, string> Array of classname => path
-     */
-    public function getClassMap()
-    {
-        return $this->classMap;
-    }
-
-    /**
-     * @param array<string, string> $classMap Class to filename map
-     *
-     * @return void
-     */
-    public function addClassMap(array $classMap)
-    {
-        if ($this->classMap) {
-            $this->classMap = array_merge($this->classMap, $classMap);
-        } else {
-            $this->classMap = $classMap;
-        }
-    }
-
-    /**
-     * Registers a set of PSR-0 directories for a given prefix, either
-     * appending or prepending to the ones previously set for this prefix.
-     *
-     * @param string              $prefix  The prefix
-     * @param list<string>|string $paths   The PSR-0 root directories
-     * @param bool                $prepend Whether to prepend the directories
-     *
-     * @return void
-     */
-    public function add($prefix, $paths, $prepend = false)
-    {
-        $paths = (array) $paths;
-        if (!$prefix) {
-            if ($prepend) {
-                $this->fallbackDirsPsr0 = array_merge(
-                    $paths,
-                    $this->fallbackDirsPsr0
-                );
-            } else {
-                $this->fallbackDirsPsr0 = array_merge(
-                    $this->fallbackDirsPsr0,
-                    $paths
-                );
-            }
-
-            return;
-        }
-
-        $first = $prefix[0];
-        if (!isset($this->prefixesPsr0[$first][$prefix])) {
-            $this->prefixesPsr0[$first][$prefix] = $paths;
-
-            return;
-        }
-        if ($prepend) {
-            $this->prefixesPsr0[$first][$prefix] = array_merge(
-                $paths,
-                $this->prefixesPsr0[$first][$prefix]
-            );
-        } else {
-            $this->prefixesPsr0[$first][$prefix] = array_merge(
-                $this->prefixesPsr0[$first][$prefix],
-                $paths
-            );
-        }
-    }
-
-    /**
-     * Registers a set of PSR-4 directories for a given namespace, either
-     * appending or prepending to the ones previously set for this namespace.
-     *
-     * @param string              $prefix  The prefix/namespace, with trailing '\\'
-     * @param list<string>|string $paths   The PSR-4 base directories
-     * @param bool                $prepend Whether to prepend the directories
-     *
-     * @throws \InvalidArgumentException
-     *
-     * @return void
-     */
-    public function addPsr4($prefix, $paths, $prepend = false)
-    {
-        $paths = (array) $paths;
-        if (!$prefix) {
-            // Register directories for the root namespace.
-            if ($prepend) {
-                $this->fallbackDirsPsr4 = array_merge(
-                    $paths,
-                    $this->fallbackDirsPsr4
-                );
-            } else {
-                $this->fallbackDirsPsr4 = array_merge(
-                    $this->fallbackDirsPsr4,
-                    $paths
-                );
-            }
-        } elseif (!isset($this->prefixDirsPsr4[$prefix])) {
-            // Register directories for a new namespace.
-            $length = strlen($prefix);
-            if ('\\' !== $prefix[$length - 1]) {
-                throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
-            }
-            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
-            $this->prefixDirsPsr4[$prefix] = $paths;
-        } elseif ($prepend) {
-            // Prepend directories for an already registered namespace.
-            $this->prefixDirsPsr4[$prefix] = array_merge(
-                $paths,
-                $this->prefixDirsPsr4[$prefix]
-            );
-        } else {
-            // Append directories for an already registered namespace.
-            $this->prefixDirsPsr4[$prefix] = array_merge(
-                $this->prefixDirsPsr4[$prefix],
-                $paths
-            );
-        }
-    }
-
-    /**
-     * Registers a set of PSR-0 directories for a given prefix,
-     * replacing any others previously set for this prefix.
-     *
-     * @param string              $prefix The prefix
-     * @param list<string>|string $paths  The PSR-0 base directories
-     *
-     * @return void
-     */
-    public function set($prefix, $paths)
-    {
-        if (!$prefix) {
-            $this->fallbackDirsPsr0 = (array) $paths;
-        } else {
-            $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
-        }
-    }
-
-    /**
-     * Registers a set of PSR-4 directories for a given namespace,
-     * replacing any others previously set for this namespace.
-     *
-     * @param string              $prefix The prefix/namespace, with trailing '\\'
-     * @param list<string>|string $paths  The PSR-4 base directories
-     *
-     * @throws \InvalidArgumentException
-     *
-     * @return void
-     */
-    public function setPsr4($prefix, $paths)
-    {
-        if (!$prefix) {
-            $this->fallbackDirsPsr4 = (array) $paths;
-        } else {
-            $length = strlen($prefix);
-            if ('\\' !== $prefix[$length - 1]) {
-                throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
-            }
-            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
-            $this->prefixDirsPsr4[$prefix] = (array) $paths;
-        }
-    }
-
-    /**
-     * Turns on searching the include path for class files.
-     *
-     * @param bool $useIncludePath
-     *
-     * @return void
-     */
-    public function setUseIncludePath($useIncludePath)
-    {
-        $this->useIncludePath = $useIncludePath;
-    }
-
-    /**
-     * Can be used to check if the autoloader uses the include path to check
-     * for classes.
-     *
-     * @return bool
-     */
-    public function getUseIncludePath()
-    {
-        return $this->useIncludePath;
-    }
-
-    /**
-     * Turns off searching the prefix and fallback directories for classes
-     * that have not been registered with the class map.
-     *
-     * @param bool $classMapAuthoritative
-     *
-     * @return void
-     */
-    public function setClassMapAuthoritative($classMapAuthoritative)
-    {
-        $this->classMapAuthoritative = $classMapAuthoritative;
-    }
-
-    /**
-     * Should class lookup fail if not found in the current class map?
-     *
-     * @return bool
-     */
-    public function isClassMapAuthoritative()
-    {
-        return $this->classMapAuthoritative;
-    }
-
-    /**
-     * APCu prefix to use to cache found/not-found classes, if the extension is enabled.
-     *
-     * @param string|null $apcuPrefix
-     *
-     * @return void
-     */
-    public function setApcuPrefix($apcuPrefix)
-    {
-        $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
-    }
-
-    /**
-     * The APCu prefix in use, or null if APCu caching is not enabled.
-     *
-     * @return string|null
-     */
-    public function getApcuPrefix()
-    {
-        return $this->apcuPrefix;
-    }
-
-    /**
-     * Registers this instance as an autoloader.
-     *
-     * @param bool $prepend Whether to prepend the autoloader or not
-     *
-     * @return void
-     */
-    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;
-        }
-    }
-
-    /**
-     * Unregisters this instance as an autoloader.
-     *
-     * @return void
-     */
-    public function unregister()
-    {
-        spl_autoload_unregister(array($this, 'loadClass'));
-
-        if (null !== $this->vendorDir) {
-            unset(self::$registeredLoaders[$this->vendorDir]);
-        }
-    }
-
-    /**
-     * Loads the given class or interface.
-     *
-     * @param  string    $class The name of the class
-     * @return true|null True if loaded, null otherwise
-     */
-    public function loadClass($class)
-    {
-        if ($file = $this->findFile($class)) {
-            $includeFile = self::$includeFile;
-            $includeFile($file);
-
-            return true;
-        }
-
-        return null;
-    }
-
-    /**
-     * Finds the path to the file where the class is defined.
-     *
-     * @param string $class The name of the class
-     *
-     * @return string|false The path if found, false otherwise
-     */
-    public function findFile($class)
-    {
-        // class map lookup
-        if (isset($this->classMap[$class])) {
-            return $this->classMap[$class];
-        }
-        if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
-            return false;
-        }
-        if (null !== $this->apcuPrefix) {
-            $file = apcu_fetch($this->apcuPrefix.$class, $hit);
-            if ($hit) {
-                return $file;
-            }
-        }
-
-        $file = $this->findFileWithExtension($class, '.php');
-
-        // Search for Hack files if we are running on HHVM
-        if (false === $file && defined('HHVM_VERSION')) {
-            $file = $this->findFileWithExtension($class, '.hh');
-        }
-
-        if (null !== $this->apcuPrefix) {
-            apcu_add($this->apcuPrefix.$class, $file);
-        }
-
-        if (false === $file) {
-            // Remember that this class does not exist.
-            $this->missingClasses[$class] = true;
-        }
-
-        return $file;
-    }
-
-    /**
-     * Returns the currently registered loaders keyed by their corresponding vendor directories.
-     *
-     * @return array<string, self>
-     */
-    public static function getRegisteredLoaders()
-    {
-        return self::$registeredLoaders;
-    }
-
-    /**
-     * @param  string       $class
-     * @param  string       $ext
-     * @return string|false
-     */
-    private function findFileWithExtension($class, $ext)
-    {
-        // PSR-4 lookup
-        $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
-
-        $first = $class[0];
-        if (isset($this->prefixLengthsPsr4[$first])) {
-            $subPath = $class;
-            while (false !== $lastPos = strrpos($subPath, '\\')) {
-                $subPath = substr($subPath, 0, $lastPos);
-                $search = $subPath . '\\';
-                if (isset($this->prefixDirsPsr4[$search])) {
-                    $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
-                    foreach ($this->prefixDirsPsr4[$search] as $dir) {
-                        if (file_exists($file = $dir . $pathEnd)) {
-                            return $file;
-                        }
-                    }
-                }
-            }
-        }
-
-        // PSR-4 fallback dirs
-        foreach ($this->fallbackDirsPsr4 as $dir) {
-            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
-                return $file;
-            }
-        }
-
-        // PSR-0 lookup
-        if (false !== $pos = strrpos($class, '\\')) {
-            // namespaced class name
-            $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
-                . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
-        } else {
-            // PEAR-like class name
-            $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
-        }
-
-        if (isset($this->prefixesPsr0[$first])) {
-            foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
-                if (0 === strpos($class, $prefix)) {
-                    foreach ($dirs as $dir) {
-                        if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
-                            return $file;
-                        }
-                    }
-                }
-            }
-        }
-
-        // PSR-0 fallback dirs
-        foreach ($this->fallbackDirsPsr0 as $dir) {
-            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
-                return $file;
-            }
-        }
-
-        // PSR-0 include paths.
-        if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
-            return $file;
-        }
-
-        return false;
-    }
-
-    /**
-     * @return void
-     */
-    private static function initializeIncludeClosure()
-    {
-        if (self::$includeFile !== null) {
-            return;
-        }
-
-        /**
-         * Scope isolated include.
-         *
-         * Prevents access to $this/self from included files.
-         *
-         * @param  string $file
-         * @return void
-         */
-        self::$includeFile = \Closure::bind(static function($file) {
-            include $file;
-        }, null, null);
-    }
-}

+ 0 - 359
vendor/composer/InstalledVersions.php

@@ -1,359 +0,0 @@
-<?php
-
-/*
- * This file is part of Composer.
- *
- * (c) Nils Adermann <naderman@naderman.de>
- *     Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Composer;
-
-use Composer\Autoload\ClassLoader;
-use Composer\Semver\VersionParser;
-
-/**
- * This class is copied in every Composer installed project and available to all
- *
- * See also https://getcomposer.org/doc/07-runtime.md#installed-versions
- *
- * To require its presence, you can require `composer-runtime-api ^2.0`
- *
- * @final
- */
-class InstalledVersions
-{
-    /**
-     * @var mixed[]|null
-     * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
-     */
-    private static $installed;
-
-    /**
-     * @var bool|null
-     */
-    private static $canGetVendors;
-
-    /**
-     * @var array[]
-     * @psalm-var array<string, array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
-     */
-    private static $installedByVendor = array();
-
-    /**
-     * Returns a list of all package names which are present, either by being installed, replaced or provided
-     *
-     * @return string[]
-     * @psalm-return list<string>
-     */
-    public static function getInstalledPackages()
-    {
-        $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)));
-    }
-
-    /**
-     * Returns a list of all package names with a specific type e.g. 'library'
-     *
-     * @param  string   $type
-     * @return string[]
-     * @psalm-return list<string>
-     */
-    public static function getInstalledPackagesByType($type)
-    {
-        $packagesByType = array();
-
-        foreach (self::getInstalled() as $installed) {
-            foreach ($installed['versions'] as $name => $package) {
-                if (isset($package['type']) && $package['type'] === $type) {
-                    $packagesByType[] = $name;
-                }
-            }
-        }
-
-        return $packagesByType;
-    }
-
-    /**
-     * Checks whether the given package is installed
-     *
-     * This also returns true if the package name is provided or replaced by another package
-     *
-     * @param  string $packageName
-     * @param  bool   $includeDevRequirements
-     * @return bool
-     */
-    public static function isInstalled($packageName, $includeDevRequirements = true)
-    {
-        foreach (self::getInstalled() as $installed) {
-            if (isset($installed['versions'][$packageName])) {
-                return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false;
-            }
-        }
-
-        return false;
-    }
-
-    /**
-     * Checks whether the given package satisfies a version constraint
-     *
-     * e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call:
-     *
-     *   Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3')
-     *
-     * @param  VersionParser $parser      Install composer/semver to have access to this class and functionality
-     * @param  string        $packageName
-     * @param  string|null   $constraint  A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package
-     * @return bool
-     */
-    public static function satisfies(VersionParser $parser, $packageName, $constraint)
-    {
-        $constraint = $parser->parseConstraints((string) $constraint);
-        $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
-
-        return $provided->matches($constraint);
-    }
-
-    /**
-     * Returns a version constraint representing all the range(s) which are installed for a given package
-     *
-     * It is easier to use this via isInstalled() with the $constraint argument if you need to check
-     * whether a given version of a package is installed, and not just whether it exists
-     *
-     * @param  string $packageName
-     * @return string Version constraint usable with composer/semver
-     */
-    public static function getVersionRanges($packageName)
-    {
-        foreach (self::getInstalled() as $installed) {
-            if (!isset($installed['versions'][$packageName])) {
-                continue;
-            }
-
-            $ranges = array();
-            if (isset($installed['versions'][$packageName]['pretty_version'])) {
-                $ranges[] = $installed['versions'][$packageName]['pretty_version'];
-            }
-            if (array_key_exists('aliases', $installed['versions'][$packageName])) {
-                $ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']);
-            }
-            if (array_key_exists('replaced', $installed['versions'][$packageName])) {
-                $ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']);
-            }
-            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');
-    }
-
-    /**
-     * @param  string      $packageName
-     * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
-     */
-    public static function getVersion($packageName)
-    {
-        foreach (self::getInstalled() as $installed) {
-            if (!isset($installed['versions'][$packageName])) {
-                continue;
-            }
-
-            if (!isset($installed['versions'][$packageName]['version'])) {
-                return null;
-            }
-
-            return $installed['versions'][$packageName]['version'];
-        }
-
-        throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
-    }
-
-    /**
-     * @param  string      $packageName
-     * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
-     */
-    public static function getPrettyVersion($packageName)
-    {
-        foreach (self::getInstalled() as $installed) {
-            if (!isset($installed['versions'][$packageName])) {
-                continue;
-            }
-
-            if (!isset($installed['versions'][$packageName]['pretty_version'])) {
-                return null;
-            }
-
-            return $installed['versions'][$packageName]['pretty_version'];
-        }
-
-        throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
-    }
-
-    /**
-     * @param  string      $packageName
-     * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as reference
-     */
-    public static function getReference($packageName)
-    {
-        foreach (self::getInstalled() as $installed) {
-            if (!isset($installed['versions'][$packageName])) {
-                continue;
-            }
-
-            if (!isset($installed['versions'][$packageName]['reference'])) {
-                return null;
-            }
-
-            return $installed['versions'][$packageName]['reference'];
-        }
-
-        throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
-    }
-
-    /**
-     * @param  string      $packageName
-     * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path.
-     */
-    public static function getInstallPath($packageName)
-    {
-        foreach (self::getInstalled() as $installed) {
-            if (!isset($installed['versions'][$packageName])) {
-                continue;
-            }
-
-            return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null;
-        }
-
-        throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
-    }
-
-    /**
-     * @return array
-     * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}
-     */
-    public static function getRootPackage()
-    {
-        $installed = self::getInstalled();
-
-        return $installed[0]['root'];
-    }
-
-    /**
-     * Returns the raw installed.php data for custom implementations
-     *
-     * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
-     * @return array[]
-     * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}
-     */
-    public static function getRawData()
-    {
-        @trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED);
-
-        if (null === self::$installed) {
-            // only require the installed.php file if this file is loaded from its dumped location,
-            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
-            if (substr(__DIR__, -8, 1) !== 'C') {
-                self::$installed = include __DIR__ . '/installed.php';
-            } else {
-                self::$installed = array();
-            }
-        }
-
-        return self::$installed;
-    }
-
-    /**
-     * Returns the raw data of all installed.php which are currently loaded for custom implementations
-     *
-     * @return array[]
-     * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
-     */
-    public static function getAllRawData()
-    {
-        return self::getInstalled();
-    }
-
-    /**
-     * Lets you reload the static array from another file
-     *
-     * This is only useful for complex integrations in which a project needs to use
-     * this class but then also needs to execute another project's autoloader in process,
-     * and wants to ensure both projects have access to their version of installed.php.
-     *
-     * A typical case would be PHPUnit, where it would need to make sure it reads all
-     * the data it needs from this class, then call reload() with
-     * `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure
-     * the project in which it runs can then also use this class safely, without
-     * interference between PHPUnit's dependencies and the project's dependencies.
-     *
-     * @param  array[] $data A vendor/composer/installed.php data set
-     * @return void
-     *
-     * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $data
-     */
-    public static function reload($data)
-    {
-        self::$installed = $data;
-        self::$installedByVendor = array();
-    }
-
-    /**
-     * @return array[]
-     * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
-     */
-    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')) {
-                    /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
-                    $required = require $vendorDir.'/composer/installed.php';
-                    $installed[] = self::$installedByVendor[$vendorDir] = $required;
-                    if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
-                        self::$installed = $installed[count($installed) - 1];
-                    }
-                }
-            }
-        }
-
-        if (null === self::$installed) {
-            // only require the installed.php file if this file is loaded from its dumped location,
-            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
-            if (substr(__DIR__, -8, 1) !== 'C') {
-                /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
-                $required = require __DIR__ . '/installed.php';
-                self::$installed = $required;
-            } else {
-                self::$installed = array();
-            }
-        }
-
-        if (self::$installed !== array()) {
-            $installed[] = self::$installed;
-        }
-
-        return $installed;
-    }
-}

+ 0 - 21
vendor/composer/LICENSE

@@ -1,21 +0,0 @@
-
-Copyright (c) Nils Adermann, Jordi Boggiano
-
-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.
-

+ 0 - 37
vendor/composer/autoload_files.php

@@ -1,37 +0,0 @@
-<?php
-
-// autoload_files.php @generated by Composer
-
-$vendorDir = dirname(__DIR__);
-$baseDir = dirname($vendorDir);
-
-return array(
-    '9c7a683baffd24f5595c1dc5f5273030' => $vendorDir . '/hyperf/engine/src/Functions.php',
-    'f0334cce41da231af374e1df9dc548c9' => $vendorDir . '/hyperf/collection/src/Functions.php',
-    '3ac0459b8c20ccf3a7319b7cba59c914' => $vendorDir . '/hyperf/tappable/src/Functions.php',
-    'e45471c4161dad9820dfacbc5735c3f5' => $vendorDir . '/hyperf/stringable/src/Functions.php',
-    '6c17036e92b20070dc14f563311a06a3' => $vendorDir . '/hyperf/coroutine/src/Functions.php',
-    'ffe5873ab2256a6c3a4c92b3488528cb' => $vendorDir . '/hyperf/support/src/Functions.php',
-    '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php',
-    '6e3fae29631ef280660b3cdad06f25a8' => $vendorDir . '/symfony/deprecation-contracts/function.php',
-    '3ef245790d3389cf1f32f98f11abff00' => $vendorDir . '/hyperf/coordinator/src/Functions.php',
-    '320cde22f66dd4f5d3fd621d3e88b98f' => $vendorDir . '/symfony/polyfill-ctype/bootstrap.php',
-    'a4a119a56e50fbb293281d9a48007e0e' => $vendorDir . '/symfony/polyfill-php80/bootstrap.php',
-    'ad155f8f1cf0d418fe49e248db8c661b' => $vendorDir . '/react/promise/src/functions_include.php',
-    '8825ede83f2f289127722d4e842cf7e8' => $vendorDir . '/symfony/polyfill-intl-grapheme/bootstrap.php',
-    'e69f7f6ee287b969198c3c9d6777bd38' => $vendorDir . '/symfony/polyfill-intl-normalizer/bootstrap.php',
-    '7b11c4dc42b3b3023073cb14e519683c' => $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php',
-    'b6b991a57620e2fb6b2f66f03fe9ddc2' => $vendorDir . '/symfony/string/Resources/functions.php',
-    '37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php',
-    'a1105708a18b76903365ca1c4aa61b02' => $vendorDir . '/symfony/translation/Resources/functions.php',
-    '253c157292f75eb38082b5acb06f3f01' => $vendorDir . '/nikic/fast-route/src/functions.php',
-    '6124b4c8570aa390c21fafd04a26c69f' => $vendorDir . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',
-    '662a729f963d39afe703c9d9b7ab4a8c' => $vendorDir . '/symfony/polyfill-php83/bootstrap.php',
-    'ec07570ca5a812141189b1fa81503674' => $vendorDir . '/phpunit/phpunit/src/Framework/Assert/Functions.php',
-    '23c18046f52bef3eea034657bafda50f' => $vendorDir . '/symfony/polyfill-php81/bootstrap.php',
-    'fdea4480df6c5882835d3b60a113de4d' => $vendorDir . '/hyperf/config/src/Functions.php',
-    'ae66016dcf8c35ea526fcf705881b4ed' => $vendorDir . '/hyperf/watcher/src/Functions.php',
-    'c72349b1fe8d0deeedd3a52e8aa814d8' => $vendorDir . '/mockery/mockery/library/helpers.php',
-    'ce9671a430e4846b44e1c68c7611f9f5' => $vendorDir . '/mockery/mockery/library/Mockery.php',
-    '9b38cf48e83f5d8f60375221cd213eee' => $vendorDir . '/phpstan/phpstan/bootstrap.php',
-);

+ 0 - 9
vendor/composer/autoload_namespaces.php

@@ -1,9 +0,0 @@
-<?php
-
-// autoload_namespaces.php @generated by Composer
-
-$vendorDir = dirname(__DIR__);
-$baseDir = dirname($vendorDir);
-
-return array(
-);

+ 0 - 50
vendor/composer/autoload_real.php

@@ -1,50 +0,0 @@
-<?php
-
-// autoload_real.php @generated by Composer
-
-class ComposerAutoloaderInit88f2a4d4a4e81dc7d415bcdf39930654
-{
-    private static $loader;
-
-    public static function loadClassLoader($class)
-    {
-        if ('Composer\Autoload\ClassLoader' === $class) {
-            require __DIR__ . '/ClassLoader.php';
-        }
-    }
-
-    /**
-     * @return \Composer\Autoload\ClassLoader
-     */
-    public static function getLoader()
-    {
-        if (null !== self::$loader) {
-            return self::$loader;
-        }
-
-        require __DIR__ . '/platform_check.php';
-
-        spl_autoload_register(array('ComposerAutoloaderInit88f2a4d4a4e81dc7d415bcdf39930654', 'loadClassLoader'), true, true);
-        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
-        spl_autoload_unregister(array('ComposerAutoloaderInit88f2a4d4a4e81dc7d415bcdf39930654', 'loadClassLoader'));
-
-        require __DIR__ . '/autoload_static.php';
-        call_user_func(\Composer\Autoload\ComposerStaticInit88f2a4d4a4e81dc7d415bcdf39930654::getInitializer($loader));
-
-        $loader->register(true);
-
-        $filesToLoad = \Composer\Autoload\ComposerStaticInit88f2a4d4a4e81dc7d415bcdf39930654::$files;
-        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
-            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
-                $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
-
-                require $file;
-            }
-        }, null, null);
-        foreach ($filesToLoad as $fileIdentifier => $file) {
-            $requireFile($fileIdentifier, $file);
-        }
-
-        return $loader;
-    }
-}

+ 0 - 19
vendor/composer/pcre/LICENSE

@@ -1,19 +0,0 @@
-Copyright (C) 2021 Composer
-
-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.

+ 0 - 181
vendor/composer/pcre/README.md

@@ -1,181 +0,0 @@
-composer/pcre
-=============
-
-PCRE wrapping library that offers type-safe `preg_*` replacements.
-
-This library gives you a way to ensure `preg_*` functions do not fail silently, returning
-unexpected `null`s that may not be handled.
-
-As of 3.0 this library enforces [`PREG_UNMATCHED_AS_NULL`](#preg_unmatched_as_null) usage
-for all matching and replaceCallback functions, [read more below](#preg_unmatched_as_null)
-to understand the implications.
-
-It thus makes it easier to work with static analysis tools like PHPStan or Psalm as it
-simplifies and reduces the possible return values from all the `preg_*` functions which
-are quite packed with edge cases.
-
-This library is a thin wrapper around `preg_*` functions with [some limitations](#restrictions--limitations).
-If you are looking for a richer API to handle regular expressions have a look at
-[rawr/t-regx](https://packagist.org/packages/rawr/t-regx) instead.
-
-[![Continuous Integration](https://github.com/composer/pcre/workflows/Continuous%20Integration/badge.svg?branch=main)](https://github.com/composer/pcre/actions)
-
-
-Installation
-------------
-
-Install the latest version with:
-
-```bash
-$ composer require composer/pcre
-```
-
-
-Requirements
-------------
-
-* PHP 7.4.0 is required for 3.x versions
-* PHP 7.2.0 is required for 2.x versions
-* PHP 5.3.2 is required for 1.x versions
-
-
-Basic usage
------------
-
-Instead of:
-
-```php
-if (preg_match('{fo+}', $string, $matches)) { ... }
-if (preg_match('{fo+}', $string, $matches, PREG_OFFSET_CAPTURE)) { ... }
-if (preg_match_all('{fo+}', $string, $matches)) { ... }
-$newString = preg_replace('{fo+}', 'bar', $string);
-$newString = preg_replace_callback('{fo+}', function ($match) { return strtoupper($match[0]); }, $string);
-$newString = preg_replace_callback_array(['{fo+}' => fn ($match) => strtoupper($match[0])], $string);
-$filtered = preg_grep('{[a-z]}', $elements);
-$array = preg_split('{[a-z]+}', $string);
-```
-
-You can now call these on the `Preg` class:
-
-```php
-use Composer\Pcre\Preg;
-
-if (Preg::match('{fo+}', $string, $matches)) { ... }
-if (Preg::matchWithOffsets('{fo+}', $string, $matches)) { ... }
-if (Preg::matchAll('{fo+}', $string, $matches)) { ... }
-$newString = Preg::replace('{fo+}', 'bar', $string);
-$newString = Preg::replaceCallback('{fo+}', function ($match) { return strtoupper($match[0]); }, $string);
-$newString = Preg::replaceCallbackArray(['{fo+}' => fn ($match) => strtoupper($match[0])], $string);
-$filtered = Preg::grep('{[a-z]}', $elements);
-$array = Preg::split('{[a-z]+}', $string);
-```
-
-The main difference is if anything fails to match/replace/.., it will throw a `Composer\Pcre\PcreException`
-instead of returning `null` (or false in some cases), so you can now use the return values safely relying on
-the fact that they can only be strings (for replace), ints (for match) or arrays (for grep/split).
-
-Additionally the `Preg` class provides match methods that return `bool` rather than `int`, for stricter type safety
-when the number of pattern matches is not useful:
-
-```php
-use Composer\Pcre\Preg;
-
-if (Preg::isMatch('{fo+}', $string, $matches)) // bool
-if (Preg::isMatchAll('{fo+}', $string, $matches)) // bool
-```
-
-Finally the `Preg` class provides a few `*StrictGroups` method variants that ensure match groups
-are always present and thus non-nullable, making it easier to write type-safe code:
-
-```php
-use Composer\Pcre\Preg;
-
-// $matches is guaranteed to be an array of strings, if a subpattern does not match and produces a null it will throw
-if (Preg::matchStrictGroups('{fo+}', $string, $matches))
-if (Preg::matchAllStrictGroups('{fo+}', $string, $matches))
-```
-
-**Note:** This is generally safe to use as long as you do not have optional subpatterns (i.e. `(something)?`
-or `(something)*` or branches with a `|` that result in some groups not being matched at all).
-A subpattern that can match an empty string like `(.*)` is **not** optional, it will be present as an
-empty string in the matches. A non-matching subpattern, even if optional like `(?:foo)?` will anyway not be present in
-matches so it is also not a problem to use these with `*StrictGroups` methods.
-
-If you would prefer a slightly more verbose usage, replacing by-ref arguments by result objects, you can use the `Regex` class:
-
-```php
-use Composer\Pcre\Regex;
-
-// this is useful when you are just interested in knowing if something matched
-// as it returns a bool instead of int(1/0) for match
-$bool = Regex::isMatch('{fo+}', $string);
-
-$result = Regex::match('{fo+}', $string);
-if ($result->matched) { something($result->matches); }
-
-$result = Regex::matchWithOffsets('{fo+}', $string);
-if ($result->matched) { something($result->matches); }
-
-$result = Regex::matchAll('{fo+}', $string);
-if ($result->matched && $result->count > 3) { something($result->matches); }
-
-$newString = Regex::replace('{fo+}', 'bar', $string)->result;
-$newString = Regex::replaceCallback('{fo+}', function ($match) { return strtoupper($match[0]); }, $string)->result;
-$newString = Regex::replaceCallbackArray(['{fo+}' => fn ($match) => strtoupper($match[0])], $string)->result;
-```
-
-Note that `preg_grep` and `preg_split` are only callable via the `Preg` class as they do not have
-complex return types warranting a specific result object.
-
-See the [MatchResult](src/MatchResult.php), [MatchWithOffsetsResult](src/MatchWithOffsetsResult.php), [MatchAllResult](src/MatchAllResult.php),
-[MatchAllWithOffsetsResult](src/MatchAllWithOffsetsResult.php), and [ReplaceResult](src/ReplaceResult.php) class sources for more details.
-
-Restrictions / Limitations
---------------------------
-
-Due to type safety requirements a few restrictions are in place.
-
-- matching using `PREG_OFFSET_CAPTURE` is made available via `matchWithOffsets` and `matchAllWithOffsets`.
-  You cannot pass the flag to `match`/`matchAll`.
-- `Preg::split` will also reject `PREG_SPLIT_OFFSET_CAPTURE` and you should use `splitWithOffsets`
-  instead.
-- `matchAll` rejects `PREG_SET_ORDER` as it also changes the shape of the returned matches. There
-  is no alternative provided as you can fairly easily code around it.
-- `preg_filter` is not supported as it has a rather crazy API, most likely you should rather
-  use `Preg::grep` in combination with some loop and `Preg::replace`.
-- `replace`, `replaceCallback` and `replaceCallbackArray` do not support an array `$subject`,
-  only simple strings.
-- As of 2.0, the library always uses `PREG_UNMATCHED_AS_NULL` for matching, which offers [much
-  saner/more predictable results](#preg_unmatched_as_null). As of 3.0 the flag is also set for
-  `replaceCallback` and `replaceCallbackArray`.
-
-#### PREG_UNMATCHED_AS_NULL
-
-As of 2.0, this library always uses PREG_UNMATCHED_AS_NULL for all `match*` and `isMatch*`
-functions. As of 3.0 it is also done for `replaceCallback` and `replaceCallbackArray`.
-
-This means your matches will always contain all matching groups, either as null if unmatched
-or as string if it matched.
-
-The advantages in clarity and predictability are clearer if you compare the two outputs of
-running this with and without PREG_UNMATCHED_AS_NULL in $flags:
-
-```php
-preg_match('/(a)(b)*(c)(d)*/', 'ac', $matches, $flags);
-```
-
-| no flag | PREG_UNMATCHED_AS_NULL |
-| --- | --- |
-| array (size=4)              | array (size=5) |
-| 0 => string 'ac' (length=2) |   0 => string 'ac' (length=2) |
-| 1 => string 'a' (length=1)  |   1 => string 'a' (length=1) |
-| 2 => string '' (length=0)   |   2 => null |
-| 3 => string 'c' (length=1)  |   3 => string 'c' (length=1) |
-|                             |   4 => null |
-| group 2 (any unmatched group preceding one that matched) is set to `''`. You cannot tell if it matched an empty string or did not match at all | group 2 is `null` when unmatched and a string if it matched, easy to check for |
-| group 4 (any optional group without a matching one following) is missing altogether. So you have to check with `isset()`, but really you want `isset($m[4]) && $m[4] !== ''` for safety unless you are very careful to check that a non-optional group follows it | group 4 is always set, and null in this case as there was no match, easy to check for with `$m[4] !== null` |
-
-License
--------
-
-composer/pcre is licensed under the MIT License, see the LICENSE file for details.

+ 0 - 46
vendor/composer/pcre/composer.json

@@ -1,46 +0,0 @@
-{
-    "name": "composer/pcre",
-    "description": "PCRE wrapping library that offers type-safe preg_* replacements.",
-    "type": "library",
-    "license": "MIT",
-    "keywords": [
-        "pcre",
-        "regex",
-        "preg",
-        "regular expression"
-    ],
-    "authors": [
-        {
-            "name": "Jordi Boggiano",
-            "email": "j.boggiano@seld.be",
-            "homepage": "http://seld.be"
-        }
-    ],
-    "require": {
-        "php": "^7.4 || ^8.0"
-    },
-    "require-dev": {
-        "symfony/phpunit-bridge": "^5",
-        "phpstan/phpstan": "^1.3",
-        "phpstan/phpstan-strict-rules": "^1.1"
-    },
-    "autoload": {
-        "psr-4": {
-            "Composer\\Pcre\\": "src"
-        }
-    },
-    "autoload-dev": {
-        "psr-4": {
-            "Composer\\Pcre\\": "tests"
-        }
-    },
-    "extra": {
-        "branch-alias": {
-            "dev-main": "3.x-dev"
-        }
-    },
-    "scripts": {
-        "test": "vendor/bin/simple-phpunit",
-        "phpstan": "phpstan analyse"
-    }
-}

+ 0 - 46
vendor/composer/pcre/src/MatchAllResult.php

@@ -1,46 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/pcre.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Pcre;
-
-final class MatchAllResult
-{
-    /**
-     * An array of match group => list of matched strings
-     *
-     * @readonly
-     * @var array<int|string, list<string|null>>
-     */
-    public $matches;
-
-    /**
-     * @readonly
-     * @var 0|positive-int
-     */
-    public $count;
-
-    /**
-     * @readonly
-     * @var bool
-     */
-    public $matched;
-
-    /**
-     * @param 0|positive-int $count
-     * @param array<int|string, list<string|null>> $matches
-     */
-    public function __construct(int $count, array $matches)
-    {
-        $this->matches = $matches;
-        $this->matched = (bool) $count;
-        $this->count = $count;
-    }
-}

+ 0 - 46
vendor/composer/pcre/src/MatchAllStrictGroupsResult.php

@@ -1,46 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/pcre.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Pcre;
-
-final class MatchAllStrictGroupsResult
-{
-    /**
-     * An array of match group => list of matched strings
-     *
-     * @readonly
-     * @var array<int|string, list<string>>
-     */
-    public $matches;
-
-    /**
-     * @readonly
-     * @var 0|positive-int
-     */
-    public $count;
-
-    /**
-     * @readonly
-     * @var bool
-     */
-    public $matched;
-
-    /**
-     * @param 0|positive-int $count
-     * @param array<list<string>> $matches
-     */
-    public function __construct(int $count, array $matches)
-    {
-        $this->matches = $matches;
-        $this->matched = (bool) $count;
-        $this->count = $count;
-    }
-}

+ 0 - 48
vendor/composer/pcre/src/MatchAllWithOffsetsResult.php

@@ -1,48 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/pcre.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Pcre;
-
-final class MatchAllWithOffsetsResult
-{
-    /**
-     * An array of match group => list of matches, every match being a pair of string matched + offset in bytes (or -1 if no match)
-     *
-     * @readonly
-     * @var array<int|string, list<array{string|null, int}>>
-     * @phpstan-var array<int|string, list<array{string|null, int<-1, max>}>>
-     */
-    public $matches;
-
-    /**
-     * @readonly
-     * @var 0|positive-int
-     */
-    public $count;
-
-    /**
-     * @readonly
-     * @var bool
-     */
-    public $matched;
-
-    /**
-     * @param 0|positive-int $count
-     * @param array<int|string, list<array{string|null, int}>> $matches
-     * @phpstan-param array<int|string, list<array{string|null, int<-1, max>}>> $matches
-     */
-    public function __construct(int $count, array $matches)
-    {
-        $this->matches = $matches;
-        $this->matched = (bool) $count;
-        $this->count = $count;
-    }
-}

+ 0 - 39
vendor/composer/pcre/src/MatchResult.php

@@ -1,39 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/pcre.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Pcre;
-
-final class MatchResult
-{
-    /**
-     * An array of match group => string matched
-     *
-     * @readonly
-     * @var array<int|string, string|null>
-     */
-    public $matches;
-
-    /**
-     * @readonly
-     * @var bool
-     */
-    public $matched;
-
-    /**
-     * @param 0|positive-int $count
-     * @param array<string|null> $matches
-     */
-    public function __construct(int $count, array $matches)
-    {
-        $this->matches = $matches;
-        $this->matched = (bool) $count;
-    }
-}

+ 0 - 39
vendor/composer/pcre/src/MatchStrictGroupsResult.php

@@ -1,39 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/pcre.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Pcre;
-
-final class MatchStrictGroupsResult
-{
-    /**
-     * An array of match group => string matched
-     *
-     * @readonly
-     * @var array<int|string, string>
-     */
-    public $matches;
-
-    /**
-     * @readonly
-     * @var bool
-     */
-    public $matched;
-
-    /**
-     * @param 0|positive-int $count
-     * @param array<string> $matches
-     */
-    public function __construct(int $count, array $matches)
-    {
-        $this->matches = $matches;
-        $this->matched = (bool) $count;
-    }
-}

+ 0 - 41
vendor/composer/pcre/src/MatchWithOffsetsResult.php

@@ -1,41 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/pcre.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Pcre;
-
-final class MatchWithOffsetsResult
-{
-    /**
-     * An array of match group => pair of string matched + offset in bytes (or -1 if no match)
-     *
-     * @readonly
-     * @var array<int|string, array{string|null, int}>
-     * @phpstan-var array<int|string, array{string|null, int<-1, max>}>
-     */
-    public $matches;
-
-    /**
-     * @readonly
-     * @var bool
-     */
-    public $matched;
-
-    /**
-     * @param 0|positive-int $count
-     * @param array<array{string|null, int}> $matches
-     * @phpstan-param array<int|string, array{string|null, int<-1, max>}> $matches
-     */
-    public function __construct(int $count, array $matches)
-    {
-        $this->matches = $matches;
-        $this->matched = (bool) $count;
-    }
-}

+ 0 - 60
vendor/composer/pcre/src/PcreException.php

@@ -1,60 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/pcre.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Pcre;
-
-class PcreException extends \RuntimeException
-{
-    /**
-     * @param  string $function
-     * @param  string|string[] $pattern
-     * @return self
-     */
-    public static function fromFunction($function, $pattern)
-    {
-        $code = preg_last_error();
-
-        if (is_array($pattern)) {
-            $pattern = implode(', ', $pattern);
-        }
-
-        return new PcreException($function.'(): failed executing "'.$pattern.'": '.self::pcreLastErrorMessage($code), $code);
-    }
-
-    /**
-     * @param  int $code
-     * @return string
-     */
-    private static function pcreLastErrorMessage($code)
-    {
-        if (function_exists('preg_last_error_msg')) {
-            return preg_last_error_msg();
-        }
-
-        // older php versions did not set the code properly in all cases
-        if (PHP_VERSION_ID < 70201 && $code === 0) {
-            return 'UNDEFINED_ERROR';
-        }
-
-        $constants = get_defined_constants(true);
-        if (!isset($constants['pcre'])) {
-            return 'UNDEFINED_ERROR';
-        }
-
-        foreach ($constants['pcre'] as $const => $val) {
-            if ($val === $code && substr($const, -6) === '_ERROR') {
-                return $const;
-            }
-        }
-
-        return 'UNDEFINED_ERROR';
-    }
-}

+ 0 - 430
vendor/composer/pcre/src/Preg.php

@@ -1,430 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/pcre.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Pcre;
-
-class Preg
-{
-    /** @internal */
-    public const ARRAY_MSG = '$subject as an array is not supported. You can use \'foreach\' instead.';
-    /** @internal */
-    public const INVALID_TYPE_MSG = '$subject must be a string, %s given.';
-
-    /**
-     * @param non-empty-string   $pattern
-     * @param array<mixed> $matches Set by method
-     * @param int-mask<PREG_UNMATCHED_AS_NULL> $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported
-     * @return 0|1
-     *
-     * @param-out array<int|string, string|null> $matches
-     */
-    public static function match(string $pattern, string $subject, ?array &$matches = null, int $flags = 0, int $offset = 0): int
-    {
-        self::checkOffsetCapture($flags, 'matchWithOffsets');
-
-        $result = preg_match($pattern, $subject, $matches, $flags | PREG_UNMATCHED_AS_NULL, $offset);
-        if ($result === false) {
-            throw PcreException::fromFunction('preg_match', $pattern);
-        }
-
-        return $result;
-    }
-
-    /**
-     * Variant of `match()` which outputs non-null matches (or throws)
-     *
-     * @param non-empty-string $pattern
-     * @param array<mixed> $matches Set by method
-     * @param int-mask<PREG_UNMATCHED_AS_NULL> $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported
-     * @return 0|1
-     * @throws UnexpectedNullMatchException
-     *
-     * @param-out array<int|string, string> $matches
-     */
-    public static function matchStrictGroups(string $pattern, string $subject, ?array &$matches = null, int $flags = 0, int $offset = 0): int
-    {
-        $result = self::match($pattern, $subject, $matchesInternal, $flags, $offset);
-        $matches = self::enforceNonNullMatches($pattern, $matchesInternal, 'match');
-
-        return $result;
-    }
-
-    /**
-     * Runs preg_match with PREG_OFFSET_CAPTURE
-     *
-     * @param non-empty-string   $pattern
-     * @param array<mixed> $matches Set by method
-     * @param int-mask<PREG_UNMATCHED_AS_NULL|PREG_OFFSET_CAPTURE> $flags PREG_UNMATCHED_AS_NULL and PREG_OFFSET_CAPTURE are always set, no other flags are supported
-     * @return 0|1
-     *
-     * @param-out array<int|string, array{string|null, int<-1, max>}> $matches
-     */
-    public static function matchWithOffsets(string $pattern, string $subject, ?array &$matches, int $flags = 0, int $offset = 0): int
-    {
-        $result = preg_match($pattern, $subject, $matches, $flags | PREG_UNMATCHED_AS_NULL | PREG_OFFSET_CAPTURE, $offset);
-        if ($result === false) {
-            throw PcreException::fromFunction('preg_match', $pattern);
-        }
-
-        return $result;
-    }
-
-    /**
-     * @param non-empty-string   $pattern
-     * @param array<mixed> $matches Set by method
-     * @param int-mask<PREG_UNMATCHED_AS_NULL> $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported
-     * @return 0|positive-int
-     *
-     * @param-out array<int|string, list<string|null>> $matches
-     */
-    public static function matchAll(string $pattern, string $subject, ?array &$matches = null, int $flags = 0, int $offset = 0): int
-    {
-        self::checkOffsetCapture($flags, 'matchAllWithOffsets');
-        self::checkSetOrder($flags);
-
-        $result = preg_match_all($pattern, $subject, $matches, $flags | PREG_UNMATCHED_AS_NULL, $offset);
-        if (!is_int($result)) { // PHP < 8 may return null, 8+ returns int|false
-            throw PcreException::fromFunction('preg_match_all', $pattern);
-        }
-
-        return $result;
-    }
-
-    /**
-     * Variant of `match()` which outputs non-null matches (or throws)
-     *
-     * @param non-empty-string   $pattern
-     * @param array<mixed> $matches Set by method
-     * @param int-mask<PREG_UNMATCHED_AS_NULL> $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported
-     * @return 0|positive-int
-     * @throws UnexpectedNullMatchException
-     *
-     * @param-out array<int|string, list<string>> $matches
-     */
-    public static function matchAllStrictGroups(string $pattern, string $subject, ?array &$matches = null, int $flags = 0, int $offset = 0): int
-    {
-        $result = self::matchAll($pattern, $subject, $matchesInternal, $flags, $offset);
-        $matches = self::enforceNonNullMatchAll($pattern, $matchesInternal, 'matchAll');
-
-        return $result;
-    }
-
-    /**
-     * Runs preg_match_all with PREG_OFFSET_CAPTURE
-     *
-     * @param non-empty-string   $pattern
-     * @param array<mixed> $matches Set by method
-     * @param int-mask<PREG_UNMATCHED_AS_NULL|PREG_OFFSET_CAPTURE> $flags PREG_UNMATCHED_AS_NULL and PREG_MATCH_OFFSET are always set, no other flags are supported
-     * @return 0|positive-int
-     *
-     * @param-out array<int|string, list<array{string|null, int<-1, max>}>> $matches
-     */
-    public static function matchAllWithOffsets(string $pattern, string $subject, ?array &$matches, int $flags = 0, int $offset = 0): int
-    {
-        self::checkSetOrder($flags);
-
-        $result = preg_match_all($pattern, $subject, $matches, $flags | PREG_UNMATCHED_AS_NULL | PREG_OFFSET_CAPTURE, $offset);
-        if (!is_int($result)) { // PHP < 8 may return null, 8+ returns int|false
-            throw PcreException::fromFunction('preg_match_all', $pattern);
-        }
-
-        return $result;
-    }
-
-    /**
-     * @param string|string[] $pattern
-     * @param string|string[] $replacement
-     * @param string $subject
-     * @param int             $count Set by method
-     *
-     * @param-out int<0, max> $count
-     */
-    public static function replace($pattern, $replacement, $subject, int $limit = -1, ?int &$count = null): string
-    {
-        if (!is_scalar($subject)) {
-            if (is_array($subject)) {
-                throw new \InvalidArgumentException(static::ARRAY_MSG);
-            }
-
-            throw new \TypeError(sprintf(static::INVALID_TYPE_MSG, gettype($subject)));
-        }
-
-        $result = preg_replace($pattern, $replacement, $subject, $limit, $count);
-        if ($result === null) {
-            throw PcreException::fromFunction('preg_replace', $pattern);
-        }
-
-        return $result;
-    }
-
-    /**
-     * @param string|string[] $pattern
-     * @param ($flags is PREG_OFFSET_CAPTURE ? (callable(array<int|string, array{string|null, int<-1, max>}>): string) : callable(array<int|string, string|null>): string) $replacement
-     * @param string $subject
-     * @param int             $count Set by method
-     * @param int-mask<PREG_UNMATCHED_AS_NULL|PREG_OFFSET_CAPTURE> $flags PREG_OFFSET_CAPTURE is supported, PREG_UNMATCHED_AS_NULL is always set
-     *
-     * @param-out int<0, max> $count
-     */
-    public static function replaceCallback($pattern, callable $replacement, $subject, int $limit = -1, ?int &$count = null, int $flags = 0): string
-    {
-        if (!is_scalar($subject)) {
-            if (is_array($subject)) {
-                throw new \InvalidArgumentException(static::ARRAY_MSG);
-            }
-
-            throw new \TypeError(sprintf(static::INVALID_TYPE_MSG, gettype($subject)));
-        }
-
-        $result = preg_replace_callback($pattern, $replacement, $subject, $limit, $count, $flags | PREG_UNMATCHED_AS_NULL);
-        if ($result === null) {
-            throw PcreException::fromFunction('preg_replace_callback', $pattern);
-        }
-
-        return $result;
-    }
-
-    /**
-     * Variant of `replaceCallback()` which outputs non-null matches (or throws)
-     *
-     * @param string $pattern
-     * @param ($flags is PREG_OFFSET_CAPTURE ? (callable(array<int|string, array{string, int<0, max>}>): string) : callable(array<int|string, string>): string) $replacement
-     * @param string $subject
-     * @param int $count Set by method
-     * @param int-mask<PREG_UNMATCHED_AS_NULL|PREG_OFFSET_CAPTURE> $flags PREG_OFFSET_CAPTURE is supported, PREG_UNMATCHED_AS_NULL is always set
-     *
-     * @param-out int<0, max> $count
-     */
-    public static function replaceCallbackStrictGroups(string $pattern, callable $replacement, $subject, int $limit = -1, ?int &$count = null, int $flags = 0): string
-    {
-        return self::replaceCallback($pattern, function (array $matches) use ($pattern, $replacement) {
-            return $replacement(self::enforceNonNullMatches($pattern, $matches, 'replaceCallback'));
-        }, $subject, $limit, $count, $flags);
-    }
-
-    /**
-     * @param ($flags is PREG_OFFSET_CAPTURE ? (array<string, callable(array<int|string, array{string|null, int<-1, max>}>): string>) : array<string, callable(array<int|string, string|null>): string>) $pattern
-     * @param string $subject
-     * @param int    $count Set by method
-     * @param int-mask<PREG_UNMATCHED_AS_NULL|PREG_OFFSET_CAPTURE> $flags PREG_OFFSET_CAPTURE is supported, PREG_UNMATCHED_AS_NULL is always set
-     *
-     * @param-out int<0, max> $count
-     */
-    public static function replaceCallbackArray(array $pattern, $subject, int $limit = -1, ?int &$count = null, int $flags = 0): string
-    {
-        if (!is_scalar($subject)) {
-            if (is_array($subject)) {
-                throw new \InvalidArgumentException(static::ARRAY_MSG);
-            }
-
-            throw new \TypeError(sprintf(static::INVALID_TYPE_MSG, gettype($subject)));
-        }
-
-        $result = preg_replace_callback_array($pattern, $subject, $limit, $count, $flags | PREG_UNMATCHED_AS_NULL);
-        if ($result === null) {
-            $pattern = array_keys($pattern);
-            throw PcreException::fromFunction('preg_replace_callback_array', $pattern);
-        }
-
-        return $result;
-    }
-
-    /**
-     * @param int-mask<PREG_SPLIT_NO_EMPTY|PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_OFFSET_CAPTURE> $flags PREG_SPLIT_NO_EMPTY or PREG_SPLIT_DELIM_CAPTURE
-     * @return list<string>
-     */
-    public static function split(string $pattern, string $subject, int $limit = -1, int $flags = 0): array
-    {
-        if (($flags & PREG_SPLIT_OFFSET_CAPTURE) !== 0) {
-            throw new \InvalidArgumentException('PREG_SPLIT_OFFSET_CAPTURE is not supported as it changes the type of $matches, use splitWithOffsets() instead');
-        }
-
-        $result = preg_split($pattern, $subject, $limit, $flags);
-        if ($result === false) {
-            throw PcreException::fromFunction('preg_split', $pattern);
-        }
-
-        return $result;
-    }
-
-    /**
-     * @param int-mask<PREG_SPLIT_NO_EMPTY|PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_OFFSET_CAPTURE> $flags PREG_SPLIT_NO_EMPTY or PREG_SPLIT_DELIM_CAPTURE, PREG_SPLIT_OFFSET_CAPTURE is always set
-     * @return list<array{string, int}>
-     * @phpstan-return list<array{string, int<0, max>}>
-     */
-    public static function splitWithOffsets(string $pattern, string $subject, int $limit = -1, int $flags = 0): array
-    {
-        $result = preg_split($pattern, $subject, $limit, $flags | PREG_SPLIT_OFFSET_CAPTURE);
-        if ($result === false) {
-            throw PcreException::fromFunction('preg_split', $pattern);
-        }
-
-        return $result;
-    }
-
-    /**
-     * @template T of string|\Stringable
-     * @param string   $pattern
-     * @param array<T> $array
-     * @param int-mask<PREG_GREP_INVERT> $flags PREG_GREP_INVERT
-     * @return array<T>
-     */
-    public static function grep(string $pattern, array $array, int $flags = 0): array
-    {
-        $result = preg_grep($pattern, $array, $flags);
-        if ($result === false) {
-            throw PcreException::fromFunction('preg_grep', $pattern);
-        }
-
-        return $result;
-    }
-
-    /**
-     * Variant of match() which returns a bool instead of int
-     *
-     * @param non-empty-string   $pattern
-     * @param array<mixed> $matches Set by method
-     * @param int-mask<PREG_UNMATCHED_AS_NULL> $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported
-     *
-     * @param-out array<int|string, string|null> $matches
-     */
-    public static function isMatch(string $pattern, string $subject, ?array &$matches = null, int $flags = 0, int $offset = 0): bool
-    {
-        return (bool) static::match($pattern, $subject, $matches, $flags, $offset);
-    }
-
-    /**
-     * Variant of `isMatch()` which outputs non-null matches (or throws)
-     *
-     * @param non-empty-string $pattern
-     * @param array<mixed> $matches Set by method
-     * @param int-mask<PREG_UNMATCHED_AS_NULL> $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported
-     * @throws UnexpectedNullMatchException
-     *
-     * @param-out array<int|string, string> $matches
-     */
-    public static function isMatchStrictGroups(string $pattern, string $subject, ?array &$matches = null, int $flags = 0, int $offset = 0): bool
-    {
-        return (bool) self::matchStrictGroups($pattern, $subject, $matches, $flags, $offset);
-    }
-
-    /**
-     * Variant of matchAll() which returns a bool instead of int
-     *
-     * @param non-empty-string   $pattern
-     * @param array<mixed> $matches Set by method
-     * @param int-mask<PREG_UNMATCHED_AS_NULL> $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported
-     *
-     * @param-out array<int|string, list<string|null>> $matches
-     */
-    public static function isMatchAll(string $pattern, string $subject, ?array &$matches = null, int $flags = 0, int $offset = 0): bool
-    {
-        return (bool) static::matchAll($pattern, $subject, $matches, $flags, $offset);
-    }
-
-    /**
-     * Variant of `isMatchAll()` which outputs non-null matches (or throws)
-     *
-     * @param non-empty-string $pattern
-     * @param array<mixed> $matches Set by method
-     * @param int-mask<PREG_UNMATCHED_AS_NULL> $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported
-     *
-     * @param-out array<int|string, list<string>> $matches
-     */
-    public static function isMatchAllStrictGroups(string $pattern, string $subject, ?array &$matches = null, int $flags = 0, int $offset = 0): bool
-    {
-        return (bool) self::matchAllStrictGroups($pattern, $subject, $matches, $flags, $offset);
-    }
-
-    /**
-     * Variant of matchWithOffsets() which returns a bool instead of int
-     *
-     * Runs preg_match with PREG_OFFSET_CAPTURE
-     *
-     * @param non-empty-string   $pattern
-     * @param array<mixed> $matches Set by method
-     * @param int-mask<PREG_UNMATCHED_AS_NULL> $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported
-     *
-     * @param-out array<int|string, array{string|null, int<-1, max>}> $matches
-     */
-    public static function isMatchWithOffsets(string $pattern, string $subject, ?array &$matches, int $flags = 0, int $offset = 0): bool
-    {
-        return (bool) static::matchWithOffsets($pattern, $subject, $matches, $flags, $offset);
-    }
-
-    /**
-     * Variant of matchAllWithOffsets() which returns a bool instead of int
-     *
-     * Runs preg_match_all with PREG_OFFSET_CAPTURE
-     *
-     * @param non-empty-string   $pattern
-     * @param array<mixed> $matches Set by method
-     * @param int-mask<PREG_UNMATCHED_AS_NULL> $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported
-     *
-     * @param-out array<int|string, list<array{string|null, int<-1, max>}>> $matches
-     */
-    public static function isMatchAllWithOffsets(string $pattern, string $subject, ?array &$matches, int $flags = 0, int $offset = 0): bool
-    {
-        return (bool) static::matchAllWithOffsets($pattern, $subject, $matches, $flags, $offset);
-    }
-
-    private static function checkOffsetCapture(int $flags, string $useFunctionName): void
-    {
-        if (($flags & PREG_OFFSET_CAPTURE) !== 0) {
-            throw new \InvalidArgumentException('PREG_OFFSET_CAPTURE is not supported as it changes the type of $matches, use ' . $useFunctionName . '() instead');
-        }
-    }
-
-    private static function checkSetOrder(int $flags): void
-    {
-        if (($flags & PREG_SET_ORDER) !== 0) {
-            throw new \InvalidArgumentException('PREG_SET_ORDER is not supported as it changes the type of $matches');
-        }
-    }
-
-    /**
-     * @param array<int|string, string|null|array{string|null, int}> $matches
-     * @return array<int|string, string>
-     * @throws UnexpectedNullMatchException
-     */
-    private static function enforceNonNullMatches(string $pattern, array $matches, string $variantMethod)
-    {
-        foreach ($matches as $group => $match) {
-            if (is_string($match) || (is_array($match) && is_string($match[0]))) {
-                continue;
-            }
-
-            throw new UnexpectedNullMatchException('Pattern "'.$pattern.'" had an unexpected unmatched group "'.$group.'", make sure the pattern always matches or use '.$variantMethod.'() instead.');
-        }
-
-        /** @var array<string> */
-        return $matches;
-    }
-
-    /**
-     * @param array<int|string, list<string|null>> $matches
-     * @return array<int|string, list<string>>
-     * @throws UnexpectedNullMatchException
-     */
-    private static function enforceNonNullMatchAll(string $pattern, array $matches, string $variantMethod)
-    {
-        foreach ($matches as $group => $groupMatches) {
-            foreach ($groupMatches as $match) {
-                if (null === $match) {
-                    throw new UnexpectedNullMatchException('Pattern "'.$pattern.'" had an unexpected unmatched group "'.$group.'", make sure the pattern always matches or use '.$variantMethod.'() instead.');
-                }
-            }
-        }
-
-        /** @var array<int|string, list<string>> */
-        return $matches;
-    }
-}

+ 0 - 174
vendor/composer/pcre/src/Regex.php

@@ -1,174 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/pcre.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Pcre;
-
-class Regex
-{
-    /**
-     * @param non-empty-string $pattern
-     */
-    public static function isMatch(string $pattern, string $subject, int $offset = 0): bool
-    {
-        return (bool) Preg::match($pattern, $subject, $matches, 0, $offset);
-    }
-
-    /**
-     * @param non-empty-string $pattern
-     * @param int-mask<PREG_UNMATCHED_AS_NULL> $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported
-     */
-    public static function match(string $pattern, string $subject, int $flags = 0, int $offset = 0): MatchResult
-    {
-        self::checkOffsetCapture($flags, 'matchWithOffsets');
-
-        $count = Preg::match($pattern, $subject, $matches, $flags, $offset);
-
-        return new MatchResult($count, $matches);
-    }
-
-    /**
-     * Variant of `match()` which returns non-null matches (or throws)
-     *
-     * @param non-empty-string $pattern
-     * @param int-mask<PREG_UNMATCHED_AS_NULL> $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported
-     * @throws UnexpectedNullMatchException
-     */
-    public static function matchStrictGroups(string $pattern, string $subject, int $flags = 0, int $offset = 0): MatchStrictGroupsResult
-    {
-        $count = Preg::matchStrictGroups($pattern, $subject, $matches, $flags, $offset);
-
-        return new MatchStrictGroupsResult($count, $matches);
-    }
-
-    /**
-     * Runs preg_match with PREG_OFFSET_CAPTURE
-     *
-     * @param non-empty-string $pattern
-     * @param int-mask<PREG_UNMATCHED_AS_NULL|PREG_OFFSET_CAPTURE> $flags PREG_UNMATCHED_AS_NULL and PREG_MATCH_OFFSET are always set, no other flags are supported
-     */
-    public static function matchWithOffsets(string $pattern, string $subject, int $flags = 0, int $offset = 0): MatchWithOffsetsResult
-    {
-        $count = Preg::matchWithOffsets($pattern, $subject, $matches, $flags, $offset);
-
-        return new MatchWithOffsetsResult($count, $matches);
-    }
-
-    /**
-     * @param non-empty-string $pattern
-     * @param int-mask<PREG_UNMATCHED_AS_NULL> $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported
-     */
-    public static function matchAll(string $pattern, string $subject, int $flags = 0, int $offset = 0): MatchAllResult
-    {
-        self::checkOffsetCapture($flags, 'matchAllWithOffsets');
-        self::checkSetOrder($flags);
-
-        $count = Preg::matchAll($pattern, $subject, $matches, $flags, $offset);
-
-        return new MatchAllResult($count, $matches);
-    }
-
-    /**
-     * Variant of `matchAll()` which returns non-null matches (or throws)
-     *
-     * @param non-empty-string $pattern
-     * @param int-mask<PREG_UNMATCHED_AS_NULL> $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported
-     * @throws UnexpectedNullMatchException
-     */
-    public static function matchAllStrictGroups(string $pattern, string $subject, int $flags = 0, int $offset = 0): MatchAllStrictGroupsResult
-    {
-        self::checkOffsetCapture($flags, 'matchAllWithOffsets');
-        self::checkSetOrder($flags);
-
-        $count = Preg::matchAllStrictGroups($pattern, $subject, $matches, $flags, $offset);
-
-        return new MatchAllStrictGroupsResult($count, $matches);
-    }
-
-    /**
-     * Runs preg_match_all with PREG_OFFSET_CAPTURE
-     *
-     * @param non-empty-string $pattern
-     * @param int-mask<PREG_UNMATCHED_AS_NULL|PREG_OFFSET_CAPTURE> $flags PREG_UNMATCHED_AS_NULL and PREG_MATCH_OFFSET are always set, no other flags are supported
-     */
-    public static function matchAllWithOffsets(string $pattern, string $subject, int $flags = 0, int $offset = 0): MatchAllWithOffsetsResult
-    {
-        self::checkSetOrder($flags);
-
-        $count = Preg::matchAllWithOffsets($pattern, $subject, $matches, $flags, $offset);
-
-        return new MatchAllWithOffsetsResult($count, $matches);
-    }
-    /**
-     * @param string|string[] $pattern
-     * @param string|string[] $replacement
-     * @param string          $subject
-     */
-    public static function replace($pattern, $replacement, $subject, int $limit = -1): ReplaceResult
-    {
-        $result = Preg::replace($pattern, $replacement, $subject, $limit, $count);
-
-        return new ReplaceResult($count, $result);
-    }
-
-    /**
-     * @param string|string[] $pattern
-     * @param ($flags is PREG_OFFSET_CAPTURE ? (callable(array<int|string, array{string|null, int<-1, max>}>): string) : callable(array<int|string, string|null>): string) $replacement
-     * @param string          $subject
-     * @param int-mask<PREG_UNMATCHED_AS_NULL|PREG_OFFSET_CAPTURE> $flags PREG_OFFSET_CAPTURE is supported, PREG_UNMATCHED_AS_NULL is always set
-     */
-    public static function replaceCallback($pattern, callable $replacement, $subject, int $limit = -1, int $flags = 0): ReplaceResult
-    {
-        $result = Preg::replaceCallback($pattern, $replacement, $subject, $limit, $count, $flags);
-
-        return new ReplaceResult($count, $result);
-    }
-
-    /**
-     * Variant of `replaceCallback()` which outputs non-null matches (or throws)
-     *
-     * @param string $pattern
-     * @param ($flags is PREG_OFFSET_CAPTURE ? (callable(array<int|string, array{string, int<0, max>}>): string) : callable(array<int|string, string>): string) $replacement
-     * @param string          $subject
-     * @param int-mask<PREG_UNMATCHED_AS_NULL|PREG_OFFSET_CAPTURE> $flags PREG_OFFSET_CAPTURE is supported, PREG_UNMATCHED_AS_NULL is always set
-     */
-    public static function replaceCallbackStrictGroups($pattern, callable $replacement, $subject, int $limit = -1, int $flags = 0): ReplaceResult
-    {
-        $result = Preg::replaceCallbackStrictGroups($pattern, $replacement, $subject, $limit, $count, $flags);
-
-        return new ReplaceResult($count, $result);
-    }
-
-    /**
-     * @param ($flags is PREG_OFFSET_CAPTURE ? (array<string, callable(array<int|string, array{string|null, int<-1, max>}>): string>) : array<string, callable(array<int|string, string|null>): string>) $pattern
-     * @param string $subject
-     * @param int-mask<PREG_UNMATCHED_AS_NULL|PREG_OFFSET_CAPTURE> $flags PREG_OFFSET_CAPTURE is supported, PREG_UNMATCHED_AS_NULL is always set
-     */
-    public static function replaceCallbackArray(array $pattern, $subject, int $limit = -1, int $flags = 0): ReplaceResult
-    {
-        $result = Preg::replaceCallbackArray($pattern, $subject, $limit, $count, $flags);
-
-        return new ReplaceResult($count, $result);
-    }
-
-    private static function checkOffsetCapture(int $flags, string $useFunctionName): void
-    {
-        if (($flags & PREG_OFFSET_CAPTURE) !== 0) {
-            throw new \InvalidArgumentException('PREG_OFFSET_CAPTURE is not supported as it changes the return type, use '.$useFunctionName.'() instead');
-        }
-    }
-
-    private static function checkSetOrder(int $flags): void
-    {
-        if (($flags & PREG_SET_ORDER) !== 0) {
-            throw new \InvalidArgumentException('PREG_SET_ORDER is not supported as it changes the return type');
-        }
-    }
-}

+ 0 - 43
vendor/composer/pcre/src/ReplaceResult.php

@@ -1,43 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/pcre.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Pcre;
-
-final class ReplaceResult
-{
-    /**
-     * @readonly
-     * @var string
-     */
-    public $result;
-
-    /**
-     * @readonly
-     * @var 0|positive-int
-     */
-    public $count;
-
-    /**
-     * @readonly
-     * @var bool
-     */
-    public $matched;
-
-    /**
-     * @param 0|positive-int $count
-     */
-    public function __construct(int $count, string $result)
-    {
-        $this->count = $count;
-        $this->matched = (bool) $count;
-        $this->result = $result;
-    }
-}

+ 0 - 20
vendor/composer/pcre/src/UnexpectedNullMatchException.php

@@ -1,20 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/pcre.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Pcre;
-
-class UnexpectedNullMatchException extends PcreException
-{
-    public static function fromFunction($function, $pattern)
-    {
-        throw new \LogicException('fromFunction should not be called on '.self::class.', use '.PcreException::class);
-    }
-}

+ 0 - 26
vendor/composer/platform_check.php

@@ -1,26 +0,0 @@
-<?php
-
-// platform_check.php @generated by Composer
-
-$issues = array();
-
-if (!(PHP_VERSION_ID >= 80100)) {
-    $issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . PHP_VERSION . '.';
-}
-
-if ($issues) {
-    if (!headers_sent()) {
-        header('HTTP/1.1 500 Internal Server Error');
-    }
-    if (!ini_get('display_errors')) {
-        if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
-            fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL);
-        } elseif (!headers_sent()) {
-            echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL;
-        }
-    }
-    trigger_error(
-        'Composer detected issues in your platform: ' . implode(' ', $issues),
-        E_USER_ERROR
-    );
-}

+ 0 - 214
vendor/composer/semver/CHANGELOG.md

@@ -1,214 +0,0 @@
-# Change Log
-
-All notable changes to this project will be documented in this file.
-This project adheres to [Semantic Versioning](http://semver.org/).
-
-### [3.4.0] 2023-08-31
-
-  * Support larger major version numbers (#149)
-
-### [3.3.2] 2022-04-01
-
-  * Fixed handling of non-string values (#134)
-
-### [3.3.1] 2022-03-16
-
-  * Fixed possible cache key clash in the CompilingMatcher memoization (#132)
-
-### [3.3.0] 2022-03-15
-
-  * Improved performance of CompilingMatcher by memoizing more (#131)
-  * Added CompilingMatcher::clear to clear all memoization caches
-
-### [3.2.9] 2022-02-04
-
-  * Revert #129 (Fixed MultiConstraint with MatchAllConstraint) which caused regressions
-
-### [3.2.8] 2022-02-04
-
-  * Updates to latest phpstan / CI by @Seldaek in https://github.com/composer/semver/pull/130
-  * Fixed MultiConstraint with MatchAllConstraint by @Toflar in https://github.com/composer/semver/pull/129
-
-### [3.2.7] 2022-01-04
-
-  * Fixed: typo in type definition of Intervals class causing issues with Psalm scanning vendors
-
-### [3.2.6] 2021-10-25
-
-  * Fixed: type improvements to parseStability
-
-### [3.2.5] 2021-05-24
-
-  * Fixed: issue comparing disjunctive MultiConstraints to conjunctive ones (#127)
-  * Fixed: added complete type information using phpstan annotations
-
-### [3.2.4] 2020-11-13
-
-  * Fixed: code clean-up
-
-### [3.2.3] 2020-11-12
-
-  * Fixed: constraints in the form of `X || Y, >=Y.1` and other such complex constructs were in some cases being optimized into a more restrictive constraint
-
-### [3.2.2] 2020-10-14
-
-  * Fixed: internal code cleanups
-
-### [3.2.1] 2020-09-27
-
-  * Fixed: accidental validation of broken constraints combining ^/~ and wildcards, and -dev suffix allowing weird cases
-  * Fixed: normalization of beta0 and such which was dropping the 0
-
-### [3.2.0] 2020-09-09
-
-  * Added: support for `x || @dev`, not very useful but seen in the wild and failed to validate with 1.5.2/1.6.0
-  * Added: support for `foobar-dev` being equal to `dev-foobar`, dev-foobar is the official way to write it but we need to support the other for BC and convenience
-
-### [3.1.0] 2020-09-08
-
-  * Added: support for constraints like `^2.x-dev` and `~2.x-dev`, not very useful but seen in the wild and failed to validate with 3.0.1
-  * Fixed: invalid aliases will no longer throw, unless explicitly validated by Composer in the root package
-
-### [3.0.1] 2020-09-08
-
-  * Fixed: handling of some invalid -dev versions which were seen as valid
-
-### [3.0.0] 2020-05-26
-
-  * Break: Renamed `EmptyConstraint`, replace it with `MatchAllConstraint`
-  * Break: Unlikely to affect anyone but strictly speaking a breaking change, `*.*` and such variants will not match all `dev-*` versions anymore, only `*` does
-  * Break: ConstraintInterface is now considered internal/private and not meant to be implemented by third parties anymore
-  * Added `Intervals` class to check if a constraint is a subsets of another one, and allow compacting complex MultiConstraints into simpler ones
-  * Added `CompilingMatcher` class to speed up constraint matching against simple Constraint instances
-  * Added `MatchAllConstraint` and `MatchNoneConstraint` which match everything and nothing
-  * Added more advanced optimization of contiguous constraints inside MultiConstraint
-  * Added tentative support for PHP 8
-  * Fixed ConstraintInterface::matches to be commutative in all cases
-
-### [2.0.0] 2020-04-21
-
-  * Break: `dev-master`, `dev-trunk` and `dev-default` now normalize to `dev-master`, `dev-trunk` and `dev-default` instead of `9999999-dev` in 1.x
-  * Break: Removed the deprecated `AbstractConstraint`
-  * Added `getUpperBound` and `getLowerBound` to ConstraintInterface. They return `Composer\Semver\Constraint\Bound` instances
-  * Added `MultiConstraint::create` to create the most-optimal form of ConstraintInterface from an array of constraint strings
-
-### [1.7.2] 2020-12-03
-
-  * Fixed: Allow installing on php 8
-
-### [1.7.1] 2020-09-27
-
-  * Fixed: accidental validation of broken constraints combining ^/~ and wildcards, and -dev suffix allowing weird cases
-  * Fixed: normalization of beta0 and such which was dropping the 0
-
-### [1.7.0] 2020-09-09
-
-  * Added: support for `x || @dev`, not very useful but seen in the wild and failed to validate with 1.5.2/1.6.0
-  * Added: support for `foobar-dev` being equal to `dev-foobar`, dev-foobar is the official way to write it but we need to support the other for BC and convenience
-
-### [1.6.0] 2020-09-08
-
-  * Added: support for constraints like `^2.x-dev` and `~2.x-dev`, not very useful but seen in the wild and failed to validate with 1.5.2
-  * Fixed: invalid aliases will no longer throw, unless explicitly validated by Composer in the root package
-
-### [1.5.2] 2020-09-08
-
-  * Fixed: handling of some invalid -dev versions which were seen as valid
-  * Fixed: some doctypes
-
-### [1.5.1] 2020-01-13
-
-  * Fixed: Parsing of aliased version was not validating the alias to be a valid version
-
-### [1.5.0] 2019-03-19
-
-  * Added: some support for date versions (e.g. 201903) in `~` operator
-  * Fixed: support for stabilities in `~` operator was inconsistent
-
-### [1.4.2] 2016-08-30
-
-  * Fixed: collapsing of complex constraints lead to buggy constraints
-
-### [1.4.1] 2016-06-02
-
-  * Changed: branch-like requirements no longer strip build metadata - [composer/semver#38](https://github.com/composer/semver/pull/38).
-
-### [1.4.0] 2016-03-30
-
-  * Added: getters on MultiConstraint - [composer/semver#35](https://github.com/composer/semver/pull/35).
-
-### [1.3.0] 2016-02-25
-
-  * Fixed: stability parsing - [composer/composer#1234](https://github.com/composer/composer/issues/4889).
-  * Changed: collapse contiguous constraints when possible.
-
-### [1.2.0] 2015-11-10
-
-  * Changed: allow multiple numerical identifiers in 'pre-release' version part.
-  * Changed: add more 'v' prefix support.
-
-### [1.1.0] 2015-11-03
-
-  * Changed: dropped redundant `test` namespace.
-  * Changed: minor adjustment in datetime parsing normalization.
-  * Changed: `ConstraintInterface` relaxed, setPrettyString is not required anymore.
-  * Changed: `AbstractConstraint` marked deprecated, will be removed in 2.0.
-  * Changed: `Constraint` is now extensible.
-
-### [1.0.0] 2015-09-21
-
-  * Break: `VersionConstraint` renamed to `Constraint`.
-  * Break: `SpecificConstraint` renamed to `AbstractConstraint`.
-  * Break: `LinkConstraintInterface` renamed to `ConstraintInterface`.
-  * Break: `VersionParser::parseNameVersionPairs` was removed.
-  * Changed: `VersionParser::parseConstraints` allows (but ignores) build metadata now.
-  * Changed: `VersionParser::parseConstraints` allows (but ignores) prefixing numeric versions with a 'v' now.
-  * Changed: Fixed namespace(s) of test files.
-  * Changed: `Comparator::compare` no longer throws `InvalidArgumentException`.
-  * Changed: `Constraint` now throws `InvalidArgumentException`.
-
-### [0.1.0] 2015-07-23
-
-  * Added: `Composer\Semver\Comparator`, various methods to compare versions.
-  * Added: various documents such as README.md, LICENSE, etc.
-  * Added: configuration files for Git, Travis, php-cs-fixer, phpunit.
-  * Break: the following namespaces were renamed:
-    - Namespace: `Composer\Package\Version` -> `Composer\Semver`
-    - Namespace: `Composer\Package\LinkConstraint` -> `Composer\Semver\Constraint`
-    - Namespace: `Composer\Test\Package\Version` -> `Composer\Test\Semver`
-    - Namespace: `Composer\Test\Package\LinkConstraint` -> `Composer\Test\Semver\Constraint`
-  * Changed: code style using php-cs-fixer.
-
-[3.4.0]: https://github.com/composer/semver/compare/3.3.2...3.4.0
-[3.3.2]: https://github.com/composer/semver/compare/3.3.1...3.3.2
-[3.3.1]: https://github.com/composer/semver/compare/3.3.0...3.3.1
-[3.3.0]: https://github.com/composer/semver/compare/3.2.9...3.3.0
-[3.2.9]: https://github.com/composer/semver/compare/3.2.8...3.2.9
-[3.2.8]: https://github.com/composer/semver/compare/3.2.7...3.2.8
-[3.2.7]: https://github.com/composer/semver/compare/3.2.6...3.2.7
-[3.2.6]: https://github.com/composer/semver/compare/3.2.5...3.2.6
-[3.2.5]: https://github.com/composer/semver/compare/3.2.4...3.2.5
-[3.2.4]: https://github.com/composer/semver/compare/3.2.3...3.2.4
-[3.2.3]: https://github.com/composer/semver/compare/3.2.2...3.2.3
-[3.2.2]: https://github.com/composer/semver/compare/3.2.1...3.2.2
-[3.2.1]: https://github.com/composer/semver/compare/3.2.0...3.2.1
-[3.2.0]: https://github.com/composer/semver/compare/3.1.0...3.2.0
-[3.1.0]: https://github.com/composer/semver/compare/3.0.1...3.1.0
-[3.0.1]: https://github.com/composer/semver/compare/3.0.0...3.0.1
-[3.0.0]: https://github.com/composer/semver/compare/2.0.0...3.0.0
-[2.0.0]: https://github.com/composer/semver/compare/1.5.1...2.0.0
-[1.7.2]: https://github.com/composer/semver/compare/1.7.1...1.7.2
-[1.7.1]: https://github.com/composer/semver/compare/1.7.0...1.7.1
-[1.7.0]: https://github.com/composer/semver/compare/1.6.0...1.7.0
-[1.6.0]: https://github.com/composer/semver/compare/1.5.2...1.6.0
-[1.5.2]: https://github.com/composer/semver/compare/1.5.1...1.5.2
-[1.5.1]: https://github.com/composer/semver/compare/1.5.0...1.5.1
-[1.5.0]: https://github.com/composer/semver/compare/1.4.2...1.5.0
-[1.4.2]: https://github.com/composer/semver/compare/1.4.1...1.4.2
-[1.4.1]: https://github.com/composer/semver/compare/1.4.0...1.4.1
-[1.4.0]: https://github.com/composer/semver/compare/1.3.0...1.4.0
-[1.3.0]: https://github.com/composer/semver/compare/1.2.0...1.3.0
-[1.2.0]: https://github.com/composer/semver/compare/1.1.0...1.2.0
-[1.1.0]: https://github.com/composer/semver/compare/1.0.0...1.1.0
-[1.0.0]: https://github.com/composer/semver/compare/0.1.0...1.0.0
-[0.1.0]: https://github.com/composer/semver/compare/5e0b9a4da...0.1.0

+ 0 - 19
vendor/composer/semver/LICENSE

@@ -1,19 +0,0 @@
-Copyright (C) 2015 Composer
-
-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.

+ 0 - 99
vendor/composer/semver/README.md

@@ -1,99 +0,0 @@
-composer/semver
-===============
-
-Semver (Semantic Versioning) library that offers utilities, version constraint parsing and validation.
-
-Originally written as part of [composer/composer](https://github.com/composer/composer),
-now extracted and made available as a stand-alone library.
-
-[![Continuous Integration](https://github.com/composer/semver/actions/workflows/continuous-integration.yml/badge.svg?branch=main)](https://github.com/composer/semver/actions/workflows/continuous-integration.yml)
-[![PHP Lint](https://github.com/composer/semver/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/composer/semver/actions/workflows/lint.yml)
-[![PHPStan](https://github.com/composer/semver/actions/workflows/phpstan.yml/badge.svg?branch=main)](https://github.com/composer/semver/actions/workflows/phpstan.yml)
-
-Installation
-------------
-
-Install the latest version with:
-
-```bash
-composer require composer/semver
-```
-
-
-Requirements
-------------
-
-* PHP 5.3.2 is required but using the latest version of PHP is highly recommended.
-
-
-Version Comparison
-------------------
-
-For details on how versions are compared, refer to the [Versions](https://getcomposer.org/doc/articles/versions.md)
-article in the documentation section of the [getcomposer.org](https://getcomposer.org) website.
-
-
-Basic usage
------------
-
-### Comparator
-
-The [`Composer\Semver\Comparator`](https://github.com/composer/semver/blob/main/src/Comparator.php) class provides the following methods for comparing versions:
-
-* greaterThan($v1, $v2)
-* greaterThanOrEqualTo($v1, $v2)
-* lessThan($v1, $v2)
-* lessThanOrEqualTo($v1, $v2)
-* equalTo($v1, $v2)
-* notEqualTo($v1, $v2)
-
-Each function takes two version strings as arguments and returns a boolean. For example:
-
-```php
-use Composer\Semver\Comparator;
-
-Comparator::greaterThan('1.25.0', '1.24.0'); // 1.25.0 > 1.24.0
-```
-
-### Semver
-
-The [`Composer\Semver\Semver`](https://github.com/composer/semver/blob/main/src/Semver.php) class provides the following methods:
-
-* satisfies($version, $constraints)
-* satisfiedBy(array $versions, $constraint)
-* sort($versions)
-* rsort($versions)
-
-### Intervals
-
-The [`Composer\Semver\Intervals`](https://github.com/composer/semver/blob/main/src/Intervals.php) static class provides
-a few utilities to work with complex constraints or read version intervals from a constraint:
-
-```php
-use Composer\Semver\Intervals;
-
-// Checks whether $candidate is a subset of $constraint
-Intervals::isSubsetOf(ConstraintInterface $candidate, ConstraintInterface $constraint);
-
-// Checks whether $a and $b have any intersection, equivalent to $a->matches($b)
-Intervals::haveIntersections(ConstraintInterface $a, ConstraintInterface $b);
-
-// Optimizes a complex multi constraint by merging all intervals down to the smallest
-// possible multi constraint. The drawbacks are this is not very fast, and the resulting
-// multi constraint will have no human readable prettyConstraint configured on it
-Intervals::compactConstraint(ConstraintInterface $constraint);
-
-// Creates an array of numeric intervals and branch constraints representing a given constraint
-Intervals::get(ConstraintInterface $constraint);
-
-// Clears the memoization cache when you are done processing constraints
-Intervals::clear()
-```
-
-See the class docblocks for more details.
-
-
-License
--------
-
-composer/semver is licensed under the MIT License, see the LICENSE file for details.

+ 0 - 59
vendor/composer/semver/composer.json

@@ -1,59 +0,0 @@
-{
-    "name": "composer/semver",
-    "description": "Semver library that offers utilities, version constraint parsing and validation.",
-    "type": "library",
-    "license": "MIT",
-    "keywords": [
-        "semver",
-        "semantic",
-        "versioning",
-        "validation"
-    ],
-    "authors": [
-        {
-            "name": "Nils Adermann",
-            "email": "naderman@naderman.de",
-            "homepage": "http://www.naderman.de"
-        },
-        {
-            "name": "Jordi Boggiano",
-            "email": "j.boggiano@seld.be",
-            "homepage": "http://seld.be"
-        },
-        {
-            "name": "Rob Bast",
-            "email": "rob.bast@gmail.com",
-            "homepage": "http://robbast.nl"
-        }
-    ],
-    "support": {
-        "irc": "ircs://irc.libera.chat:6697/composer",
-        "issues": "https://github.com/composer/semver/issues"
-    },
-    "require": {
-        "php": "^5.3.2 || ^7.0 || ^8.0"
-    },
-    "require-dev": {
-        "symfony/phpunit-bridge": "^4.2 || ^5",
-        "phpstan/phpstan": "^1.4"
-    },
-    "autoload": {
-        "psr-4": {
-            "Composer\\Semver\\": "src"
-        }
-    },
-    "autoload-dev": {
-        "psr-4": {
-            "Composer\\Semver\\": "tests"
-        }
-    },
-    "extra": {
-        "branch-alias": {
-            "dev-main": "3.x-dev"
-        }
-    },
-    "scripts": {
-        "test": "SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT=1 vendor/bin/simple-phpunit",
-        "phpstan": "@php vendor/bin/phpstan analyse"
-    }
-}

+ 0 - 11
vendor/composer/semver/phpstan-baseline.neon

@@ -1,11 +0,0 @@
-parameters:
-	ignoreErrors:
-		-
-			message: "#^Parameter \\#1 \\$operator of class Composer\\\\Semver\\\\Constraint\\\\Constraint constructor expects '\\!\\='\\|'\\<'\\|'\\<\\='\\|'\\<\\>'\\|'\\='\\|'\\=\\='\\|'\\>'\\|'\\>\\=', non\\-falsy\\-string given\\.$#"
-			count: 1
-			path: src/VersionParser.php
-
-		-
-			message: "#^Strict comparison using \\=\\=\\= between null and non\\-empty\\-string will always evaluate to false\\.$#"
-			count: 2
-			path: src/VersionParser.php

+ 0 - 113
vendor/composer/semver/src/Comparator.php

@@ -1,113 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/semver.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Semver;
-
-use Composer\Semver\Constraint\Constraint;
-
-class Comparator
-{
-    /**
-     * Evaluates the expression: $version1 > $version2.
-     *
-     * @param string $version1
-     * @param string $version2
-     *
-     * @return bool
-     */
-    public static function greaterThan($version1, $version2)
-    {
-        return self::compare($version1, '>', $version2);
-    }
-
-    /**
-     * Evaluates the expression: $version1 >= $version2.
-     *
-     * @param string $version1
-     * @param string $version2
-     *
-     * @return bool
-     */
-    public static function greaterThanOrEqualTo($version1, $version2)
-    {
-        return self::compare($version1, '>=', $version2);
-    }
-
-    /**
-     * Evaluates the expression: $version1 < $version2.
-     *
-     * @param string $version1
-     * @param string $version2
-     *
-     * @return bool
-     */
-    public static function lessThan($version1, $version2)
-    {
-        return self::compare($version1, '<', $version2);
-    }
-
-    /**
-     * Evaluates the expression: $version1 <= $version2.
-     *
-     * @param string $version1
-     * @param string $version2
-     *
-     * @return bool
-     */
-    public static function lessThanOrEqualTo($version1, $version2)
-    {
-        return self::compare($version1, '<=', $version2);
-    }
-
-    /**
-     * Evaluates the expression: $version1 == $version2.
-     *
-     * @param string $version1
-     * @param string $version2
-     *
-     * @return bool
-     */
-    public static function equalTo($version1, $version2)
-    {
-        return self::compare($version1, '==', $version2);
-    }
-
-    /**
-     * Evaluates the expression: $version1 != $version2.
-     *
-     * @param string $version1
-     * @param string $version2
-     *
-     * @return bool
-     */
-    public static function notEqualTo($version1, $version2)
-    {
-        return self::compare($version1, '!=', $version2);
-    }
-
-    /**
-     * Evaluates the expression: $version1 $operator $version2.
-     *
-     * @param string $version1
-     * @param string $operator
-     * @param string $version2
-     *
-     * @return bool
-     *
-     * @phpstan-param Constraint::STR_OP_*  $operator
-     */
-    public static function compare($version1, $operator, $version2)
-    {
-        $constraint = new Constraint($operator, $version2);
-
-        return $constraint->matchSpecific(new Constraint('==', $version1), true);
-    }
-}

+ 0 - 94
vendor/composer/semver/src/CompilingMatcher.php

@@ -1,94 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/semver.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Semver;
-
-use Composer\Semver\Constraint\Constraint;
-use Composer\Semver\Constraint\ConstraintInterface;
-
-/**
- * Helper class to evaluate constraint by compiling and reusing the code to evaluate
- */
-class CompilingMatcher
-{
-    /**
-     * @var array
-     * @phpstan-var array<string, callable>
-     */
-    private static $compiledCheckerCache = array();
-    /**
-     * @var array
-     * @phpstan-var array<string, bool>
-     */
-    private static $resultCache = array();
-
-    /** @var bool */
-    private static $enabled;
-
-    /**
-     * @phpstan-var array<Constraint::OP_*, Constraint::STR_OP_*>
-     */
-    private static $transOpInt = array(
-        Constraint::OP_EQ => Constraint::STR_OP_EQ,
-        Constraint::OP_LT => Constraint::STR_OP_LT,
-        Constraint::OP_LE => Constraint::STR_OP_LE,
-        Constraint::OP_GT => Constraint::STR_OP_GT,
-        Constraint::OP_GE => Constraint::STR_OP_GE,
-        Constraint::OP_NE => Constraint::STR_OP_NE,
-    );
-
-    /**
-     * Clears the memoization cache once you are done
-     *
-     * @return void
-     */
-    public static function clear()
-    {
-        self::$resultCache = array();
-        self::$compiledCheckerCache = array();
-    }
-
-    /**
-     * Evaluates the expression: $constraint match $operator $version
-     *
-     * @param ConstraintInterface $constraint
-     * @param int                 $operator
-     * @phpstan-param Constraint::OP_*  $operator
-     * @param string              $version
-     *
-     * @return mixed
-     */
-    public static function match(ConstraintInterface $constraint, $operator, $version)
-    {
-        $resultCacheKey = $operator.$constraint.';'.$version;
-
-        if (isset(self::$resultCache[$resultCacheKey])) {
-            return self::$resultCache[$resultCacheKey];
-        }
-
-        if (self::$enabled === null) {
-            self::$enabled = !\in_array('eval', explode(',', (string) ini_get('disable_functions')), true);
-        }
-        if (!self::$enabled) {
-            return self::$resultCache[$resultCacheKey] = $constraint->matches(new Constraint(self::$transOpInt[$operator], $version));
-        }
-
-        $cacheKey = $operator.$constraint;
-        if (!isset(self::$compiledCheckerCache[$cacheKey])) {
-            $code = $constraint->compile($operator);
-            self::$compiledCheckerCache[$cacheKey] = $function = eval('return function($v, $b){return '.$code.';};');
-        } else {
-            $function = self::$compiledCheckerCache[$cacheKey];
-        }
-
-        return self::$resultCache[$resultCacheKey] = $function($version, strpos($version, 'dev-') === 0);
-    }
-}

+ 0 - 122
vendor/composer/semver/src/Constraint/Bound.php

@@ -1,122 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/semver.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Semver\Constraint;
-
-class Bound
-{
-    /**
-     * @var string
-     */
-    private $version;
-
-    /**
-     * @var bool
-     */
-    private $isInclusive;
-
-    /**
-     * @param string $version
-     * @param bool   $isInclusive
-     */
-    public function __construct($version, $isInclusive)
-    {
-        $this->version = $version;
-        $this->isInclusive = $isInclusive;
-    }
-
-    /**
-     * @return string
-     */
-    public function getVersion()
-    {
-        return $this->version;
-    }
-
-    /**
-     * @return bool
-     */
-    public function isInclusive()
-    {
-        return $this->isInclusive;
-    }
-
-    /**
-     * @return bool
-     */
-    public function isZero()
-    {
-        return $this->getVersion() === '0.0.0.0-dev' && $this->isInclusive();
-    }
-
-    /**
-     * @return bool
-     */
-    public function isPositiveInfinity()
-    {
-        return $this->getVersion() === PHP_INT_MAX.'.0.0.0' && !$this->isInclusive();
-    }
-
-    /**
-     * Compares a bound to another with a given operator.
-     *
-     * @param Bound  $other
-     * @param string $operator
-     *
-     * @return bool
-     */
-    public function compareTo(Bound $other, $operator)
-    {
-        if (!\in_array($operator, array('<', '>'), true)) {
-            throw new \InvalidArgumentException('Does not support any other operator other than > or <.');
-        }
-
-        // If they are the same it doesn't matter
-        if ($this == $other) {
-            return false;
-        }
-
-        $compareResult = version_compare($this->getVersion(), $other->getVersion());
-
-        // Not the same version means we don't need to check if the bounds are inclusive or not
-        if (0 !== $compareResult) {
-            return (('>' === $operator) ? 1 : -1) === $compareResult;
-        }
-
-        // Question we're answering here is "am I higher than $other?"
-        return '>' === $operator ? $other->isInclusive() : !$other->isInclusive();
-    }
-
-    public function __toString()
-    {
-        return sprintf(
-            '%s [%s]',
-            $this->getVersion(),
-            $this->isInclusive() ? 'inclusive' : 'exclusive'
-        );
-    }
-
-    /**
-     * @return self
-     */
-    public static function zero()
-    {
-        return new Bound('0.0.0.0-dev', true);
-    }
-
-    /**
-     * @return self
-     */
-    public static function positiveInfinity()
-    {
-        return new Bound(PHP_INT_MAX.'.0.0.0', false);
-    }
-}

+ 0 - 435
vendor/composer/semver/src/Constraint/Constraint.php

@@ -1,435 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/semver.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Semver\Constraint;
-
-/**
- * Defines a constraint.
- */
-class Constraint implements ConstraintInterface
-{
-    /* operator integer values */
-    const OP_EQ = 0;
-    const OP_LT = 1;
-    const OP_LE = 2;
-    const OP_GT = 3;
-    const OP_GE = 4;
-    const OP_NE = 5;
-
-    /* operator string values */
-    const STR_OP_EQ = '==';
-    const STR_OP_EQ_ALT = '=';
-    const STR_OP_LT = '<';
-    const STR_OP_LE = '<=';
-    const STR_OP_GT = '>';
-    const STR_OP_GE = '>=';
-    const STR_OP_NE = '!=';
-    const STR_OP_NE_ALT = '<>';
-
-    /**
-     * Operator to integer translation table.
-     *
-     * @var array
-     * @phpstan-var array<self::STR_OP_*, self::OP_*>
-     */
-    private static $transOpStr = array(
-        '=' => self::OP_EQ,
-        '==' => self::OP_EQ,
-        '<' => self::OP_LT,
-        '<=' => self::OP_LE,
-        '>' => self::OP_GT,
-        '>=' => self::OP_GE,
-        '<>' => self::OP_NE,
-        '!=' => self::OP_NE,
-    );
-
-    /**
-     * Integer to operator translation table.
-     *
-     * @var array
-     * @phpstan-var array<self::OP_*, self::STR_OP_*>
-     */
-    private static $transOpInt = array(
-        self::OP_EQ => '==',
-        self::OP_LT => '<',
-        self::OP_LE => '<=',
-        self::OP_GT => '>',
-        self::OP_GE => '>=',
-        self::OP_NE => '!=',
-    );
-
-    /**
-     * @var int
-     * @phpstan-var self::OP_*
-     */
-    protected $operator;
-
-    /** @var string */
-    protected $version;
-
-    /** @var string|null */
-    protected $prettyString;
-
-    /** @var Bound */
-    protected $lowerBound;
-
-    /** @var Bound */
-    protected $upperBound;
-
-    /**
-     * Sets operator and version to compare with.
-     *
-     * @param string $operator
-     * @param string $version
-     *
-     * @throws \InvalidArgumentException if invalid operator is given.
-     *
-     * @phpstan-param self::STR_OP_* $operator
-     */
-    public function __construct($operator, $version)
-    {
-        if (!isset(self::$transOpStr[$operator])) {
-            throw new \InvalidArgumentException(sprintf(
-                'Invalid operator "%s" given, expected one of: %s',
-                $operator,
-                implode(', ', self::getSupportedOperators())
-            ));
-        }
-
-        $this->operator = self::$transOpStr[$operator];
-        $this->version = $version;
-    }
-
-    /**
-     * @return string
-     */
-    public function getVersion()
-    {
-        return $this->version;
-    }
-
-    /**
-     * @return string
-     *
-     * @phpstan-return self::STR_OP_*
-     */
-    public function getOperator()
-    {
-        return self::$transOpInt[$this->operator];
-    }
-
-    /**
-     * @param ConstraintInterface $provider
-     *
-     * @return bool
-     */
-    public function matches(ConstraintInterface $provider)
-    {
-        if ($provider instanceof self) {
-            return $this->matchSpecific($provider);
-        }
-
-        // turn matching around to find a match
-        return $provider->matches($this);
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public function setPrettyString($prettyString)
-    {
-        $this->prettyString = $prettyString;
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public function getPrettyString()
-    {
-        if ($this->prettyString) {
-            return $this->prettyString;
-        }
-
-        return $this->__toString();
-    }
-
-    /**
-     * Get all supported comparison operators.
-     *
-     * @return array
-     *
-     * @phpstan-return list<self::STR_OP_*>
-     */
-    public static function getSupportedOperators()
-    {
-        return array_keys(self::$transOpStr);
-    }
-
-    /**
-     * @param  string $operator
-     * @return int
-     *
-     * @phpstan-param  self::STR_OP_* $operator
-     * @phpstan-return self::OP_*
-     */
-    public static function getOperatorConstant($operator)
-    {
-        return self::$transOpStr[$operator];
-    }
-
-    /**
-     * @param string $a
-     * @param string $b
-     * @param string $operator
-     * @param bool   $compareBranches
-     *
-     * @throws \InvalidArgumentException if invalid operator is given.
-     *
-     * @return bool
-     *
-     * @phpstan-param self::STR_OP_* $operator
-     */
-    public function versionCompare($a, $b, $operator, $compareBranches = false)
-    {
-        if (!isset(self::$transOpStr[$operator])) {
-            throw new \InvalidArgumentException(sprintf(
-                'Invalid operator "%s" given, expected one of: %s',
-                $operator,
-                implode(', ', self::getSupportedOperators())
-            ));
-        }
-
-        $aIsBranch = strpos($a, 'dev-') === 0;
-        $bIsBranch = strpos($b, 'dev-') === 0;
-
-        if ($operator === '!=' && ($aIsBranch || $bIsBranch)) {
-            return $a !== $b;
-        }
-
-        if ($aIsBranch && $bIsBranch) {
-            return $operator === '==' && $a === $b;
-        }
-
-        // when branches are not comparable, we make sure dev branches never match anything
-        if (!$compareBranches && ($aIsBranch || $bIsBranch)) {
-            return false;
-        }
-
-        return \version_compare($a, $b, $operator);
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public function compile($otherOperator)
-    {
-        if (strpos($this->version, 'dev-') === 0) {
-            if (self::OP_EQ === $this->operator) {
-                if (self::OP_EQ === $otherOperator) {
-                    return sprintf('$b && $v === %s', \var_export($this->version, true));
-                }
-                if (self::OP_NE === $otherOperator) {
-                    return sprintf('!$b || $v !== %s', \var_export($this->version, true));
-                }
-                return 'false';
-            }
-
-            if (self::OP_NE === $this->operator) {
-                if (self::OP_EQ === $otherOperator) {
-                    return sprintf('!$b || $v !== %s', \var_export($this->version, true));
-                }
-                if (self::OP_NE === $otherOperator) {
-                    return 'true';
-                }
-                return '!$b';
-            }
-
-            return 'false';
-        }
-
-        if (self::OP_EQ === $this->operator) {
-            if (self::OP_EQ === $otherOperator) {
-                return sprintf('\version_compare($v, %s, \'==\')', \var_export($this->version, true));
-            }
-            if (self::OP_NE === $otherOperator) {
-                return sprintf('$b || \version_compare($v, %s, \'!=\')', \var_export($this->version, true));
-            }
-
-            return sprintf('!$b && \version_compare(%s, $v, \'%s\')', \var_export($this->version, true), self::$transOpInt[$otherOperator]);
-        }
-
-        if (self::OP_NE === $this->operator) {
-            if (self::OP_EQ === $otherOperator) {
-                return sprintf('$b || (!$b && \version_compare($v, %s, \'!=\'))', \var_export($this->version, true));
-            }
-
-            if (self::OP_NE === $otherOperator) {
-                return 'true';
-            }
-            return '!$b';
-        }
-
-        if (self::OP_LT === $this->operator || self::OP_LE === $this->operator) {
-            if (self::OP_LT === $otherOperator || self::OP_LE === $otherOperator) {
-                return '!$b';
-            }
-        } else { // $this->operator must be self::OP_GT || self::OP_GE here
-            if (self::OP_GT === $otherOperator || self::OP_GE === $otherOperator) {
-                return '!$b';
-            }
-        }
-
-        if (self::OP_NE === $otherOperator) {
-            return 'true';
-        }
-
-        $codeComparison = sprintf('\version_compare($v, %s, \'%s\')', \var_export($this->version, true), self::$transOpInt[$this->operator]);
-        if ($this->operator === self::OP_LE) {
-            if ($otherOperator === self::OP_GT) {
-                return sprintf('!$b && \version_compare($v, %s, \'!=\') && ', \var_export($this->version, true)) . $codeComparison;
-            }
-        } elseif ($this->operator === self::OP_GE) {
-            if ($otherOperator === self::OP_LT) {
-                return sprintf('!$b && \version_compare($v, %s, \'!=\') && ', \var_export($this->version, true)) . $codeComparison;
-            }
-        }
-
-        return sprintf('!$b && %s', $codeComparison);
-    }
-
-    /**
-     * @param Constraint $provider
-     * @param bool       $compareBranches
-     *
-     * @return bool
-     */
-    public function matchSpecific(Constraint $provider, $compareBranches = false)
-    {
-        $noEqualOp = str_replace('=', '', self::$transOpInt[$this->operator]);
-        $providerNoEqualOp = str_replace('=', '', self::$transOpInt[$provider->operator]);
-
-        $isEqualOp = self::OP_EQ === $this->operator;
-        $isNonEqualOp = self::OP_NE === $this->operator;
-        $isProviderEqualOp = self::OP_EQ === $provider->operator;
-        $isProviderNonEqualOp = self::OP_NE === $provider->operator;
-
-        // '!=' operator is match when other operator is not '==' operator or version is not match
-        // these kinds of comparisons always have a solution
-        if ($isNonEqualOp || $isProviderNonEqualOp) {
-            if ($isNonEqualOp && !$isProviderNonEqualOp && !$isProviderEqualOp && strpos($provider->version, 'dev-') === 0) {
-                return false;
-            }
-
-            if ($isProviderNonEqualOp && !$isNonEqualOp && !$isEqualOp && strpos($this->version, 'dev-') === 0) {
-                return false;
-            }
-
-            if (!$isEqualOp && !$isProviderEqualOp) {
-                return true;
-            }
-            return $this->versionCompare($provider->version, $this->version, '!=', $compareBranches);
-        }
-
-        // an example for the condition is <= 2.0 & < 1.0
-        // these kinds of comparisons always have a solution
-        if ($this->operator !== self::OP_EQ && $noEqualOp === $providerNoEqualOp) {
-            return !(strpos($this->version, 'dev-') === 0 || strpos($provider->version, 'dev-') === 0);
-        }
-
-        $version1 = $isEqualOp ? $this->version : $provider->version;
-        $version2 = $isEqualOp ? $provider->version : $this->version;
-        $operator = $isEqualOp ? $provider->operator : $this->operator;
-
-        if ($this->versionCompare($version1, $version2, self::$transOpInt[$operator], $compareBranches)) {
-            // special case, e.g. require >= 1.0 and provide < 1.0
-            // 1.0 >= 1.0 but 1.0 is outside of the provided interval
-
-            return !(self::$transOpInt[$provider->operator] === $providerNoEqualOp
-                && self::$transOpInt[$this->operator] !== $noEqualOp
-                && \version_compare($provider->version, $this->version, '=='));
-        }
-
-        return false;
-    }
-
-    /**
-     * @return string
-     */
-    public function __toString()
-    {
-        return self::$transOpInt[$this->operator] . ' ' . $this->version;
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public function getLowerBound()
-    {
-        $this->extractBounds();
-
-        return $this->lowerBound;
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public function getUpperBound()
-    {
-        $this->extractBounds();
-
-        return $this->upperBound;
-    }
-
-    /**
-     * @return void
-     */
-    private function extractBounds()
-    {
-        if (null !== $this->lowerBound) {
-            return;
-        }
-
-        // Branches
-        if (strpos($this->version, 'dev-') === 0) {
-            $this->lowerBound = Bound::zero();
-            $this->upperBound = Bound::positiveInfinity();
-
-            return;
-        }
-
-        switch ($this->operator) {
-            case self::OP_EQ:
-                $this->lowerBound = new Bound($this->version, true);
-                $this->upperBound = new Bound($this->version, true);
-                break;
-            case self::OP_LT:
-                $this->lowerBound = Bound::zero();
-                $this->upperBound = new Bound($this->version, false);
-                break;
-            case self::OP_LE:
-                $this->lowerBound = Bound::zero();
-                $this->upperBound = new Bound($this->version, true);
-                break;
-            case self::OP_GT:
-                $this->lowerBound = new Bound($this->version, false);
-                $this->upperBound = Bound::positiveInfinity();
-                break;
-            case self::OP_GE:
-                $this->lowerBound = new Bound($this->version, true);
-                $this->upperBound = Bound::positiveInfinity();
-                break;
-            case self::OP_NE:
-                $this->lowerBound = Bound::zero();
-                $this->upperBound = Bound::positiveInfinity();
-                break;
-        }
-    }
-}

+ 0 - 75
vendor/composer/semver/src/Constraint/ConstraintInterface.php

@@ -1,75 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/semver.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Semver\Constraint;
-
-/**
- * DO NOT IMPLEMENT this interface. It is only meant for usage as a type hint
- * in libraries relying on composer/semver but creating your own constraint class
- * that implements this interface is not a supported use case and will cause the
- * composer/semver components to return unexpected results.
- */
-interface ConstraintInterface
-{
-    /**
-     * Checks whether the given constraint intersects in any way with this constraint
-     *
-     * @param ConstraintInterface $provider
-     *
-     * @return bool
-     */
-    public function matches(ConstraintInterface $provider);
-
-    /**
-     * Provides a compiled version of the constraint for the given operator
-     * The compiled version must be a PHP expression.
-     * Executor of compile version must provide 2 variables:
-     * - $v = the string version to compare with
-     * - $b = whether or not the version is a non-comparable branch (starts with "dev-")
-     *
-     * @see Constraint::OP_* for the list of available operators.
-     * @example return '!$b && version_compare($v, '1.0', '>')';
-     *
-     * @param int $otherOperator one Constraint::OP_*
-     *
-     * @return string
-     *
-     * @phpstan-param Constraint::OP_* $otherOperator
-     */
-    public function compile($otherOperator);
-
-    /**
-     * @return Bound
-     */
-    public function getUpperBound();
-
-    /**
-     * @return Bound
-     */
-    public function getLowerBound();
-
-    /**
-     * @return string
-     */
-    public function getPrettyString();
-
-    /**
-     * @param string|null $prettyString
-     *
-     * @return void
-     */
-    public function setPrettyString($prettyString);
-
-    /**
-     * @return string
-     */
-    public function __toString();
-}

+ 0 - 85
vendor/composer/semver/src/Constraint/MatchAllConstraint.php

@@ -1,85 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/semver.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Semver\Constraint;
-
-/**
- * Defines the absence of a constraint.
- *
- * This constraint matches everything.
- */
-class MatchAllConstraint implements ConstraintInterface
-{
-    /** @var string|null */
-    protected $prettyString;
-
-    /**
-     * @param ConstraintInterface $provider
-     *
-     * @return bool
-     */
-    public function matches(ConstraintInterface $provider)
-    {
-        return true;
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public function compile($otherOperator)
-    {
-        return 'true';
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public function setPrettyString($prettyString)
-    {
-        $this->prettyString = $prettyString;
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public function getPrettyString()
-    {
-        if ($this->prettyString) {
-            return $this->prettyString;
-        }
-
-        return (string) $this;
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public function __toString()
-    {
-        return '*';
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public function getUpperBound()
-    {
-        return Bound::positiveInfinity();
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public function getLowerBound()
-    {
-        return Bound::zero();
-    }
-}

+ 0 - 83
vendor/composer/semver/src/Constraint/MatchNoneConstraint.php

@@ -1,83 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/semver.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Semver\Constraint;
-
-/**
- * Blackhole of constraints, nothing escapes it
- */
-class MatchNoneConstraint implements ConstraintInterface
-{
-    /** @var string|null */
-    protected $prettyString;
-
-    /**
-     * @param ConstraintInterface $provider
-     *
-     * @return bool
-     */
-    public function matches(ConstraintInterface $provider)
-    {
-        return false;
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public function compile($otherOperator)
-    {
-        return 'false';
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public function setPrettyString($prettyString)
-    {
-        $this->prettyString = $prettyString;
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public function getPrettyString()
-    {
-        if ($this->prettyString) {
-            return $this->prettyString;
-        }
-
-        return (string) $this;
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public function __toString()
-    {
-        return '[]';
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public function getUpperBound()
-    {
-        return new Bound('0.0.0.0-dev', false);
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public function getLowerBound()
-    {
-        return new Bound('0.0.0.0-dev', false);
-    }
-}

+ 0 - 325
vendor/composer/semver/src/Constraint/MultiConstraint.php

@@ -1,325 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/semver.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Semver\Constraint;
-
-/**
- * Defines a conjunctive or disjunctive set of constraints.
- */
-class MultiConstraint implements ConstraintInterface
-{
-    /**
-     * @var ConstraintInterface[]
-     * @phpstan-var non-empty-array<ConstraintInterface>
-     */
-    protected $constraints;
-
-    /** @var string|null */
-    protected $prettyString;
-
-    /** @var string|null */
-    protected $string;
-
-    /** @var bool */
-    protected $conjunctive;
-
-    /** @var Bound|null */
-    protected $lowerBound;
-
-    /** @var Bound|null */
-    protected $upperBound;
-
-    /**
-     * @param ConstraintInterface[] $constraints A set of constraints
-     * @param bool                  $conjunctive Whether the constraints should be treated as conjunctive or disjunctive
-     *
-     * @throws \InvalidArgumentException If less than 2 constraints are passed
-     */
-    public function __construct(array $constraints, $conjunctive = true)
-    {
-        if (\count($constraints) < 2) {
-            throw new \InvalidArgumentException(
-                'Must provide at least two constraints for a MultiConstraint. Use '.
-                'the regular Constraint class for one constraint only or MatchAllConstraint for none. You may use '.
-                'MultiConstraint::create() which optimizes and handles those cases automatically.'
-            );
-        }
-
-        $this->constraints = $constraints;
-        $this->conjunctive = $conjunctive;
-    }
-
-    /**
-     * @return ConstraintInterface[]
-     */
-    public function getConstraints()
-    {
-        return $this->constraints;
-    }
-
-    /**
-     * @return bool
-     */
-    public function isConjunctive()
-    {
-        return $this->conjunctive;
-    }
-
-    /**
-     * @return bool
-     */
-    public function isDisjunctive()
-    {
-        return !$this->conjunctive;
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public function compile($otherOperator)
-    {
-        $parts = array();
-        foreach ($this->constraints as $constraint) {
-            $code = $constraint->compile($otherOperator);
-            if ($code === 'true') {
-                if (!$this->conjunctive) {
-                    return 'true';
-                }
-            } elseif ($code === 'false') {
-                if ($this->conjunctive) {
-                    return 'false';
-                }
-            } else {
-                $parts[] = '('.$code.')';
-            }
-        }
-
-        if (!$parts) {
-            return $this->conjunctive ? 'true' : 'false';
-        }
-
-        return $this->conjunctive ? implode('&&', $parts) : implode('||', $parts);
-    }
-
-    /**
-     * @param ConstraintInterface $provider
-     *
-     * @return bool
-     */
-    public function matches(ConstraintInterface $provider)
-    {
-        if (false === $this->conjunctive) {
-            foreach ($this->constraints as $constraint) {
-                if ($provider->matches($constraint)) {
-                    return true;
-                }
-            }
-
-            return false;
-        }
-
-        // when matching a conjunctive and a disjunctive multi constraint we have to iterate over the disjunctive one
-        // otherwise we'd return true if different parts of the disjunctive constraint match the conjunctive one
-        // which would lead to incorrect results, e.g. [>1 and <2] would match [<1 or >2] although they do not intersect
-        if ($provider instanceof MultiConstraint && $provider->isDisjunctive()) {
-            return $provider->matches($this);
-        }
-
-        foreach ($this->constraints as $constraint) {
-            if (!$provider->matches($constraint)) {
-                return false;
-            }
-        }
-
-        return true;
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public function setPrettyString($prettyString)
-    {
-        $this->prettyString = $prettyString;
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public function getPrettyString()
-    {
-        if ($this->prettyString) {
-            return $this->prettyString;
-        }
-
-        return (string) $this;
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public function __toString()
-    {
-        if ($this->string !== null) {
-            return $this->string;
-        }
-
-        $constraints = array();
-        foreach ($this->constraints as $constraint) {
-            $constraints[] = (string) $constraint;
-        }
-
-        return $this->string = '[' . implode($this->conjunctive ? ' ' : ' || ', $constraints) . ']';
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public function getLowerBound()
-    {
-        $this->extractBounds();
-
-        if (null === $this->lowerBound) {
-            throw new \LogicException('extractBounds should have populated the lowerBound property');
-        }
-
-        return $this->lowerBound;
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public function getUpperBound()
-    {
-        $this->extractBounds();
-
-        if (null === $this->upperBound) {
-            throw new \LogicException('extractBounds should have populated the upperBound property');
-        }
-
-        return $this->upperBound;
-    }
-
-    /**
-     * Tries to optimize the constraints as much as possible, meaning
-     * reducing/collapsing congruent constraints etc.
-     * Does not necessarily return a MultiConstraint instance if
-     * things can be reduced to a simple constraint
-     *
-     * @param ConstraintInterface[] $constraints A set of constraints
-     * @param bool                  $conjunctive Whether the constraints should be treated as conjunctive or disjunctive
-     *
-     * @return ConstraintInterface
-     */
-    public static function create(array $constraints, $conjunctive = true)
-    {
-        if (0 === \count($constraints)) {
-            return new MatchAllConstraint();
-        }
-
-        if (1 === \count($constraints)) {
-            return $constraints[0];
-        }
-
-        $optimized = self::optimizeConstraints($constraints, $conjunctive);
-        if ($optimized !== null) {
-            list($constraints, $conjunctive) = $optimized;
-            if (\count($constraints) === 1) {
-                return $constraints[0];
-            }
-        }
-
-        return new self($constraints, $conjunctive);
-    }
-
-    /**
-     * @param  ConstraintInterface[] $constraints
-     * @param  bool                  $conjunctive
-     * @return ?array
-     *
-     * @phpstan-return array{0: list<ConstraintInterface>, 1: bool}|null
-     */
-    private static function optimizeConstraints(array $constraints, $conjunctive)
-    {
-        // parse the two OR groups and if they are contiguous we collapse
-        // them into one constraint
-        // [>= 1 < 2] || [>= 2 < 3] || [>= 3 < 4] => [>= 1 < 4]
-        if (!$conjunctive) {
-            $left = $constraints[0];
-            $mergedConstraints = array();
-            $optimized = false;
-            for ($i = 1, $l = \count($constraints); $i < $l; $i++) {
-                $right = $constraints[$i];
-                if (
-                    $left instanceof self
-                    && $left->conjunctive
-                    && $right instanceof self
-                    && $right->conjunctive
-                    && \count($left->constraints) === 2
-                    && \count($right->constraints) === 2
-                    && ($left0 = (string) $left->constraints[0])
-                    && $left0[0] === '>' && $left0[1] === '='
-                    && ($left1 = (string) $left->constraints[1])
-                    && $left1[0] === '<'
-                    && ($right0 = (string) $right->constraints[0])
-                    && $right0[0] === '>' && $right0[1] === '='
-                    && ($right1 = (string) $right->constraints[1])
-                    && $right1[0] === '<'
-                    && substr($left1, 2) === substr($right0, 3)
-                ) {
-                    $optimized = true;
-                    $left = new MultiConstraint(
-                        array(
-                            $left->constraints[0],
-                            $right->constraints[1],
-                        ),
-                        true);
-                } else {
-                    $mergedConstraints[] = $left;
-                    $left = $right;
-                }
-            }
-            if ($optimized) {
-                $mergedConstraints[] = $left;
-                return array($mergedConstraints, false);
-            }
-        }
-
-        // TODO: Here's the place to put more optimizations
-
-        return null;
-    }
-
-    /**
-     * @return void
-     */
-    private function extractBounds()
-    {
-        if (null !== $this->lowerBound) {
-            return;
-        }
-
-        foreach ($this->constraints as $constraint) {
-            if (null === $this->lowerBound || null === $this->upperBound) {
-                $this->lowerBound = $constraint->getLowerBound();
-                $this->upperBound = $constraint->getUpperBound();
-                continue;
-            }
-
-            if ($constraint->getLowerBound()->compareTo($this->lowerBound, $this->isConjunctive() ? '>' : '<')) {
-                $this->lowerBound = $constraint->getLowerBound();
-            }
-
-            if ($constraint->getUpperBound()->compareTo($this->upperBound, $this->isConjunctive() ? '<' : '>')) {
-                $this->upperBound = $constraint->getUpperBound();
-            }
-        }
-    }
-}

+ 0 - 98
vendor/composer/semver/src/Interval.php

@@ -1,98 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/semver.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Semver;
-
-use Composer\Semver\Constraint\Constraint;
-
-class Interval
-{
-    /** @var Constraint */
-    private $start;
-    /** @var Constraint */
-    private $end;
-
-    public function __construct(Constraint $start, Constraint $end)
-    {
-        $this->start = $start;
-        $this->end = $end;
-    }
-
-    /**
-     * @return Constraint
-     */
-    public function getStart()
-    {
-        return $this->start;
-    }
-
-    /**
-     * @return Constraint
-     */
-    public function getEnd()
-    {
-        return $this->end;
-    }
-
-    /**
-     * @return Constraint
-     */
-    public static function fromZero()
-    {
-        static $zero;
-
-        if (null === $zero) {
-            $zero = new Constraint('>=', '0.0.0.0-dev');
-        }
-
-        return $zero;
-    }
-
-    /**
-     * @return Constraint
-     */
-    public static function untilPositiveInfinity()
-    {
-        static $positiveInfinity;
-
-        if (null === $positiveInfinity) {
-            $positiveInfinity = new Constraint('<', PHP_INT_MAX.'.0.0.0');
-        }
-
-        return $positiveInfinity;
-    }
-
-    /**
-     * @return self
-     */
-    public static function any()
-    {
-        return new self(self::fromZero(), self::untilPositiveInfinity());
-    }
-
-    /**
-     * @return array{'names': string[], 'exclude': bool}
-     */
-    public static function anyDev()
-    {
-        // any == exclude nothing
-        return array('names' => array(), 'exclude' => true);
-    }
-
-    /**
-     * @return array{'names': string[], 'exclude': bool}
-     */
-    public static function noDev()
-    {
-        // nothing == no names included
-        return array('names' => array(), 'exclude' => false);
-    }
-}

+ 0 - 478
vendor/composer/semver/src/Intervals.php

@@ -1,478 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/semver.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Semver;
-
-use Composer\Semver\Constraint\Constraint;
-use Composer\Semver\Constraint\ConstraintInterface;
-use Composer\Semver\Constraint\MatchAllConstraint;
-use Composer\Semver\Constraint\MatchNoneConstraint;
-use Composer\Semver\Constraint\MultiConstraint;
-
-/**
- * Helper class generating intervals from constraints
- *
- * This contains utilities for:
- *
- *  - compacting an existing constraint which can be used to combine several into one
- * by creating a MultiConstraint out of the many constraints you have.
- *
- *  - checking whether one subset is a subset of another.
- *
- * Note: You should call clear to free memoization memory  usage when you are done using this class
- */
-class Intervals
-{
-    /**
-     * @phpstan-var array<string, array{'numeric': Interval[], 'branches': array{'names': string[], 'exclude': bool}}>
-     */
-    private static $intervalsCache = array();
-
-    /**
-     * @phpstan-var array<string, int>
-     */
-    private static $opSortOrder = array(
-        '>=' => -3,
-        '<' => -2,
-        '>' => 2,
-        '<=' => 3,
-    );
-
-    /**
-     * Clears the memoization cache once you are done
-     *
-     * @return void
-     */
-    public static function clear()
-    {
-        self::$intervalsCache = array();
-    }
-
-    /**
-     * Checks whether $candidate is a subset of $constraint
-     *
-     * @return bool
-     */
-    public static function isSubsetOf(ConstraintInterface $candidate, ConstraintInterface $constraint)
-    {
-        if ($constraint instanceof MatchAllConstraint) {
-            return true;
-        }
-
-        if ($candidate instanceof MatchNoneConstraint || $constraint instanceof MatchNoneConstraint) {
-            return false;
-        }
-
-        $intersectionIntervals = self::get(new MultiConstraint(array($candidate, $constraint), true));
-        $candidateIntervals = self::get($candidate);
-        if (\count($intersectionIntervals['numeric']) !== \count($candidateIntervals['numeric'])) {
-            return false;
-        }
-
-        foreach ($intersectionIntervals['numeric'] as $index => $interval) {
-            if (!isset($candidateIntervals['numeric'][$index])) {
-                return false;
-            }
-
-            if ((string) $candidateIntervals['numeric'][$index]->getStart() !== (string) $interval->getStart()) {
-                return false;
-            }
-
-            if ((string) $candidateIntervals['numeric'][$index]->getEnd() !== (string) $interval->getEnd()) {
-                return false;
-            }
-        }
-
-        if ($intersectionIntervals['branches']['exclude'] !== $candidateIntervals['branches']['exclude']) {
-            return false;
-        }
-        if (\count($intersectionIntervals['branches']['names']) !== \count($candidateIntervals['branches']['names'])) {
-            return false;
-        }
-        foreach ($intersectionIntervals['branches']['names'] as $index => $name) {
-            if ($name !== $candidateIntervals['branches']['names'][$index]) {
-                return false;
-            }
-        }
-
-        return true;
-    }
-
-    /**
-     * Checks whether $a and $b have any intersection, equivalent to $a->matches($b)
-     *
-     * @return bool
-     */
-    public static function haveIntersections(ConstraintInterface $a, ConstraintInterface $b)
-    {
-        if ($a instanceof MatchAllConstraint || $b instanceof MatchAllConstraint) {
-            return true;
-        }
-
-        if ($a instanceof MatchNoneConstraint || $b instanceof MatchNoneConstraint) {
-            return false;
-        }
-
-        $intersectionIntervals = self::generateIntervals(new MultiConstraint(array($a, $b), true), true);
-
-        return \count($intersectionIntervals['numeric']) > 0 || $intersectionIntervals['branches']['exclude'] || \count($intersectionIntervals['branches']['names']) > 0;
-    }
-
-    /**
-     * Attempts to optimize a MultiConstraint
-     *
-     * When merging MultiConstraints together they can get very large, this will
-     * compact it by looking at the real intervals covered by all the constraints
-     * and then creates a new constraint containing only the smallest amount of rules
-     * to match the same intervals.
-     *
-     * @return ConstraintInterface
-     */
-    public static function compactConstraint(ConstraintInterface $constraint)
-    {
-        if (!$constraint instanceof MultiConstraint) {
-            return $constraint;
-        }
-
-        $intervals = self::generateIntervals($constraint);
-        $constraints = array();
-        $hasNumericMatchAll = false;
-
-        if (\count($intervals['numeric']) === 1 && (string) $intervals['numeric'][0]->getStart() === (string) Interval::fromZero() && (string) $intervals['numeric'][0]->getEnd() === (string) Interval::untilPositiveInfinity()) {
-            $constraints[] = $intervals['numeric'][0]->getStart();
-            $hasNumericMatchAll = true;
-        } else {
-            $unEqualConstraints = array();
-            for ($i = 0, $count = \count($intervals['numeric']); $i < $count; $i++) {
-                $interval = $intervals['numeric'][$i];
-
-                // if current interval ends with < N and next interval begins with > N we can swap this out for != N
-                // but this needs to happen as a conjunctive expression together with the start of the current interval
-                // and end of next interval, so [>=M, <N] || [>N, <P] => [>=M, !=N, <P] but M/P can be skipped if
-                // they are zero/+inf
-                if ($interval->getEnd()->getOperator() === '<' && $i+1 < $count) {
-                    $nextInterval = $intervals['numeric'][$i+1];
-                    if ($interval->getEnd()->getVersion() === $nextInterval->getStart()->getVersion() && $nextInterval->getStart()->getOperator() === '>') {
-                        // only add a start if we didn't already do so, can be skipped if we're looking at second
-                        // interval in [>=M, <N] || [>N, <P] || [>P, <Q] where unEqualConstraints currently contains
-                        // [>=M, !=N] already and we only want to add !=P right now
-                        if (\count($unEqualConstraints) === 0 && (string) $interval->getStart() !== (string) Interval::fromZero()) {
-                            $unEqualConstraints[] = $interval->getStart();
-                        }
-                        $unEqualConstraints[] = new Constraint('!=', $interval->getEnd()->getVersion());
-                        continue;
-                    }
-                }
-
-                if (\count($unEqualConstraints) > 0) {
-                    // this is where the end of the following interval of a != constraint is added as explained above
-                    if ((string) $interval->getEnd() !== (string) Interval::untilPositiveInfinity()) {
-                        $unEqualConstraints[] = $interval->getEnd();
-                    }
-
-                    // count is 1 if entire constraint is just one != expression
-                    if (\count($unEqualConstraints) > 1) {
-                        $constraints[] = new MultiConstraint($unEqualConstraints, true);
-                    } else {
-                        $constraints[] = $unEqualConstraints[0];
-                    }
-
-                    $unEqualConstraints = array();
-                    continue;
-                }
-
-                // convert back >= x - <= x intervals to == x
-                if ($interval->getStart()->getVersion() === $interval->getEnd()->getVersion() && $interval->getStart()->getOperator() === '>=' && $interval->getEnd()->getOperator() === '<=') {
-                    $constraints[] = new Constraint('==', $interval->getStart()->getVersion());
-                    continue;
-                }
-
-                if ((string) $interval->getStart() === (string) Interval::fromZero()) {
-                    $constraints[] = $interval->getEnd();
-                } elseif ((string) $interval->getEnd() === (string) Interval::untilPositiveInfinity()) {
-                    $constraints[] = $interval->getStart();
-                } else {
-                    $constraints[] = new MultiConstraint(array($interval->getStart(), $interval->getEnd()), true);
-                }
-            }
-        }
-
-        $devConstraints = array();
-
-        if (0 === \count($intervals['branches']['names'])) {
-            if ($intervals['branches']['exclude']) {
-                if ($hasNumericMatchAll) {
-                    return new MatchAllConstraint;
-                }
-                // otherwise constraint should contain a != operator and already cover this
-            }
-        } else {
-            foreach ($intervals['branches']['names'] as $branchName) {
-                if ($intervals['branches']['exclude']) {
-                    $devConstraints[] = new Constraint('!=', $branchName);
-                } else {
-                    $devConstraints[] = new Constraint('==', $branchName);
-                }
-            }
-
-            // excluded branches, e.g. != dev-foo are conjunctive with the interval, so
-            // > 2.0 != dev-foo must return a conjunctive constraint
-            if ($intervals['branches']['exclude']) {
-                if (\count($constraints) > 1) {
-                    return new MultiConstraint(array_merge(
-                        array(new MultiConstraint($constraints, false)),
-                        $devConstraints
-                    ), true);
-                }
-
-                if (\count($constraints) === 1 && (string)$constraints[0] === (string)Interval::fromZero()) {
-                    if (\count($devConstraints) > 1) {
-                        return new MultiConstraint($devConstraints, true);
-                    }
-                    return $devConstraints[0];
-                }
-
-                return new MultiConstraint(array_merge($constraints, $devConstraints), true);
-            }
-
-            // otherwise devConstraints contains a list of == operators for branches which are disjunctive with the
-            // rest of the constraint
-            $constraints = array_merge($constraints, $devConstraints);
-        }
-
-        if (\count($constraints) > 1) {
-            return new MultiConstraint($constraints, false);
-        }
-
-        if (\count($constraints) === 1) {
-            return $constraints[0];
-        }
-
-        return new MatchNoneConstraint;
-    }
-
-    /**
-     * Creates an array of numeric intervals and branch constraints representing a given constraint
-     *
-     * if the returned numeric array is empty it means the constraint matches nothing in the numeric range (0 - +inf)
-     * if the returned branches array is empty it means no dev-* versions are matched
-     * if a constraint matches all possible dev-* versions, branches will contain Interval::anyDev()
-     *
-     * @return array
-     * @phpstan-return array{'numeric': Interval[], 'branches': array{'names': string[], 'exclude': bool}}
-     */
-    public static function get(ConstraintInterface $constraint)
-    {
-        $key = (string) $constraint;
-
-        if (!isset(self::$intervalsCache[$key])) {
-            self::$intervalsCache[$key] = self::generateIntervals($constraint);
-        }
-
-        return self::$intervalsCache[$key];
-    }
-
-    /**
-     * @param bool $stopOnFirstValidInterval
-     *
-     * @phpstan-return array{'numeric': Interval[], 'branches': array{'names': string[], 'exclude': bool}}
-     */
-    private static function generateIntervals(ConstraintInterface $constraint, $stopOnFirstValidInterval = false)
-    {
-        if ($constraint instanceof MatchAllConstraint) {
-            return array('numeric' => array(new Interval(Interval::fromZero(), Interval::untilPositiveInfinity())), 'branches' => Interval::anyDev());
-        }
-
-        if ($constraint instanceof MatchNoneConstraint) {
-            return array('numeric' => array(), 'branches' => array('names' => array(), 'exclude' => false));
-        }
-
-        if ($constraint instanceof Constraint) {
-            return self::generateSingleConstraintIntervals($constraint);
-        }
-
-        if (!$constraint instanceof MultiConstraint) {
-            throw new \UnexpectedValueException('The constraint passed in should be an MatchAllConstraint, Constraint or MultiConstraint instance, got '.\get_class($constraint).'.');
-        }
-
-        $constraints = $constraint->getConstraints();
-
-        $numericGroups = array();
-        $constraintBranches = array();
-        foreach ($constraints as $c) {
-            $res = self::get($c);
-            $numericGroups[] = $res['numeric'];
-            $constraintBranches[] = $res['branches'];
-        }
-
-        if ($constraint->isDisjunctive()) {
-            $branches = Interval::noDev();
-            foreach ($constraintBranches as $b) {
-                if ($b['exclude']) {
-                    if ($branches['exclude']) {
-                        // disjunctive constraint, so only exclude what's excluded in all constraints
-                        // !=a,!=b || !=b,!=c => !=b
-                        $branches['names'] = array_intersect($branches['names'], $b['names']);
-                    } else {
-                        // disjunctive constraint so exclude all names which are not explicitly included in the alternative
-                        // (==b || ==c) || !=a,!=b => !=a
-                        $branches['exclude'] = true;
-                        $branches['names'] = array_diff($b['names'], $branches['names']);
-                    }
-                } else {
-                    if ($branches['exclude']) {
-                        // disjunctive constraint so exclude all names which are not explicitly included in the alternative
-                        // !=a,!=b || (==b || ==c) => !=a
-                        $branches['names'] = array_diff($branches['names'], $b['names']);
-                    } else {
-                        // disjunctive constraint, so just add all the other branches
-                        // (==a || ==b) || ==c => ==a || ==b || ==c
-                        $branches['names'] = array_merge($branches['names'], $b['names']);
-                    }
-                }
-            }
-        } else {
-            $branches = Interval::anyDev();
-            foreach ($constraintBranches as $b) {
-                if ($b['exclude']) {
-                    if ($branches['exclude']) {
-                        // conjunctive, so just add all branch names to be excluded
-                        // !=a && !=b => !=a,!=b
-                        $branches['names'] = array_merge($branches['names'], $b['names']);
-                    } else {
-                        // conjunctive, so only keep included names which are not excluded
-                        // (==a||==c) && !=a,!=b => ==c
-                        $branches['names'] = array_diff($branches['names'], $b['names']);
-                    }
-                } else {
-                    if ($branches['exclude']) {
-                        // conjunctive, so only keep included names which are not excluded
-                        // !=a,!=b && (==a||==c) => ==c
-                        $branches['names'] = array_diff($b['names'], $branches['names']);
-                        $branches['exclude'] = false;
-                    } else {
-                        // conjunctive, so only keep names that are included in both
-                        // (==a||==b) && (==a||==c) => ==a
-                        $branches['names'] = array_intersect($branches['names'], $b['names']);
-                    }
-                }
-            }
-        }
-
-        $branches['names'] = array_unique($branches['names']);
-
-        if (\count($numericGroups) === 1) {
-            return array('numeric' => $numericGroups[0], 'branches' => $branches);
-        }
-
-        $borders = array();
-        foreach ($numericGroups as $group) {
-            foreach ($group as $interval) {
-                $borders[] = array('version' => $interval->getStart()->getVersion(), 'operator' => $interval->getStart()->getOperator(), 'side' => 'start');
-                $borders[] = array('version' => $interval->getEnd()->getVersion(), 'operator' => $interval->getEnd()->getOperator(), 'side' => 'end');
-            }
-        }
-
-        $opSortOrder = self::$opSortOrder;
-        usort($borders, function ($a, $b) use ($opSortOrder) {
-            $order = version_compare($a['version'], $b['version']);
-            if ($order === 0) {
-                return $opSortOrder[$a['operator']] - $opSortOrder[$b['operator']];
-            }
-
-            return $order;
-        });
-
-        $activeIntervals = 0;
-        $intervals = array();
-        $index = 0;
-        $activationThreshold = $constraint->isConjunctive() ? \count($numericGroups) : 1;
-        $start = null;
-        foreach ($borders as $border) {
-            if ($border['side'] === 'start') {
-                $activeIntervals++;
-            } else {
-                $activeIntervals--;
-            }
-            if (!$start && $activeIntervals >= $activationThreshold) {
-                $start = new Constraint($border['operator'], $border['version']);
-            } elseif ($start && $activeIntervals < $activationThreshold) {
-                // filter out invalid intervals like > x - <= x, or >= x - < x
-                if (
-                    version_compare($start->getVersion(), $border['version'], '=')
-                    && (
-                        ($start->getOperator() === '>' && $border['operator'] === '<=')
-                        || ($start->getOperator() === '>=' && $border['operator'] === '<')
-                    )
-                ) {
-                    unset($intervals[$index]);
-                } else {
-                    $intervals[$index] = new Interval($start, new Constraint($border['operator'], $border['version']));
-                    $index++;
-
-                    if ($stopOnFirstValidInterval) {
-                        break;
-                    }
-                }
-
-                $start = null;
-            }
-        }
-
-        return array('numeric' => $intervals, 'branches' => $branches);
-    }
-
-    /**
-     * @phpstan-return array{'numeric': Interval[], 'branches': array{'names': string[], 'exclude': bool}}
-     */
-    private static function generateSingleConstraintIntervals(Constraint $constraint)
-    {
-        $op = $constraint->getOperator();
-
-        // handle branch constraints first
-        if (strpos($constraint->getVersion(), 'dev-') === 0) {
-            $intervals = array();
-            $branches = array('names' => array(), 'exclude' => false);
-
-            // != dev-foo means any numeric version may match, we treat >/< like != they are not really defined for branches
-            if ($op === '!=') {
-                $intervals[] = new Interval(Interval::fromZero(), Interval::untilPositiveInfinity());
-                $branches = array('names' => array($constraint->getVersion()), 'exclude' => true);
-            } elseif ($op === '==') {
-                $branches['names'][] = $constraint->getVersion();
-            }
-
-            return array(
-                'numeric' => $intervals,
-                'branches' => $branches,
-            );
-        }
-
-        if ($op[0] === '>') { // > & >=
-            return array('numeric' => array(new Interval($constraint, Interval::untilPositiveInfinity())), 'branches' => Interval::noDev());
-        }
-        if ($op[0] === '<') { // < & <=
-            return array('numeric' => array(new Interval(Interval::fromZero(), $constraint)), 'branches' => Interval::noDev());
-        }
-        if ($op === '!=') {
-            // convert !=x to intervals of 0 - <x && >x - +inf + dev*
-            return array('numeric' => array(
-                new Interval(Interval::fromZero(), new Constraint('<', $constraint->getVersion())),
-                new Interval(new Constraint('>', $constraint->getVersion()), Interval::untilPositiveInfinity()),
-            ), 'branches' => Interval::anyDev());
-        }
-
-        // convert ==x to an interval of >=x - <=x
-        return array('numeric' => array(
-            new Interval(new Constraint('>=', $constraint->getVersion()), new Constraint('<=', $constraint->getVersion())),
-        ), 'branches' => Interval::noDev());
-    }
-}

+ 0 - 129
vendor/composer/semver/src/Semver.php

@@ -1,129 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/semver.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Semver;
-
-use Composer\Semver\Constraint\Constraint;
-
-class Semver
-{
-    const SORT_ASC = 1;
-    const SORT_DESC = -1;
-
-    /** @var VersionParser */
-    private static $versionParser;
-
-    /**
-     * Determine if given version satisfies given constraints.
-     *
-     * @param string $version
-     * @param string $constraints
-     *
-     * @return bool
-     */
-    public static function satisfies($version, $constraints)
-    {
-        if (null === self::$versionParser) {
-            self::$versionParser = new VersionParser();
-        }
-
-        $versionParser = self::$versionParser;
-        $provider = new Constraint('==', $versionParser->normalize($version));
-        $parsedConstraints = $versionParser->parseConstraints($constraints);
-
-        return $parsedConstraints->matches($provider);
-    }
-
-    /**
-     * Return all versions that satisfy given constraints.
-     *
-     * @param string[] $versions
-     * @param string   $constraints
-     *
-     * @return string[]
-     */
-    public static function satisfiedBy(array $versions, $constraints)
-    {
-        $versions = array_filter($versions, function ($version) use ($constraints) {
-            return Semver::satisfies($version, $constraints);
-        });
-
-        return array_values($versions);
-    }
-
-    /**
-     * Sort given array of versions.
-     *
-     * @param string[] $versions
-     *
-     * @return string[]
-     */
-    public static function sort(array $versions)
-    {
-        return self::usort($versions, self::SORT_ASC);
-    }
-
-    /**
-     * Sort given array of versions in reverse.
-     *
-     * @param string[] $versions
-     *
-     * @return string[]
-     */
-    public static function rsort(array $versions)
-    {
-        return self::usort($versions, self::SORT_DESC);
-    }
-
-    /**
-     * @param string[] $versions
-     * @param int      $direction
-     *
-     * @return string[]
-     */
-    private static function usort(array $versions, $direction)
-    {
-        if (null === self::$versionParser) {
-            self::$versionParser = new VersionParser();
-        }
-
-        $versionParser = self::$versionParser;
-        $normalized = array();
-
-        // Normalize outside of usort() scope for minor performance increase.
-        // Creates an array of arrays: [[normalized, key], ...]
-        foreach ($versions as $key => $version) {
-            $normalizedVersion = $versionParser->normalize($version);
-            $normalizedVersion = $versionParser->normalizeDefaultBranch($normalizedVersion);
-            $normalized[] = array($normalizedVersion, $key);
-        }
-
-        usort($normalized, function (array $left, array $right) use ($direction) {
-            if ($left[0] === $right[0]) {
-                return 0;
-            }
-
-            if (Comparator::lessThan($left[0], $right[0])) {
-                return -$direction;
-            }
-
-            return $direction;
-        });
-
-        // Recreate input array, using the original indexes which are now in sorted order.
-        $sorted = array();
-        foreach ($normalized as $item) {
-            $sorted[] = $versions[$item[1]];
-        }
-
-        return $sorted;
-    }
-}

+ 0 - 586
vendor/composer/semver/src/VersionParser.php

@@ -1,586 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/semver.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\Semver;
-
-use Composer\Semver\Constraint\ConstraintInterface;
-use Composer\Semver\Constraint\MatchAllConstraint;
-use Composer\Semver\Constraint\MultiConstraint;
-use Composer\Semver\Constraint\Constraint;
-
-/**
- * Version parser.
- *
- * @author Jordi Boggiano <j.boggiano@seld.be>
- */
-class VersionParser
-{
-    /**
-     * Regex to match pre-release data (sort of).
-     *
-     * Due to backwards compatibility:
-     *   - Instead of enforcing hyphen, an underscore, dot or nothing at all are also accepted.
-     *   - Only stabilities as recognized by Composer are allowed to precede a numerical identifier.
-     *   - Numerical-only pre-release identifiers are not supported, see tests.
-     *
-     *                        |--------------|
-     * [major].[minor].[patch] -[pre-release] +[build-metadata]
-     *
-     * @var string
-     */
-    private static $modifierRegex = '[._-]?(?:(stable|beta|b|RC|alpha|a|patch|pl|p)((?:[.-]?\d+)*+)?)?([.-]?dev)?';
-
-    /** @var string */
-    private static $stabilitiesRegex = 'stable|RC|beta|alpha|dev';
-
-    /**
-     * Returns the stability of a version.
-     *
-     * @param string $version
-     *
-     * @return string
-     * @phpstan-return 'stable'|'RC'|'beta'|'alpha'|'dev'
-     */
-    public static function parseStability($version)
-    {
-        $version = (string) preg_replace('{#.+$}', '', (string) $version);
-
-        if (strpos($version, 'dev-') === 0 || '-dev' === substr($version, -4)) {
-            return 'dev';
-        }
-
-        preg_match('{' . self::$modifierRegex . '(?:\+.*)?$}i', strtolower($version), $match);
-
-        if (!empty($match[3])) {
-            return 'dev';
-        }
-
-        if (!empty($match[1])) {
-            if ('beta' === $match[1] || 'b' === $match[1]) {
-                return 'beta';
-            }
-            if ('alpha' === $match[1] || 'a' === $match[1]) {
-                return 'alpha';
-            }
-            if ('rc' === $match[1]) {
-                return 'RC';
-            }
-        }
-
-        return 'stable';
-    }
-
-    /**
-     * @param string $stability
-     *
-     * @return string
-     */
-    public static function normalizeStability($stability)
-    {
-        $stability = strtolower((string) $stability);
-
-        return $stability === 'rc' ? 'RC' : $stability;
-    }
-
-    /**
-     * Normalizes a version string to be able to perform comparisons on it.
-     *
-     * @param string $version
-     * @param ?string $fullVersion optional complete version string to give more context
-     *
-     * @throws \UnexpectedValueException
-     *
-     * @return string
-     */
-    public function normalize($version, $fullVersion = null)
-    {
-        $version = trim((string) $version);
-        $origVersion = $version;
-        if (null === $fullVersion) {
-            $fullVersion = $version;
-        }
-
-        // strip off aliasing
-        if (preg_match('{^([^,\s]++) ++as ++([^,\s]++)$}', $version, $match)) {
-            $version = $match[1];
-        }
-
-        // strip off stability flag
-        if (preg_match('{@(?:' . self::$stabilitiesRegex . ')$}i', $version, $match)) {
-            $version = substr($version, 0, strlen($version) - strlen($match[0]));
-        }
-
-        // normalize master/trunk/default branches to dev-name for BC with 1.x as these used to be valid constraints
-        if (\in_array($version, array('master', 'trunk', 'default'), true)) {
-            $version = 'dev-' . $version;
-        }
-
-        // if requirement is branch-like, use full name
-        if (stripos($version, 'dev-') === 0) {
-            return 'dev-' . substr($version, 4);
-        }
-
-        // strip off build metadata
-        if (preg_match('{^([^,\s+]++)\+[^\s]++$}', $version, $match)) {
-            $version = $match[1];
-        }
-
-        // match classical versioning
-        if (preg_match('{^v?(\d{1,5}+)(\.\d++)?(\.\d++)?(\.\d++)?' . self::$modifierRegex . '$}i', $version, $matches)) {
-            $version = $matches[1]
-                . (!empty($matches[2]) ? $matches[2] : '.0')
-                . (!empty($matches[3]) ? $matches[3] : '.0')
-                . (!empty($matches[4]) ? $matches[4] : '.0');
-            $index = 5;
-        // match date(time) based versioning
-        } elseif (preg_match('{^v?(\d{4}(?:[.:-]?\d{2}){1,6}(?:[.:-]?\d{1,3}){0,2})' . self::$modifierRegex . '$}i', $version, $matches)) {
-            $version = (string) preg_replace('{\D}', '.', $matches[1]);
-            $index = 2;
-        }
-
-        // add version modifiers if a version was matched
-        if (isset($index)) {
-            if (!empty($matches[$index])) {
-                if ('stable' === $matches[$index]) {
-                    return $version;
-                }
-                $version .= '-' . $this->expandStability($matches[$index]) . (isset($matches[$index + 1]) && '' !== $matches[$index + 1] ? ltrim($matches[$index + 1], '.-') : '');
-            }
-
-            if (!empty($matches[$index + 2])) {
-                $version .= '-dev';
-            }
-
-            return $version;
-        }
-
-        // match dev branches
-        if (preg_match('{(.*?)[.-]?dev$}i', $version, $match)) {
-            try {
-                $normalized = $this->normalizeBranch($match[1]);
-                // a branch ending with -dev is only valid if it is numeric
-                // if it gets prefixed with dev- it means the branch name should
-                // have had a dev- prefix already when passed to normalize
-                if (strpos($normalized, 'dev-') === false) {
-                    return $normalized;
-                }
-            } catch (\Exception $e) {
-            }
-        }
-
-        $extraMessage = '';
-        if (preg_match('{ +as +' . preg_quote($version) . '(?:@(?:'.self::$stabilitiesRegex.'))?$}', $fullVersion)) {
-            $extraMessage = ' in "' . $fullVersion . '", the alias must be an exact version';
-        } elseif (preg_match('{^' . preg_quote($version) . '(?:@(?:'.self::$stabilitiesRegex.'))? +as +}', $fullVersion)) {
-            $extraMessage = ' in "' . $fullVersion . '", the alias source must be an exact version, if it is a branch name you should prefix it with dev-';
-        }
-
-        throw new \UnexpectedValueException('Invalid version string "' . $origVersion . '"' . $extraMessage);
-    }
-
-    /**
-     * Extract numeric prefix from alias, if it is in numeric format, suitable for version comparison.
-     *
-     * @param string $branch Branch name (e.g. 2.1.x-dev)
-     *
-     * @return string|false Numeric prefix if present (e.g. 2.1.) or false
-     */
-    public function parseNumericAliasPrefix($branch)
-    {
-        if (preg_match('{^(?P<version>(\d++\\.)*\d++)(?:\.x)?-dev$}i', (string) $branch, $matches)) {
-            return $matches['version'] . '.';
-        }
-
-        return false;
-    }
-
-    /**
-     * Normalizes a branch name to be able to perform comparisons on it.
-     *
-     * @param string $name
-     *
-     * @return string
-     */
-    public function normalizeBranch($name)
-    {
-        $name = trim((string) $name);
-
-        if (preg_match('{^v?(\d++)(\.(?:\d++|[xX*]))?(\.(?:\d++|[xX*]))?(\.(?:\d++|[xX*]))?$}i', $name, $matches)) {
-            $version = '';
-            for ($i = 1; $i < 5; ++$i) {
-                $version .= isset($matches[$i]) ? str_replace(array('*', 'X'), 'x', $matches[$i]) : '.x';
-            }
-
-            return str_replace('x', '9999999', $version) . '-dev';
-        }
-
-        return 'dev-' . $name;
-    }
-
-    /**
-     * Normalizes a default branch name (i.e. master on git) to 9999999-dev.
-     *
-     * @param string $name
-     *
-     * @return string
-     *
-     * @deprecated No need to use this anymore in theory, Composer 2 does not normalize any branch names to 9999999-dev anymore
-     */
-    public function normalizeDefaultBranch($name)
-    {
-        if ($name === 'dev-master' || $name === 'dev-default' || $name === 'dev-trunk') {
-            return '9999999-dev';
-        }
-
-        return (string) $name;
-    }
-
-    /**
-     * Parses a constraint string into MultiConstraint and/or Constraint objects.
-     *
-     * @param string $constraints
-     *
-     * @return ConstraintInterface
-     */
-    public function parseConstraints($constraints)
-    {
-        $prettyConstraint = (string) $constraints;
-
-        $orConstraints = preg_split('{\s*\|\|?\s*}', trim((string) $constraints));
-        if (false === $orConstraints) {
-            throw new \RuntimeException('Failed to preg_split string: '.$constraints);
-        }
-        $orGroups = array();
-
-        foreach ($orConstraints as $orConstraint) {
-            $andConstraints = preg_split('{(?<!^|as|[=>< ,]) *(?<!-)[, ](?!-) *(?!,|as|$)}', $orConstraint);
-            if (false === $andConstraints) {
-                throw new \RuntimeException('Failed to preg_split string: '.$orConstraint);
-            }
-            if (\count($andConstraints) > 1) {
-                $constraintObjects = array();
-                foreach ($andConstraints as $andConstraint) {
-                    foreach ($this->parseConstraint($andConstraint) as $parsedAndConstraint) {
-                        $constraintObjects[] = $parsedAndConstraint;
-                    }
-                }
-            } else {
-                $constraintObjects = $this->parseConstraint($andConstraints[0]);
-            }
-
-            if (1 === \count($constraintObjects)) {
-                $constraint = $constraintObjects[0];
-            } else {
-                $constraint = new MultiConstraint($constraintObjects);
-            }
-
-            $orGroups[] = $constraint;
-        }
-
-        $parsedConstraint = MultiConstraint::create($orGroups, false);
-
-        $parsedConstraint->setPrettyString($prettyConstraint);
-
-        return $parsedConstraint;
-    }
-
-    /**
-     * @param string $constraint
-     *
-     * @throws \UnexpectedValueException
-     *
-     * @return array
-     *
-     * @phpstan-return non-empty-array<ConstraintInterface>
-     */
-    private function parseConstraint($constraint)
-    {
-        // strip off aliasing
-        if (preg_match('{^([^,\s]++) ++as ++([^,\s]++)$}', $constraint, $match)) {
-            $constraint = $match[1];
-        }
-
-        // strip @stability flags, and keep it for later use
-        if (preg_match('{^([^,\s]*?)@(' . self::$stabilitiesRegex . ')$}i', $constraint, $match)) {
-            $constraint = '' !== $match[1] ? $match[1] : '*';
-            if ($match[2] !== 'stable') {
-                $stabilityModifier = $match[2];
-            }
-        }
-
-        // get rid of #refs as those are used by composer only
-        if (preg_match('{^(dev-[^,\s@]+?|[^,\s@]+?\.x-dev)#.+$}i', $constraint, $match)) {
-            $constraint = $match[1];
-        }
-
-        if (preg_match('{^(v)?[xX*](\.[xX*])*$}i', $constraint, $match)) {
-            if (!empty($match[1]) || !empty($match[2])) {
-                return array(new Constraint('>=', '0.0.0.0-dev'));
-            }
-
-            return array(new MatchAllConstraint());
-        }
-
-        $versionRegex = 'v?(\d++)(?:\.(\d++))?(?:\.(\d++))?(?:\.(\d++))?(?:' . self::$modifierRegex . '|\.([xX*][.-]?dev))(?:\+[^\s]+)?';
-
-        // Tilde Range
-        //
-        // Like wildcard constraints, unsuffixed tilde constraints say that they must be greater than the previous
-        // version, to ensure that unstable instances of the current version are allowed. However, if a stability
-        // suffix is added to the constraint, then a >= match on the current version is used instead.
-        if (preg_match('{^~>?' . $versionRegex . '$}i', $constraint, $matches)) {
-            if (strpos($constraint, '~>') === 0) {
-                throw new \UnexpectedValueException(
-                    'Could not parse version constraint ' . $constraint . ': ' .
-                    'Invalid operator "~>", you probably meant to use the "~" operator'
-                );
-            }
-
-            // Work out which position in the version we are operating at
-            if (isset($matches[4]) && '' !== $matches[4] && null !== $matches[4]) {
-                $position = 4;
-            } elseif (isset($matches[3]) && '' !== $matches[3] && null !== $matches[3]) {
-                $position = 3;
-            } elseif (isset($matches[2]) && '' !== $matches[2] && null !== $matches[2]) {
-                $position = 2;
-            } else {
-                $position = 1;
-            }
-
-            // when matching 2.x-dev or 3.0.x-dev we have to shift the second or third number, despite no second/third number matching above
-            if (!empty($matches[8])) {
-                $position++;
-            }
-
-            // Calculate the stability suffix
-            $stabilitySuffix = '';
-            if (empty($matches[5]) && empty($matches[7]) && empty($matches[8])) {
-                $stabilitySuffix .= '-dev';
-            }
-
-            $lowVersion = $this->normalize(substr($constraint . $stabilitySuffix, 1));
-            $lowerBound = new Constraint('>=', $lowVersion);
-
-            // For upper bound, we increment the position of one more significance,
-            // but highPosition = 0 would be illegal
-            $highPosition = max(1, $position - 1);
-            $highVersion = $this->manipulateVersionString($matches, $highPosition, 1) . '-dev';
-            $upperBound = new Constraint('<', $highVersion);
-
-            return array(
-                $lowerBound,
-                $upperBound,
-            );
-        }
-
-        // Caret Range
-        //
-        // Allows changes that do not modify the left-most non-zero digit in the [major, minor, patch] tuple.
-        // In other words, this allows patch and minor updates for versions 1.0.0 and above, patch updates for
-        // versions 0.X >=0.1.0, and no updates for versions 0.0.X
-        if (preg_match('{^\^' . $versionRegex . '($)}i', $constraint, $matches)) {
-            // Work out which position in the version we are operating at
-            if ('0' !== $matches[1] || '' === $matches[2] || null === $matches[2]) {
-                $position = 1;
-            } elseif ('0' !== $matches[2] || '' === $matches[3] || null === $matches[3]) {
-                $position = 2;
-            } else {
-                $position = 3;
-            }
-
-            // Calculate the stability suffix
-            $stabilitySuffix = '';
-            if (empty($matches[5]) && empty($matches[7]) && empty($matches[8])) {
-                $stabilitySuffix .= '-dev';
-            }
-
-            $lowVersion = $this->normalize(substr($constraint . $stabilitySuffix, 1));
-            $lowerBound = new Constraint('>=', $lowVersion);
-
-            // For upper bound, we increment the position of one more significance,
-            // but highPosition = 0 would be illegal
-            $highVersion = $this->manipulateVersionString($matches, $position, 1) . '-dev';
-            $upperBound = new Constraint('<', $highVersion);
-
-            return array(
-                $lowerBound,
-                $upperBound,
-            );
-        }
-
-        // X Range
-        //
-        // Any of X, x, or * may be used to "stand in" for one of the numeric values in the [major, minor, patch] tuple.
-        // A partial version range is treated as an X-Range, so the special character is in fact optional.
-        if (preg_match('{^v?(\d++)(?:\.(\d++))?(?:\.(\d++))?(?:\.[xX*])++$}', $constraint, $matches)) {
-            if (isset($matches[3]) && '' !== $matches[3] && null !== $matches[3]) {
-                $position = 3;
-            } elseif (isset($matches[2]) && '' !== $matches[2] && null !== $matches[2]) {
-                $position = 2;
-            } else {
-                $position = 1;
-            }
-
-            $lowVersion = $this->manipulateVersionString($matches, $position) . '-dev';
-            $highVersion = $this->manipulateVersionString($matches, $position, 1) . '-dev';
-
-            if ($lowVersion === '0.0.0.0-dev') {
-                return array(new Constraint('<', $highVersion));
-            }
-
-            return array(
-                new Constraint('>=', $lowVersion),
-                new Constraint('<', $highVersion),
-            );
-        }
-
-        // Hyphen Range
-        //
-        // Specifies an inclusive set. If a partial version is provided as the first version in the inclusive range,
-        // then the missing pieces are replaced with zeroes. If a partial version is provided as the second version in
-        // the inclusive range, then all versions that start with the supplied parts of the tuple are accepted, but
-        // nothing that would be greater than the provided tuple parts.
-        if (preg_match('{^(?P<from>' . $versionRegex . ') +- +(?P<to>' . $versionRegex . ')($)}i', $constraint, $matches)) {
-            // Calculate the stability suffix
-            $lowStabilitySuffix = '';
-            if (empty($matches[6]) && empty($matches[8]) && empty($matches[9])) {
-                $lowStabilitySuffix = '-dev';
-            }
-
-            $lowVersion = $this->normalize($matches['from']);
-            $lowerBound = new Constraint('>=', $lowVersion . $lowStabilitySuffix);
-
-            $empty = function ($x) {
-                return ($x === 0 || $x === '0') ? false : empty($x);
-            };
-
-            if ((!$empty($matches[12]) && !$empty($matches[13])) || !empty($matches[15]) || !empty($matches[17]) || !empty($matches[18])) {
-                $highVersion = $this->normalize($matches['to']);
-                $upperBound = new Constraint('<=', $highVersion);
-            } else {
-                $highMatch = array('', $matches[11], $matches[12], $matches[13], $matches[14]);
-
-                // validate to version
-                $this->normalize($matches['to']);
-
-                $highVersion = $this->manipulateVersionString($highMatch, $empty($matches[12]) ? 1 : 2, 1) . '-dev';
-                $upperBound = new Constraint('<', $highVersion);
-            }
-
-            return array(
-                $lowerBound,
-                $upperBound,
-            );
-        }
-
-        // Basic Comparators
-        if (preg_match('{^(<>|!=|>=?|<=?|==?)?\s*(.*)}', $constraint, $matches)) {
-            try {
-                try {
-                    $version = $this->normalize($matches[2]);
-                } catch (\UnexpectedValueException $e) {
-                    // recover from an invalid constraint like foobar-dev which should be dev-foobar
-                    // except if the constraint uses a known operator, in which case it must be a parse error
-                    if (substr($matches[2], -4) === '-dev' && preg_match('{^[0-9a-zA-Z-./]+$}', $matches[2])) {
-                        $version = $this->normalize('dev-'.substr($matches[2], 0, -4));
-                    } else {
-                        throw $e;
-                    }
-                }
-
-                $op = $matches[1] ?: '=';
-
-                if ($op !== '==' && $op !== '=' && !empty($stabilityModifier) && self::parseStability($version) === 'stable') {
-                    $version .= '-' . $stabilityModifier;
-                } elseif ('<' === $op || '>=' === $op) {
-                    if (!preg_match('/-' . self::$modifierRegex . '$/', strtolower($matches[2]))) {
-                        if (strpos($matches[2], 'dev-') !== 0) {
-                            $version .= '-dev';
-                        }
-                    }
-                }
-
-                return array(new Constraint($matches[1] ?: '=', $version));
-            } catch (\Exception $e) {
-            }
-        }
-
-        $message = 'Could not parse version constraint ' . $constraint;
-        if (isset($e)) {
-            $message .= ': ' . $e->getMessage();
-        }
-
-        throw new \UnexpectedValueException($message);
-    }
-
-    /**
-     * Increment, decrement, or simply pad a version number.
-     *
-     * Support function for {@link parseConstraint()}
-     *
-     * @param array  $matches   Array with version parts in array indexes 1,2,3,4
-     * @param int    $position  1,2,3,4 - which segment of the version to increment/decrement
-     * @param int    $increment
-     * @param string $pad       The string to pad version parts after $position
-     *
-     * @return string|null The new version
-     *
-     * @phpstan-param string[] $matches
-     */
-    private function manipulateVersionString(array $matches, $position, $increment = 0, $pad = '0')
-    {
-        for ($i = 4; $i > 0; --$i) {
-            if ($i > $position) {
-                $matches[$i] = $pad;
-            } elseif ($i === $position && $increment) {
-                $matches[$i] += $increment;
-                // If $matches[$i] was 0, carry the decrement
-                if ($matches[$i] < 0) {
-                    $matches[$i] = $pad;
-                    --$position;
-
-                    // Return null on a carry overflow
-                    if ($i === 1) {
-                        return null;
-                    }
-                }
-            }
-        }
-
-        return $matches[1] . '.' . $matches[2] . '.' . $matches[3] . '.' . $matches[4];
-    }
-
-    /**
-     * Expand shorthand stability string to long version.
-     *
-     * @param string $stability
-     *
-     * @return string
-     */
-    private function expandStability($stability)
-    {
-        $stability = strtolower($stability);
-
-        switch ($stability) {
-            case 'a':
-                return 'alpha';
-            case 'b':
-                return 'beta';
-            case 'p':
-            case 'pl':
-                return 'patch';
-            case 'rc':
-                return 'RC';
-            default:
-                return $stability;
-        }
-    }
-}

+ 0 - 143
vendor/composer/xdebug-handler/CHANGELOG.md

@@ -1,143 +0,0 @@
-## [Unreleased]
-
-## [3.0.5] - 2024-05-06
-  * Fixed: fail restart if PHP_BINARY is not available
-
-## [3.0.4] - 2024-03-26
-  * Added: Functional tests.
-  * Fixed: Incompatibility with PHPUnit 10.
-
-## [3.0.3] - 2022-02-25
-  * Added: support for composer/pcre versions 2 and 3.
-
-## [3.0.2] - 2022-02-24
-  * Fixed: regression in 3.0.1 affecting Xdebug 2
-
-## [3.0.1] - 2022-01-04
-  * Fixed: error when calling `isXdebugActive` before class instantiation.
-
-## [3.0.0] - 2021-12-23
-  * Removed: support for legacy PHP versions (< PHP 7.2.5).
-  * Added: type declarations to arguments and return values.
-  * Added: strict typing to all classes.
-
-## [2.0.3] - 2021-12-08
-  * Added: support, type annotations and refactoring for stricter PHPStan analysis.
-
-## [2.0.2] - 2021-07-31
-  * Added: support for `xdebug_info('mode')` in Xdebug 3.1.
-  * Added: support for Psr\Log versions 2 and 3.
-  * Fixed: remove ini directives from non-cli HOST/PATH sections.
-
-## [2.0.1] - 2021-05-05
-  * Fixed: don't restart if the cwd is a UNC path and cmd.exe will be invoked.
-
-## [2.0.0] - 2021-04-09
-  * Break: this is a major release, see [UPGRADE.md](UPGRADE.md) for more information.
-  * Break: removed optional `$colorOption` constructor param and passthru fallback.
-  * Break: renamed `requiresRestart` param from `$isLoaded` to `$default`.
-  * Break: changed `restart` param `$command` from a string to an array.
-  * Added: support for Xdebug3 to only restart if Xdebug is not running with `xdebug.mode=off`.
-  * Added: `isXdebugActive()` method to determine if Xdebug is still running in the restart.
-  * Added: feature to bypass the shell in PHP-7.4+ by giving `proc_open` an array of arguments.
-  * Added: Process utility class to the API.
-
-## [1.4.6] - 2021-03-25
-  * Fixed: fail restart if `proc_open` has been disabled in `disable_functions`.
-  * Fixed: enable Windows CTRL event handling in the restarted process.
-
-## [1.4.5] - 2020-11-13
-  * Fixed: use `proc_open` when available for correct FD forwarding to the restarted process.
-
-## [1.4.4] - 2020-10-24
-  * Fixed: exception if 'pcntl_signal' is disabled.
-
-## [1.4.3] - 2020-08-19
-  * Fixed: restore SIGINT to default handler in restarted process if no other handler exists.
-
-## [1.4.2] - 2020-06-04
-  * Fixed: ignore SIGINTs to let the restarted process handle them.
-
-## [1.4.1] - 2020-03-01
-  * Fixed: restart fails if an ini file is empty.
-
-## [1.4.0] - 2019-11-06
-  * Added: support for `NO_COLOR` environment variable: https://no-color.org
-  * Added: color support for Hyper terminal: https://github.com/zeit/hyper
-  * Fixed: correct capitalization of Xdebug (apparently).
-  * Fixed: improved handling for uopz extension.
-
-## [1.3.3] - 2019-05-27
-  * Fixed: add environment changes to `$_ENV` if it is being used.
-
-## [1.3.2] - 2019-01-28
-  * Fixed: exit call being blocked by uopz extension, resulting in application code running twice.
-
-## [1.3.1] - 2018-11-29
-  * Fixed: fail restart if `passthru` has been disabled in `disable_functions`.
-  * Fixed: fail restart if an ini file cannot be opened, otherwise settings will be missing.
-
-## [1.3.0] - 2018-08-31
-  * Added: `setPersistent` method to use environment variables for the restart.
-  * Fixed: improved debugging by writing output to stderr.
-  * Fixed: no restart when `php_ini_scanned_files` is not functional and is needed.
-
-## [1.2.1] - 2018-08-23
-  * Fixed: fatal error with apc, when using `apc.mmap_file_mask`.
-
-## [1.2.0] - 2018-08-16
-  * Added: debug information using `XDEBUG_HANDLER_DEBUG`.
-  * Added: fluent interface for setters.
-  * Added: `PhpConfig` helper class for calling PHP sub-processes.
-  * Added: `PHPRC` original value to restart stettings, for use in a restarted process.
-  * Changed: internal procedure to disable ini-scanning, using `-n` command-line option.
-  * Fixed: replaced `escapeshellarg` usage to avoid locale problems.
-  * Fixed: improved color-option handling to respect double-dash delimiter.
-  * Fixed: color-option handling regression from main script changes.
-  * Fixed: improved handling when checking main script.
-  * Fixed: handling for standard input, that never actually did anything.
-  * Fixed: fatal error when ctype extension is not available.
-
-## [1.1.0] - 2018-04-11
-  * Added: `getRestartSettings` method for calling PHP processes in a restarted process.
-  * Added: API definition and @internal class annotations.
-  * Added: protected `requiresRestart` method for extending classes.
-  * Added: `setMainScript` method for applications that change the working directory.
-  * Changed: private `tmpIni` variable to protected for extending classes.
-  * Fixed: environment variables not available in $_SERVER when restored in the restart.
-  * Fixed: relative path problems caused by Phar::interceptFileFuncs.
-  * Fixed: incorrect handling when script file cannot be found.
-
-## [1.0.0] - 2018-03-08
-  * Added: PSR3 logging for optional status output.
-  * Added: existing ini settings are merged to catch command-line overrides.
-  * Added: code, tests and other artefacts to decouple from Composer.
-  * Break: the following class was renamed:
-    - `Composer\XdebugHandler` -> `Composer\XdebugHandler\XdebugHandler`
-
-[Unreleased]: https://github.com/composer/xdebug-handler/compare/3.0.5...HEAD
-[3.0.5]: https://github.com/composer/xdebug-handler/compare/3.0.4...3.0.5
-[3.0.4]: https://github.com/composer/xdebug-handler/compare/3.0.3...3.0.4
-[3.0.3]: https://github.com/composer/xdebug-handler/compare/3.0.2...3.0.3
-[3.0.2]: https://github.com/composer/xdebug-handler/compare/3.0.1...3.0.2
-[3.0.1]: https://github.com/composer/xdebug-handler/compare/3.0.0...3.0.1
-[3.0.0]: https://github.com/composer/xdebug-handler/compare/2.0.3...3.0.0
-[2.0.3]: https://github.com/composer/xdebug-handler/compare/2.0.2...2.0.3
-[2.0.2]: https://github.com/composer/xdebug-handler/compare/2.0.1...2.0.2
-[2.0.1]: https://github.com/composer/xdebug-handler/compare/2.0.0...2.0.1
-[2.0.0]: https://github.com/composer/xdebug-handler/compare/1.4.6...2.0.0
-[1.4.6]: https://github.com/composer/xdebug-handler/compare/1.4.5...1.4.6
-[1.4.5]: https://github.com/composer/xdebug-handler/compare/1.4.4...1.4.5
-[1.4.4]: https://github.com/composer/xdebug-handler/compare/1.4.3...1.4.4
-[1.4.3]: https://github.com/composer/xdebug-handler/compare/1.4.2...1.4.3
-[1.4.2]: https://github.com/composer/xdebug-handler/compare/1.4.1...1.4.2
-[1.4.1]: https://github.com/composer/xdebug-handler/compare/1.4.0...1.4.1
-[1.4.0]: https://github.com/composer/xdebug-handler/compare/1.3.3...1.4.0
-[1.3.3]: https://github.com/composer/xdebug-handler/compare/1.3.2...1.3.3
-[1.3.2]: https://github.com/composer/xdebug-handler/compare/1.3.1...1.3.2
-[1.3.1]: https://github.com/composer/xdebug-handler/compare/1.3.0...1.3.1
-[1.3.0]: https://github.com/composer/xdebug-handler/compare/1.2.1...1.3.0
-[1.2.1]: https://github.com/composer/xdebug-handler/compare/1.2.0...1.2.1
-[1.2.0]: https://github.com/composer/xdebug-handler/compare/1.1.0...1.2.0
-[1.1.0]: https://github.com/composer/xdebug-handler/compare/1.0.0...1.1.0
-[1.0.0]: https://github.com/composer/xdebug-handler/compare/d66f0d15cb57...1.0.0

+ 0 - 21
vendor/composer/xdebug-handler/LICENSE

@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2017 Composer
-
-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.

+ 0 - 305
vendor/composer/xdebug-handler/README.md

@@ -1,305 +0,0 @@
-# composer/xdebug-handler
-
-[![packagist](https://img.shields.io/packagist/v/composer/xdebug-handler)](https://packagist.org/packages/composer/xdebug-handler)
-[![Continuous Integration](https://github.com/composer/xdebug-handler/actions/workflows/continuous-integration.yml/badge.svg?branch=main)](https://github.com/composer/xdebug-handler/actions?query=branch:main)
-![license](https://img.shields.io/github/license/composer/xdebug-handler.svg)
-![php](https://img.shields.io/packagist/php-v/composer/xdebug-handler?colorB=8892BF)
-
-Restart a CLI process without loading the Xdebug extension, unless `xdebug.mode=off`.
-
-Originally written as part of [composer/composer](https://github.com/composer/composer),
-now extracted and made available as a stand-alone library.
-
-### Version 3
-
-Removed support for legacy PHP versions and added type declarations.
-
-Long term support for version 2 (PHP 5.3.2 - 7.2.4) follows [Composer 2.2 LTS](https://blog.packagist.com/composer-2-2/) policy.
-
-## Installation
-
-Install the latest version with:
-
-```bash
-$ composer require composer/xdebug-handler
-```
-
-## Requirements
-
-* PHP 7.2.5 minimum, although using the latest PHP version is highly recommended.
-
-## Basic Usage
-```php
-use Composer\XdebugHandler\XdebugHandler;
-
-$xdebug = new XdebugHandler('myapp');
-$xdebug->check();
-unset($xdebug);
-```
-
-The constructor takes a single parameter, `$envPrefix`, which is upper-cased and prepended to default base values to create two distinct environment variables. The above example enables the use of:
-
-- `MYAPP_ALLOW_XDEBUG=1` to override automatic restart and allow Xdebug
-- `MYAPP_ORIGINAL_INIS` to obtain ini file locations in a restarted process
-
-## Advanced Usage
-
-* [How it works](#how-it-works)
-* [Limitations](#limitations)
-* [Helper methods](#helper-methods)
-* [Setter methods](#setter-methods)
-* [Process configuration](#process-configuration)
-* [Troubleshooting](#troubleshooting)
-* [Extending the library](#extending-the-library)
-* [Examples](#examples)
-
-### How it works
-
-A temporary ini file is created from the loaded (and scanned) ini files, with any references to the Xdebug extension commented out. Current ini settings are merged, so that most ini settings made on the command-line or by the application are included (see [Limitations](#limitations))
-
-* `MYAPP_ALLOW_XDEBUG` is set with internal data to flag and use in the restart.
-* The command-line and environment are [configured](#process-configuration) for the restart.
-* The application is restarted in a new process.
-    * The restart settings are stored in the environment.
-    * `MYAPP_ALLOW_XDEBUG` is unset.
-    * The application runs and exits.
-* The main process exits with the exit code from the restarted process.
-
-See [Examples](#examples) for further information.
-
-#### Signal handling
-Asynchronous signal handling is automatically enabled if the pcntl extension is loaded. `SIGINT` is set to `SIG_IGN` in the parent
-process and restored to `SIG_DFL` in the restarted process (if no other handler has been set).
-
-From PHP 7.4 on Windows, `CTRL+C` and `CTRL+BREAK` handling is automatically enabled in the restarted process and ignored in the parent process.
-
-### Limitations
-There are a few things to be aware of when running inside a restarted process.
-
-* Extensions set on the command-line will not be loaded.
-* Ini file locations will be reported as per the restart - see [getAllIniFiles()](#getallinifiles-array).
-* Php sub-processes may be loaded with Xdebug enabled - see [Process configuration](#process-configuration).
-
-### Helper methods
-These static methods provide information from the current process, regardless of whether it has been restarted or not.
-
-#### _getAllIniFiles(): array_
-Returns an array of the original ini file locations. Use this instead of calling `php_ini_loaded_file` and `php_ini_scanned_files`, which will report the wrong values in a restarted process.
-
-```php
-use Composer\XdebugHandler\XdebugHandler;
-
-$files = XdebugHandler::getAllIniFiles();
-
-# $files[0] always exists, it could be an empty string
-$loadedIni = array_shift($files);
-$scannedInis = $files;
-```
-
-These locations are also available in the `MYAPP_ORIGINAL_INIS` environment variable. This is a path-separated string comprising the location returned from `php_ini_loaded_file`, which could be empty, followed by locations parsed from calling `php_ini_scanned_files`.
-
-#### _getRestartSettings(): ?array_
-Returns an array of settings that can be used with PHP [sub-processes](#sub-processes), or null if the process was not restarted.
-
-```php
-use Composer\XdebugHandler\XdebugHandler;
-
-$settings = XdebugHandler::getRestartSettings();
-/**
- * $settings: array (if the current process was restarted,
- * or called with the settings from a previous restart), or null
- *
- *    'tmpIni'      => the temporary ini file used in the restart (string)
- *    'scannedInis' => if there were any scanned inis (bool)
- *    'scanDir'     => the original PHP_INI_SCAN_DIR value (false|string)
- *    'phprc'       => the original PHPRC value (false|string)
- *    'inis'        => the original inis from getAllIniFiles (array)
- *    'skipped'     => the skipped version from getSkippedVersion (string)
- */
-```
-
-#### _getSkippedVersion(): string_
-Returns the Xdebug version string that was skipped by the restart, or an empty string if there was no restart (or Xdebug is still loaded, perhaps by an extending class restarting for a reason other than removing Xdebug).
-
-```php
-use Composer\XdebugHandler\XdebugHandler;
-
-$version = XdebugHandler::getSkippedVersion();
-# $version: '3.1.1' (for example), or an empty string
-```
-
-#### _isXdebugActive(): bool_
-Returns true if Xdebug is loaded and is running in an active mode (if it supports modes). Returns false if Xdebug is not loaded, or it is running with `xdebug.mode=off`.
-
-### Setter methods
-These methods implement a fluent interface and must be called before the main `check()` method.
-
-#### _setLogger(LoggerInterface $logger): self_
-Enables the output of status messages to an external PSR3 logger. All messages are reported with either `DEBUG` or `WARNING` log levels. For example (showing the level and message):
-
-```
-// No restart
-DEBUG    Checking MYAPP_ALLOW_XDEBUG
-DEBUG    The Xdebug extension is loaded (3.1.1) xdebug.mode=off
-DEBUG    No restart (APP_ALLOW_XDEBUG=0) Allowed by xdebug.mode
-
-// Restart overridden
-DEBUG    Checking MYAPP_ALLOW_XDEBUG
-DEBUG    The Xdebug extension is loaded (3.1.1) xdebug.mode=coverage,debug,develop
-DEBUG    No restart (MYAPP_ALLOW_XDEBUG=1)
-
-// Failed restart
-DEBUG    Checking MYAPP_ALLOW_XDEBUG
-DEBUG    The Xdebug extension is loaded (3.1.0)
-WARNING  No restart (Unable to create temp ini file at: ...)
-```
-
-Status messages can also be output with `XDEBUG_HANDLER_DEBUG`. See [Troubleshooting](#troubleshooting).
-
-#### _setMainScript(string $script): self_
-Sets the location of the main script to run in the restart. This is only needed in more esoteric use-cases, or if the `argv[0]` location is inaccessible. The script name `--` is supported for standard input.
-
-#### _setPersistent(): self_
-Configures the restart using [persistent settings](#persistent-settings), so that Xdebug is not loaded in any sub-process.
-
-Use this method if your application invokes one or more PHP sub-process and the Xdebug extension is not needed. This avoids the overhead of implementing specific [sub-process](#sub-processes) strategies.
-
-Alternatively, this method can be used to set up a default _Xdebug-free_ environment which can be changed if a sub-process requires Xdebug, then restored afterwards:
-
-```php
-function SubProcessWithXdebug()
-{
-    $phpConfig = new Composer\XdebugHandler\PhpConfig();
-
-    # Set the environment to the original configuration
-    $phpConfig->useOriginal();
-
-    # run the process with Xdebug loaded
-    ...
-
-    # Restore Xdebug-free environment
-    $phpConfig->usePersistent();
-}
-```
-
-### Process configuration
-The library offers two strategies to invoke a new PHP process without loading Xdebug, using either _standard_ or _persistent_ settings. Note that this is only important if the application calls a PHP sub-process.
-
-#### Standard settings
-Uses command-line options to remove Xdebug from the new process only.
-
-* The -n option is added to the command-line. This tells PHP not to scan for additional inis.
-* The temporary ini is added to the command-line with the -c option.
-
->_If the new process calls a PHP sub-process, Xdebug will be loaded in that sub-process (unless it implements xdebug-handler, in which case there will be another restart)._
-
-This is the default strategy used in the restart.
-
-#### Persistent settings
-Uses environment variables to remove Xdebug from the new process and persist these settings to any sub-process.
-
-* `PHP_INI_SCAN_DIR` is set to an empty string. This tells PHP not to scan for additional inis.
-* `PHPRC` is set to the temporary ini.
-
->_If the new process calls a PHP sub-process, Xdebug will not be loaded in that sub-process._
-
-This strategy can be used in the restart by calling [setPersistent()](#setpersistent-self).
-
-#### Sub-processes
-The `PhpConfig` helper class makes it easy to invoke a PHP sub-process (with or without Xdebug loaded), regardless of whether there has been a restart.
-
-Each of its methods returns an array of PHP options (to add to the command-line) and sets up the environment for the required strategy. The [getRestartSettings()](#getrestartsettings-array) method is used internally.
-
-* `useOriginal()` - Xdebug will be loaded in the new process.
-* `useStandard()` - Xdebug will **not** be loaded in the new process - see [standard settings](#standard-settings).
-* `userPersistent()` - Xdebug will **not** be loaded in the new process - see [persistent settings](#persistent-settings)
-
-If there was no restart, an empty options array is returned and the environment is not changed.
-
-```php
-use Composer\XdebugHandler\PhpConfig;
-
-$config = new PhpConfig;
-
-$options = $config->useOriginal();
-# $options:     empty array
-# environment:  PHPRC and PHP_INI_SCAN_DIR set to original values
-
-$options = $config->useStandard();
-# $options:     [-n, -c, tmpIni]
-# environment:  PHPRC and PHP_INI_SCAN_DIR set to original values
-
-$options = $config->usePersistent();
-# $options:     empty array
-# environment:  PHPRC=tmpIni, PHP_INI_SCAN_DIR=''
-```
-
-### Troubleshooting
-The following environment settings can be used to troubleshoot unexpected behavior:
-
-* `XDEBUG_HANDLER_DEBUG=1` Outputs status messages to `STDERR`, if it is defined, irrespective of any PSR3 logger. Each message is prefixed `xdebug-handler[pid]`, where pid is the process identifier.
-
-* `XDEBUG_HANDLER_DEBUG=2` As above, but additionally saves the temporary ini file and reports its location in a status message.
-
-### Extending the library
-The API is defined by classes and their accessible elements that are not annotated as @internal. The main class has two protected methods that can be overridden to provide additional functionality:
-
-#### _requiresRestart(bool $default): bool_
-By default the process will restart if Xdebug is loaded and not running with `xdebug.mode=off`. Extending this method allows an application to decide, by returning a boolean (or equivalent) value.
-It is only called if `MYAPP_ALLOW_XDEBUG` is empty, so it will not be called in the restarted process (where this variable contains internal data), or if the restart has been overridden.
-
-Note that the [setMainScript()](#setmainscriptstring-script-self) and [setPersistent()](#setpersistent-self) setters can be used here, if required.
-
-#### _restart(array $command): void_
-An application can extend this to modify the temporary ini file, its location given in the `tmpIni` property. New settings can be safely appended to the end of the data, which is `PHP_EOL` terminated.
-
-The `$command` parameter is an array of unescaped command-line arguments that will be used for the new process.
-
-Remember to finish with `parent::restart($command)`.
-
-#### Example
-This example demonstrates two ways to extend basic functionality:
-
-* To avoid the overhead of spinning up a new process, the restart is skipped if a simple help command is requested.
-
-* The application needs write-access to phar files, so it will force a restart if `phar.readonly` is set (regardless of whether Xdebug is loaded) and change this value in the temporary ini file.
-
-```php
-use Composer\XdebugHandler\XdebugHandler;
-use MyApp\Command;
-
-class MyRestarter extends XdebugHandler
-{
-    private $required;
-
-    protected function requiresRestart(bool $default): bool
-    {
-        if (Command::isHelp()) {
-            # No need to disable Xdebug for this
-            return false;
-        }
-
-        $this->required = (bool) ini_get('phar.readonly');
-        return $this->required || $default;
-    }
-
-    protected function restart(array $command): void
-    {
-        if ($this->required) {
-            # Add required ini setting to tmpIni
-            $content = file_get_contents($this->tmpIni);
-            $content .= 'phar.readonly=0'.PHP_EOL;
-            file_put_contents($this->tmpIni, $content);
-        }
-
-        parent::restart($command);
-    }
-}
-```
-
-### Examples
-The `tests\App` directory contains command-line scripts that demonstrate the internal workings in a variety of scenarios.
-See [Functional Test Scripts](./tests/App/README.md).
-
-## License
-composer/xdebug-handler is licensed under the MIT License, see the LICENSE file for details.

+ 0 - 44
vendor/composer/xdebug-handler/composer.json

@@ -1,44 +0,0 @@
-{
-    "name": "composer/xdebug-handler",
-    "description": "Restarts a process without Xdebug.",
-    "type": "library",
-    "license": "MIT",
-    "keywords": [
-        "xdebug",
-        "performance"
-    ],
-    "authors": [
-        {
-            "name": "John Stevenson",
-            "email": "john-stevenson@blueyonder.co.uk"
-        }
-    ],
-    "support": {
-        "irc": "ircs://irc.libera.chat:6697/composer",
-        "issues": "https://github.com/composer/xdebug-handler/issues"
-    },
-    "require": {
-        "php": "^7.2.5 || ^8.0",
-        "psr/log": "^1 || ^2 || ^3",
-        "composer/pcre": "^1 || ^2 || ^3"
-    },
-    "require-dev": {
-        "phpstan/phpstan": "^1.0",
-        "phpstan/phpstan-strict-rules": "^1.1",
-        "phpunit/phpunit": "^8.5 || ^9.6 || ^10.5"
-    },
-    "autoload": {
-        "psr-4": {
-            "Composer\\XdebugHandler\\": "src"
-        }
-    },
-    "autoload-dev": {
-        "psr-4": {
-            "Composer\\XdebugHandler\\Tests\\": "tests"
-        }
-    },
-    "scripts": {
-        "test": "@php vendor/bin/phpunit",
-        "phpstan": "@php vendor/bin/phpstan analyse"
-    }
-}

+ 0 - 91
vendor/composer/xdebug-handler/src/PhpConfig.php

@@ -1,91 +0,0 @@
-<?php
-
-declare(strict_types=1);
-
-/*
- * This file is part of composer/xdebug-handler.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-namespace Composer\XdebugHandler;
-
-/**
- * @author John Stevenson <john-stevenson@blueyonder.co.uk>
- *
- * @phpstan-type restartData array{tmpIni: string, scannedInis: bool, scanDir: false|string, phprc: false|string, inis: string[], skipped: string}
- */
-class PhpConfig
-{
-    /**
-     * Use the original PHP configuration
-     *
-     * @return string[] Empty array of PHP cli options
-     */
-    public function useOriginal(): array
-    {
-        $this->getDataAndReset();
-        return [];
-    }
-
-    /**
-     * Use standard restart settings
-     *
-     * @return string[] PHP cli options
-     */
-    public function useStandard(): array
-    {
-        $data = $this->getDataAndReset();
-        if ($data !== null) {
-            return ['-n', '-c', $data['tmpIni']];
-        }
-
-        return [];
-    }
-
-    /**
-     * Use environment variables to persist settings
-     *
-     * @return string[] Empty array of PHP cli options
-     */
-    public function usePersistent(): array
-    {
-        $data = $this->getDataAndReset();
-        if ($data !== null) {
-            $this->updateEnv('PHPRC', $data['tmpIni']);
-            $this->updateEnv('PHP_INI_SCAN_DIR', '');
-        }
-
-        return [];
-    }
-
-    /**
-     * Returns restart data if available and resets the environment
-     *
-     * @phpstan-return restartData|null
-     */
-    private function getDataAndReset(): ?array
-    {
-        $data = XdebugHandler::getRestartSettings();
-        if ($data !== null) {
-            $this->updateEnv('PHPRC', $data['phprc']);
-            $this->updateEnv('PHP_INI_SCAN_DIR', $data['scanDir']);
-        }
-
-        return $data;
-    }
-
-    /**
-     * Updates a restart settings value in the environment
-     *
-     * @param string $name
-     * @param string|false $value
-     */
-    private function updateEnv(string $name, $value): void
-    {
-        Process::setEnv($name, false !== $value ? $value : null);
-    }
-}

+ 0 - 119
vendor/composer/xdebug-handler/src/Process.php

@@ -1,119 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/xdebug-handler.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-declare(strict_types=1);
-
-namespace Composer\XdebugHandler;
-
-use Composer\Pcre\Preg;
-
-/**
- * Process utility functions
- *
- * @author John Stevenson <john-stevenson@blueyonder.co.uk>
- */
-class Process
-{
-    /**
-     * Escapes a string to be used as a shell argument.
-     *
-     * From https://github.com/johnstevenson/winbox-args
-     * MIT Licensed (c) John Stevenson <john-stevenson@blueyonder.co.uk>
-     *
-     * @param string $arg  The argument to be escaped
-     * @param bool $meta Additionally escape cmd.exe meta characters
-     * @param bool $module The argument is the module to invoke
-     */
-    public static function escape(string $arg, bool $meta = true, bool $module = false): string
-    {
-        if (!defined('PHP_WINDOWS_VERSION_BUILD')) {
-            return "'".str_replace("'", "'\\''", $arg)."'";
-        }
-
-        $quote = strpbrk($arg, " \t") !== false || $arg === '';
-
-        $arg = Preg::replace('/(\\\\*)"/', '$1$1\\"', $arg, -1, $dquotes);
-        $dquotes = (bool) $dquotes;
-
-        if ($meta) {
-            $meta = $dquotes || Preg::isMatch('/%[^%]+%/', $arg);
-
-            if (!$meta) {
-                $quote = $quote || strpbrk($arg, '^&|<>()') !== false;
-            } elseif ($module && !$dquotes && $quote) {
-                $meta = false;
-            }
-        }
-
-        if ($quote) {
-            $arg = '"'.(Preg::replace('/(\\\\*)$/', '$1$1', $arg)).'"';
-        }
-
-        if ($meta) {
-            $arg = Preg::replace('/(["^&|<>()%])/', '^$1', $arg);
-        }
-
-        return $arg;
-    }
-
-    /**
-     * Escapes an array of arguments that make up a shell command
-     *
-     * @param string[] $args Argument list, with the module name first
-     */
-    public static function escapeShellCommand(array $args): string
-    {
-        $command = '';
-        $module = array_shift($args);
-
-        if ($module !== null) {
-            $command = self::escape($module, true, true);
-
-            foreach ($args as $arg) {
-                $command .= ' '.self::escape($arg);
-            }
-        }
-
-        return $command;
-    }
-
-    /**
-     * Makes putenv environment changes available in $_SERVER and $_ENV
-     *
-     * @param string $name
-     * @param ?string $value A null value unsets the variable
-      */
-    public static function setEnv(string $name, ?string $value = null): bool
-    {
-        $unset = null === $value;
-
-        if (!putenv($unset ? $name : $name.'='.$value)) {
-            return false;
-        }
-
-        if ($unset) {
-            unset($_SERVER[$name]);
-        } else {
-            $_SERVER[$name] = $value;
-        }
-
-        // Update $_ENV if it is being used
-        if (false !== stripos((string) ini_get('variables_order'), 'E')) {
-            if ($unset) {
-                unset($_ENV[$name]);
-            } else {
-                $_ENV[$name] = $value;
-            }
-        }
-
-        return true;
-    }
-}

+ 0 - 222
vendor/composer/xdebug-handler/src/Status.php

@@ -1,222 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/xdebug-handler.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-declare(strict_types=1);
-
-namespace Composer\XdebugHandler;
-
-use Psr\Log\LoggerInterface;
-use Psr\Log\LogLevel;
-
-/**
- * @author John Stevenson <john-stevenson@blueyonder.co.uk>
- * @internal
- */
-class Status
-{
-    const ENV_RESTART = 'XDEBUG_HANDLER_RESTART';
-    const CHECK = 'Check';
-    const ERROR = 'Error';
-    const INFO = 'Info';
-    const NORESTART = 'NoRestart';
-    const RESTART = 'Restart';
-    const RESTARTING = 'Restarting';
-    const RESTARTED = 'Restarted';
-
-    /** @var bool */
-    private $debug;
-
-    /** @var string */
-    private $envAllowXdebug;
-
-    /** @var string|null */
-    private $loaded;
-
-    /** @var LoggerInterface|null */
-    private $logger;
-
-    /** @var bool */
-    private $modeOff;
-
-     /** @var float */
-    private $time;
-
-    /**
-     * @param string $envAllowXdebug Prefixed _ALLOW_XDEBUG name
-     * @param bool $debug Whether debug output is required
-     */
-    public function __construct(string $envAllowXdebug, bool $debug)
-    {
-        $start = getenv(self::ENV_RESTART);
-        Process::setEnv(self::ENV_RESTART);
-        $this->time = is_numeric($start) ? round((microtime(true) - $start) * 1000) : 0;
-
-        $this->envAllowXdebug = $envAllowXdebug;
-        $this->debug = $debug && defined('STDERR');
-        $this->modeOff = false;
-    }
-
-    /**
-     * Activates status message output to a PSR3 logger
-     *
-     * @return void
-     */
-    public function setLogger(LoggerInterface $logger): void
-    {
-        $this->logger = $logger;
-    }
-
-    /**
-     * Calls a handler method to report a message
-     *
-     * @throws \InvalidArgumentException If $op is not known
-     */
-    public function report(string $op, ?string $data): void
-    {
-        if ($this->logger !== null || $this->debug) {
-            $param = (string) $data;
-
-            switch($op) {
-                case self::CHECK:
-                    $this->reportCheck($param);
-                    break;
-                case self::ERROR:
-                    $this->reportError($param);
-                    break;
-                case self::INFO:
-                    $this->reportInfo($param);
-                    break;
-                case self::NORESTART:
-                    $this->reportNoRestart();
-                    break;
-                case self::RESTART:
-                    $this->reportRestart();
-                    break;
-                case self::RESTARTED:
-                    $this->reportRestarted();
-                    break;
-                case self::RESTARTING:
-                    $this->reportRestarting($param);
-                    break;
-                default:
-                    throw new \InvalidArgumentException('Unknown op handler: '.$op);
-            }
-        }
-    }
-
-    /**
-     * Outputs a status message
-     */
-    private function output(string $text, ?string $level = null): void
-    {
-        if ($this->logger !== null) {
-            $this->logger->log($level !== null ? $level: LogLevel::DEBUG, $text);
-        }
-
-        if ($this->debug) {
-            fwrite(STDERR, sprintf('xdebug-handler[%d] %s', getmypid(), $text.PHP_EOL));
-        }
-    }
-
-    /**
-     * Checking status message
-     */
-    private function reportCheck(string $loaded): void
-    {
-        list($version, $mode) = explode('|', $loaded);
-
-        if ($version !== '') {
-            $this->loaded = '('.$version.')'.($mode !== '' ? ' xdebug.mode='.$mode : '');
-        }
-        $this->modeOff = $mode === 'off';
-        $this->output('Checking '.$this->envAllowXdebug);
-    }
-
-    /**
-     * Error status message
-     */
-    private function reportError(string $error): void
-    {
-        $this->output(sprintf('No restart (%s)', $error), LogLevel::WARNING);
-    }
-
-    /**
-     * Info status message
-     */
-    private function reportInfo(string $info): void
-    {
-        $this->output($info);
-    }
-
-    /**
-     * No restart status message
-     */
-    private function reportNoRestart(): void
-    {
-        $this->output($this->getLoadedMessage());
-
-        if ($this->loaded !== null) {
-            $text = sprintf('No restart (%s)', $this->getEnvAllow());
-            if (!((bool) getenv($this->envAllowXdebug))) {
-                $text .= ' Allowed by '.($this->modeOff ? 'xdebug.mode' : 'application');
-            }
-            $this->output($text);
-        }
-    }
-
-    /**
-     * Restart status message
-     */
-    private function reportRestart(): void
-    {
-        $this->output($this->getLoadedMessage());
-        Process::setEnv(self::ENV_RESTART, (string) microtime(true));
-    }
-
-    /**
-     * Restarted status message
-     */
-    private function reportRestarted(): void
-    {
-        $loaded = $this->getLoadedMessage();
-        $text = sprintf('Restarted (%d ms). %s', $this->time, $loaded);
-        $level = $this->loaded !== null ? LogLevel::WARNING : null;
-        $this->output($text, $level);
-    }
-
-    /**
-     * Restarting status message
-     */
-    private function reportRestarting(string $command): void
-    {
-        $text = sprintf('Process restarting (%s)', $this->getEnvAllow());
-        $this->output($text);
-        $text = 'Running: '.$command;
-        $this->output($text);
-    }
-
-    /**
-     * Returns the _ALLOW_XDEBUG environment variable as name=value
-     */
-    private function getEnvAllow(): string
-    {
-        return $this->envAllowXdebug.'='.getenv($this->envAllowXdebug);
-    }
-
-    /**
-     * Returns the Xdebug status and version
-     */
-    private function getLoadedMessage(): string
-    {
-        $loaded = $this->loaded !== null ? sprintf('loaded %s', $this->loaded) : 'not loaded';
-        return 'The Xdebug extension is '.$loaded;
-    }
-}

+ 0 - 722
vendor/composer/xdebug-handler/src/XdebugHandler.php

@@ -1,722 +0,0 @@
-<?php
-
-/*
- * This file is part of composer/xdebug-handler.
- *
- * (c) Composer <https://github.com/composer>
- *
- * For the full copyright and license information, please view
- * the LICENSE file that was distributed with this source code.
- */
-
-declare(strict_types=1);
-
-namespace Composer\XdebugHandler;
-
-use Composer\Pcre\Preg;
-use Psr\Log\LoggerInterface;
-
-/**
- * @author John Stevenson <john-stevenson@blueyonder.co.uk>
- *
- * @phpstan-import-type restartData from PhpConfig
- */
-class XdebugHandler
-{
-    const SUFFIX_ALLOW = '_ALLOW_XDEBUG';
-    const SUFFIX_INIS = '_ORIGINAL_INIS';
-    const RESTART_ID = 'internal';
-    const RESTART_SETTINGS = 'XDEBUG_HANDLER_SETTINGS';
-    const DEBUG = 'XDEBUG_HANDLER_DEBUG';
-
-    /** @var string|null */
-    protected $tmpIni;
-
-    /** @var bool */
-    private static $inRestart;
-
-    /** @var string */
-    private static $name;
-
-    /** @var string|null */
-    private static $skipped;
-
-    /** @var bool */
-    private static $xdebugActive;
-
-    /** @var string|null */
-    private static $xdebugMode;
-
-    /** @var string|null */
-    private static $xdebugVersion;
-
-    /** @var bool */
-    private $cli;
-
-    /** @var string|null */
-    private $debug;
-
-    /** @var string */
-    private $envAllowXdebug;
-
-    /** @var string */
-    private $envOriginalInis;
-
-    /** @var bool */
-    private $persistent;
-
-    /** @var string|null */
-    private $script;
-
-    /** @var Status */
-    private $statusWriter;
-
-    /**
-     * Constructor
-     *
-     * The $envPrefix is used to create distinct environment variables. It is
-     * uppercased and prepended to the default base values. For example 'myapp'
-     * would result in MYAPP_ALLOW_XDEBUG and MYAPP_ORIGINAL_INIS.
-     *
-     * @param string $envPrefix Value used in environment variables
-     * @throws \RuntimeException If the parameter is invalid
-     */
-    public function __construct(string $envPrefix)
-    {
-        if ($envPrefix === '') {
-            throw new \RuntimeException('Invalid constructor parameter');
-        }
-
-        self::$name = strtoupper($envPrefix);
-        $this->envAllowXdebug = self::$name.self::SUFFIX_ALLOW;
-        $this->envOriginalInis = self::$name.self::SUFFIX_INIS;
-
-        self::setXdebugDetails();
-        self::$inRestart = false;
-
-        if ($this->cli = PHP_SAPI === 'cli') {
-            $this->debug = (string) getenv(self::DEBUG);
-        }
-
-        $this->statusWriter = new Status($this->envAllowXdebug, (bool) $this->debug);
-    }
-
-    /**
-     * Activates status message output to a PSR3 logger
-     */
-    public function setLogger(LoggerInterface $logger): self
-    {
-        $this->statusWriter->setLogger($logger);
-        return $this;
-    }
-
-    /**
-     * Sets the main script location if it cannot be called from argv
-     */
-    public function setMainScript(string $script): self
-    {
-        $this->script = $script;
-        return $this;
-    }
-
-    /**
-     * Persist the settings to keep Xdebug out of sub-processes
-     */
-    public function setPersistent(): self
-    {
-        $this->persistent = true;
-        return $this;
-    }
-
-    /**
-     * Checks if Xdebug is loaded and the process needs to be restarted
-     *
-     * This behaviour can be disabled by setting the MYAPP_ALLOW_XDEBUG
-     * environment variable to 1. This variable is used internally so that
-     * the restarted process is created only once.
-     */
-    public function check(): void
-    {
-        $this->notify(Status::CHECK, self::$xdebugVersion.'|'.self::$xdebugMode);
-        $envArgs = explode('|', (string) getenv($this->envAllowXdebug));
-
-        if (!((bool) $envArgs[0]) && $this->requiresRestart(self::$xdebugActive)) {
-            // Restart required
-            $this->notify(Status::RESTART);
-            $command = $this->prepareRestart();
-
-            if ($command !== null) {
-                $this->restart($command);
-            }
-            return;
-        }
-
-        if (self::RESTART_ID === $envArgs[0] && count($envArgs) === 5) {
-            // Restarted, so unset environment variable and use saved values
-            $this->notify(Status::RESTARTED);
-
-            Process::setEnv($this->envAllowXdebug);
-            self::$inRestart = true;
-
-            if (self::$xdebugVersion === null) {
-                // Skipped version is only set if Xdebug is not loaded
-                self::$skipped = $envArgs[1];
-            }
-
-            $this->tryEnableSignals();
-
-            // Put restart settings in the environment
-            $this->setEnvRestartSettings($envArgs);
-            return;
-        }
-
-        $this->notify(Status::NORESTART);
-        $settings = self::getRestartSettings();
-
-        if ($settings !== null) {
-            // Called with existing settings, so sync our settings
-            $this->syncSettings($settings);
-        }
-    }
-
-    /**
-     * Returns an array of php.ini locations with at least one entry
-     *
-     * The equivalent of calling php_ini_loaded_file then php_ini_scanned_files.
-     * The loaded ini location is the first entry and may be an empty string.
-     *
-     * @return non-empty-list<string>
-     */
-    public static function getAllIniFiles(): array
-    {
-        if (self::$name !== null) {
-            $env = getenv(self::$name.self::SUFFIX_INIS);
-
-            if (false !== $env) {
-                return explode(PATH_SEPARATOR, $env);
-            }
-        }
-
-        $paths = [(string) php_ini_loaded_file()];
-        $scanned = php_ini_scanned_files();
-
-        if ($scanned !== false) {
-            $paths = array_merge($paths, array_map('trim', explode(',', $scanned)));
-        }
-
-        return $paths;
-    }
-
-    /**
-     * Returns an array of restart settings or null
-     *
-     * Settings will be available if the current process was restarted, or
-     * called with the settings from an existing restart.
-     *
-     * @phpstan-return restartData|null
-     */
-    public static function getRestartSettings(): ?array
-    {
-        $envArgs = explode('|', (string) getenv(self::RESTART_SETTINGS));
-
-        if (count($envArgs) !== 6
-            || (!self::$inRestart && php_ini_loaded_file() !== $envArgs[0])) {
-            return null;
-        }
-
-        return [
-            'tmpIni' => $envArgs[0],
-            'scannedInis' => (bool) $envArgs[1],
-            'scanDir' => '*' === $envArgs[2] ? false : $envArgs[2],
-            'phprc' => '*' === $envArgs[3] ? false : $envArgs[3],
-            'inis' => explode(PATH_SEPARATOR, $envArgs[4]),
-            'skipped' => $envArgs[5],
-        ];
-    }
-
-    /**
-     * Returns the Xdebug version that triggered a successful restart
-     */
-    public static function getSkippedVersion(): string
-    {
-        return (string) self::$skipped;
-    }
-
-    /**
-     * Returns whether Xdebug is loaded and active
-     *
-     * true: if Xdebug is loaded and is running in an active mode.
-     * false: if Xdebug is not loaded, or it is running with xdebug.mode=off.
-     */
-    public static function isXdebugActive(): bool
-    {
-        self::setXdebugDetails();
-        return self::$xdebugActive;
-    }
-
-    /**
-     * Allows an extending class to decide if there should be a restart
-     *
-     * The default is to restart if Xdebug is loaded and its mode is not "off".
-     */
-    protected function requiresRestart(bool $default): bool
-    {
-        return $default;
-    }
-
-    /**
-     * Allows an extending class to access the tmpIni
-     *
-     * @param non-empty-list<string> $command
-     */
-    protected function restart(array $command): void
-    {
-        $this->doRestart($command);
-    }
-
-    /**
-     * Executes the restarted command then deletes the tmp ini
-     *
-     * @param non-empty-list<string> $command
-     * @phpstan-return never
-     */
-    private function doRestart(array $command): void
-    {
-        if (PHP_VERSION_ID >= 70400) {
-            $cmd = $command;
-            $displayCmd = sprintf('[%s]', implode(', ', $cmd));
-        } else {
-            $cmd = Process::escapeShellCommand($command);
-            if (defined('PHP_WINDOWS_VERSION_BUILD')) {
-                // Outer quotes required on cmd string below PHP 8
-                $cmd = '"'.$cmd.'"';
-            }
-            $displayCmd = $cmd;
-        }
-
-        $this->tryEnableSignals();
-        $this->notify(Status::RESTARTING, $displayCmd);
-
-        $process = proc_open($cmd, [], $pipes);
-        if (is_resource($process)) {
-            $exitCode = proc_close($process);
-        }
-
-        if (!isset($exitCode)) {
-            // Unlikely that php or the default shell cannot be invoked
-            $this->notify(Status::ERROR, 'Unable to restart process');
-            $exitCode = -1;
-        } else {
-            $this->notify(Status::INFO, 'Restarted process exited '.$exitCode);
-        }
-
-        if ($this->debug === '2') {
-            $this->notify(Status::INFO, 'Temp ini saved: '.$this->tmpIni);
-        } else {
-            @unlink((string) $this->tmpIni);
-        }
-
-        exit($exitCode);
-    }
-
-    /**
-     * Returns the command line array if everything was written for the restart
-     *
-     * If any of the following fails (however unlikely) we must return false to
-     * stop potential recursion:
-     *   - tmp ini file creation
-     *   - environment variable creation
-     *
-     * @return non-empty-list<string>|null
-     */
-    private function prepareRestart(): ?array
-    {
-        if (!$this->cli) {
-            $this->notify(Status::ERROR, 'Unsupported SAPI: '.PHP_SAPI);
-            return null;
-        }
-
-        if (($argv = $this->checkServerArgv()) === null) {
-            $this->notify(Status::ERROR, '$_SERVER[argv] is not as expected');
-            return null;
-        }
-
-        if (!$this->checkConfiguration($info)) {
-            $this->notify(Status::ERROR, $info);
-            return null;
-        }
-
-        $mainScript = (string) $this->script;
-        if (!$this->checkMainScript($mainScript, $argv)) {
-            $this->notify(Status::ERROR, 'Unable to access main script: '.$mainScript);
-            return null;
-        }
-
-        $tmpDir = sys_get_temp_dir();
-        $iniError = 'Unable to create temp ini file at: '.$tmpDir;
-
-        if (($tmpfile = @tempnam($tmpDir, '')) === false) {
-            $this->notify(Status::ERROR, $iniError);
-            return null;
-        }
-
-        $error = null;
-        $iniFiles = self::getAllIniFiles();
-        $scannedInis = count($iniFiles) > 1;
-
-        if (!$this->writeTmpIni($tmpfile, $iniFiles, $error)) {
-            $this->notify(Status::ERROR, $error ?? $iniError);
-            @unlink($tmpfile);
-            return null;
-        }
-
-        if (!$this->setEnvironment($scannedInis, $iniFiles, $tmpfile)) {
-            $this->notify(Status::ERROR, 'Unable to set environment variables');
-            @unlink($tmpfile);
-            return null;
-        }
-
-        $this->tmpIni = $tmpfile;
-
-        return $this->getCommand($argv, $tmpfile, $mainScript);
-    }
-
-    /**
-     * Returns true if the tmp ini file was written
-     *
-     * @param non-empty-list<string> $iniFiles All ini files used in the current process
-     */
-    private function writeTmpIni(string $tmpFile, array $iniFiles, ?string &$error): bool
-    {
-        // $iniFiles has at least one item and it may be empty
-        if ($iniFiles[0] === '') {
-            array_shift($iniFiles);
-        }
-
-        $content = '';
-        $sectionRegex = '/^\s*\[(?:PATH|HOST)\s*=/mi';
-        $xdebugRegex = '/^\s*(zend_extension\s*=.*xdebug.*)$/mi';
-
-        foreach ($iniFiles as $file) {
-            // Check for inaccessible ini files
-            if (($data = @file_get_contents($file)) === false) {
-                $error = 'Unable to read ini: '.$file;
-                return false;
-            }
-            // Check and remove directives after HOST and PATH sections
-            if (Preg::isMatchWithOffsets($sectionRegex, $data, $matches)) {
-                $data = substr($data, 0, $matches[0][1]);
-            }
-            $content .= Preg::replace($xdebugRegex, ';$1', $data).PHP_EOL;
-        }
-
-        // Merge loaded settings into our ini content, if it is valid
-        $config = parse_ini_string($content);
-        $loaded = ini_get_all(null, false);
-
-        if (false === $config || false === $loaded) {
-            $error = 'Unable to parse ini data';
-            return false;
-        }
-
-        $content .= $this->mergeLoadedConfig($loaded, $config);
-
-        // Work-around for https://bugs.php.net/bug.php?id=75932
-        $content .= 'opcache.enable_cli=0'.PHP_EOL;
-
-        return (bool) @file_put_contents($tmpFile, $content);
-    }
-
-    /**
-     * Returns the command line arguments for the restart
-     *
-     * @param non-empty-list<string> $argv
-     * @return non-empty-list<string>
-     */
-    private function getCommand(array $argv, string $tmpIni, string $mainScript): array
-    {
-        $php = [PHP_BINARY];
-        $args = array_slice($argv, 1);
-
-        if (!$this->persistent) {
-            // Use command-line options
-            array_push($php, '-n', '-c', $tmpIni);
-        }
-
-        return array_merge($php, [$mainScript], $args);
-    }
-
-    /**
-     * Returns true if the restart environment variables were set
-     *
-     * No need to update $_SERVER since this is set in the restarted process.
-     *
-     * @param non-empty-list<string> $iniFiles All ini files used in the current process
-     */
-    private function setEnvironment(bool $scannedInis, array $iniFiles, string $tmpIni): bool
-    {
-        $scanDir = getenv('PHP_INI_SCAN_DIR');
-        $phprc = getenv('PHPRC');
-
-        // Make original inis available to restarted process
-        if (!putenv($this->envOriginalInis.'='.implode(PATH_SEPARATOR, $iniFiles))) {
-            return false;
-        }
-
-        if ($this->persistent) {
-            // Use the environment to persist the settings
-            if (!putenv('PHP_INI_SCAN_DIR=') || !putenv('PHPRC='.$tmpIni)) {
-                return false;
-            }
-        }
-
-        // Flag restarted process and save values for it to use
-        $envArgs = [
-            self::RESTART_ID,
-            self::$xdebugVersion,
-            (int) $scannedInis,
-            false === $scanDir ? '*' : $scanDir,
-            false === $phprc ? '*' : $phprc,
-        ];
-
-        return putenv($this->envAllowXdebug.'='.implode('|', $envArgs));
-    }
-
-    /**
-     * Logs status messages
-     */
-    private function notify(string $op, ?string $data = null): void
-    {
-        $this->statusWriter->report($op, $data);
-    }
-
-    /**
-     * Returns default, changed and command-line ini settings
-     *
-     * @param mixed[] $loadedConfig All current ini settings
-     * @param mixed[] $iniConfig Settings from user ini files
-     *
-     */
-    private function mergeLoadedConfig(array $loadedConfig, array $iniConfig): string
-    {
-        $content = '';
-
-        foreach ($loadedConfig as $name => $value) {
-            // Value will either be null, string or array (HHVM only)
-            if (!is_string($value)
-                || strpos($name, 'xdebug') === 0
-                || $name === 'apc.mmap_file_mask') {
-                continue;
-            }
-
-            if (!isset($iniConfig[$name]) || $iniConfig[$name] !== $value) {
-                // Double-quote escape each value
-                $content .= $name.'="'.addcslashes($value, '\\"').'"'.PHP_EOL;
-            }
-        }
-
-        return $content;
-    }
-
-    /**
-     * Returns true if the script name can be used
-     *
-     * @param non-empty-list<string> $argv
-     */
-    private function checkMainScript(string &$mainScript, array $argv): bool
-    {
-        if ($mainScript !== '') {
-            // Allow an application to set -- for standard input
-            return file_exists($mainScript) || '--' === $mainScript;
-        }
-
-        if (file_exists($mainScript = $argv[0])) {
-            return true;
-        }
-
-        // Use a backtrace to resolve Phar and chdir issues.
-        $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
-        $main = end($trace);
-
-        if ($main !== false && isset($main['file'])) {
-            return file_exists($mainScript = $main['file']);
-        }
-
-        return false;
-    }
-
-    /**
-     * Adds restart settings to the environment
-     *
-     * @param non-empty-list<string> $envArgs
-     */
-    private function setEnvRestartSettings(array $envArgs): void
-    {
-        $settings = [
-            php_ini_loaded_file(),
-            $envArgs[2],
-            $envArgs[3],
-            $envArgs[4],
-            getenv($this->envOriginalInis),
-            self::$skipped,
-        ];
-
-        Process::setEnv(self::RESTART_SETTINGS, implode('|', $settings));
-    }
-
-    /**
-     * Syncs settings and the environment if called with existing settings
-     *
-     * @phpstan-param restartData $settings
-     */
-    private function syncSettings(array $settings): void
-    {
-        if (false === getenv($this->envOriginalInis)) {
-            // Called by another app, so make original inis available
-            Process::setEnv($this->envOriginalInis, implode(PATH_SEPARATOR, $settings['inis']));
-        }
-
-        self::$skipped = $settings['skipped'];
-        $this->notify(Status::INFO, 'Process called with existing restart settings');
-    }
-
-    /**
-     * Returns true if there are no known configuration issues
-     */
-    private function checkConfiguration(?string &$info): bool
-    {
-        if (!function_exists('proc_open')) {
-            $info = 'proc_open function is disabled';
-            return false;
-        }
-
-        if (!file_exists(PHP_BINARY)) {
-            $info = 'PHP_BINARY is not available';
-            return false;
-        }
-
-        if (extension_loaded('uopz') && !((bool) ini_get('uopz.disable'))) {
-            // uopz works at opcode level and disables exit calls
-            if (function_exists('uopz_allow_exit')) {
-                @uopz_allow_exit(true);
-            } else {
-                $info = 'uopz extension is not compatible';
-                return false;
-            }
-        }
-
-        // Check UNC paths when using cmd.exe
-        if (defined('PHP_WINDOWS_VERSION_BUILD') && PHP_VERSION_ID < 70400) {
-            $workingDir = getcwd();
-
-            if ($workingDir === false) {
-                $info = 'unable to determine working directory';
-                return false;
-            }
-
-            if (0 === strpos($workingDir, '\\\\')) {
-                $info = 'cmd.exe does not support UNC paths: '.$workingDir;
-                return false;
-            }
-        }
-
-        return true;
-    }
-
-    /**
-     * Enables async signals and control interrupts in the restarted process
-     *
-     * Available on Unix PHP 7.1+ with the pcntl extension and Windows PHP 7.4+.
-     */
-    private function tryEnableSignals(): void
-    {
-        if (function_exists('pcntl_async_signals') && function_exists('pcntl_signal')) {
-            pcntl_async_signals(true);
-            $message = 'Async signals enabled';
-
-            if (!self::$inRestart) {
-                // Restarting, so ignore SIGINT in parent
-                pcntl_signal(SIGINT, SIG_IGN);
-            } elseif (is_int(pcntl_signal_get_handler(SIGINT))) {
-                // Restarted, no handler set so force default action
-                pcntl_signal(SIGINT, SIG_DFL);
-            }
-        }
-
-        if (!self::$inRestart && function_exists('sapi_windows_set_ctrl_handler')) {
-            // Restarting, so set a handler to ignore CTRL events in the parent.
-            // This ensures that CTRL+C events will be available in the child
-            // process without having to enable them there, which is unreliable.
-            sapi_windows_set_ctrl_handler(function ($evt) {});
-        }
-    }
-
-    /**
-     * Returns $_SERVER['argv'] if it is as expected
-     *
-     * @return non-empty-list<string>|null
-     */
-    private function checkServerArgv(): ?array
-    {
-        $result = [];
-
-        if (isset($_SERVER['argv']) && is_array($_SERVER['argv'])) {
-            foreach ($_SERVER['argv'] as $value) {
-                if (!is_string($value)) {
-                    return null;
-                }
-
-                $result[] = $value;
-            }
-        }
-
-        return count($result) > 0 ? $result : null;
-    }
-
-    /**
-     * Sets static properties $xdebugActive, $xdebugVersion and $xdebugMode
-     */
-    private static function setXdebugDetails(): void
-    {
-        if (self::$xdebugActive !== null) {
-            return;
-        }
-
-        self::$xdebugActive = false;
-        if (!extension_loaded('xdebug')) {
-            return;
-        }
-
-        $version = phpversion('xdebug');
-        self::$xdebugVersion = $version !== false ? $version : 'unknown';
-
-        if (version_compare(self::$xdebugVersion, '3.1', '>=')) {
-            $modes = xdebug_info('mode');
-            self::$xdebugMode = count($modes) === 0 ? 'off' : implode(',', $modes);
-            self::$xdebugActive = self::$xdebugMode !== 'off';
-            return;
-        }
-
-        // See if xdebug.mode is supported in this version
-        $iniMode = ini_get('xdebug.mode');
-        if ($iniMode === false) {
-            self::$xdebugActive = true;
-            return;
-        }
-
-        // Environment value wins but cannot be empty
-        $envMode = (string) getenv('XDEBUG_MODE');
-        if ($envMode !== '') {
-            self::$xdebugMode = $envMode;
-        } else {
-            self::$xdebugMode = $iniMode !== '' ? $iniMode : 'off';
-        }
-
-        // An empty comma-separated list is treated as mode 'off'
-        if (Preg::isMatch('/^,+$/', str_replace(' ', '', self::$xdebugMode))) {
-            self::$xdebugMode = 'off';
-        }
-
-        self::$xdebugActive = self::$xdebugMode !== 'off';
-    }
-}

Some files were not shown because too many files changed in this diff