diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8dc891d6..16d1522d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,7 +24,7 @@ jobs: - name: Install PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.3' + php-version: '8.4' coverage: none extensions: mbstring @@ -40,14 +40,15 @@ jobs: run: >- composer run cs-check - - name: Run backwards compatibility check - run: >- - composer run bc-check - - name: Run static analysis run: >- composer run static-analysis + # Disabled for version 2.0, since there is no BC promise at this time. + # - name: Run backwards compatibility check + # run: >- + # composer run bc-check + tests: name: Tests @@ -56,11 +57,6 @@ jobs: strategy: matrix: php-version: - - "7.2" - - "7.3" - - "7.4" - - "8.0" - - "8.1" - "8.2" - "8.3" - "8.4" @@ -76,7 +72,7 @@ jobs: php-version: "${{ matrix.php-version }}" coverage: none extensions: mbstring - tools: phpunit:8 + tools: phpunit:11 - name: Install dependencies run: composer install @@ -92,7 +88,7 @@ jobs: strategy: matrix: php-version: - - "7.4" + - "8.2" - "8.3" - "8.4" - "8.5" @@ -107,7 +103,7 @@ jobs: php-version: "${{ matrix.php-version }}" coverage: none extensions: mbstring - tools: phpunit:8 + tools: phpunit:11 - name: Install dependencies run: composer install diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c4a148b..a688a419 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,15 @@ Changelog ========= -## UNRELEASED +## 2.0.0 (UNRELEASED) + +### Changed + +- **BREAKING**: Minimum PHP version is now 8.2 (was 7.2). +- Updated CI/CD test matrix to test PHP 8.2, 8.3, 8.4, and 8.5. +- Updated development tools (PHPUnit, Psalm, PHP-CS-Fixer) to supported versions. +- Added explicit return types and parameter types to all methods in both source code and tests. +- Remove deprecated `isTraversable` (use `isIterable` or `isInstanceOf` instead). ## 1.12.0 diff --git a/README.md b/README.md index 766099cb..b019b97f 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,6 @@ Method | Description `resource($value, $type = null, $message = '')` | Check that a value is a resource `isCallable($value, $message = '')` | Check that a value is a callable `isArray($value, $message = '')` | Check that a value is an array -`isTraversable($value, $message = '')` (deprecated) | Check that a value is an array or a `\Traversable` `isIterable($value, $message = '')` | Check that a value is an array or a `\Traversable` `isCountable($value, $message = '')` | Check that a value is an array or a `\Countable` `isInstanceOf($value, $class, $message = '')` | Check that a value is an `instanceof` a class @@ -112,26 +111,28 @@ Method | Description ### Comparison Assertions -Method | Description ------------------------------------------------ | ------------------------------------------------------------------ -`true($value, $message = '')` | Check that a value is `true` -`false($value, $message = '')` | Check that a value is `false` -`notFalse($value, $message = '')` | Check that a value is not `false` -`null($value, $message = '')` | Check that a value is `null` -`notNull($value, $message = '')` | Check that a value is not `null` -`isEmpty($value, $message = '')` | Check that a value is `empty()` -`notEmpty($value, $message = '')` | Check that a value is not `empty()` -`eq($value, $value2, $message = '')` | Check that a value equals another (`==`) -`notEq($value, $value2, $message = '')` | Check that a value does not equal another (`!=`) -`same($value, $value2, $message = '')` | Check that a value is identical to another (`===`) -`notSame($value, $value2, $message = '')` | Check that a value is not identical to another (`!==`) -`greaterThan($value, $value2, $message = '')` | Check that a value is greater than another -`greaterThanEq($value, $value2, $message = '')` | Check that a value is greater than or equal to another -`lessThan($value, $value2, $message = '')` | Check that a value is less than another -`lessThanEq($value, $value2, $message = '')` | Check that a value is less than or equal to another -`range($value, $min, $max, $message = '')` | Check that a value is within a range -`inArray($value, array $values, $message = '')` | Check that a value is one of a list of values -`oneOf($value, array $values, $message = '')` | Check that a value is one of a list of values (alias of `inArray`) +Method | Description +----------------------------------------------------- | ------------------------------------------------------------------ +`true($value, $message = '')` | Check that a value is `true` +`false($value, $message = '')` | Check that a value is `false` +`notFalse($value, $message = '')` | Check that a value is not `false` +`null($value, $message = '')` | Check that a value is `null` +`notNull($value, $message = '')` | Check that a value is not `null` +`isEmpty($value, $message = '')` | Check that a value is `empty()` +`notEmpty($value, $message = '')` | Check that a value is not `empty()` +`eq($value, $value2, $message = '')` | Check that a value equals another (`==`) +`notEq($value, $value2, $message = '')` | Check that a value does not equal another (`!=`) +`same($value, $value2, $message = '')` | Check that a value is identical to another (`===`) +`notSame($value, $value2, $message = '')` | Check that a value is not identical to another (`!==`) +`greaterThan($value, $value2, $message = '')` | Check that a value is greater than another +`greaterThanEq($value, $value2, $message = '')` | Check that a value is greater than or equal to another +`lessThan($value, $value2, $message = '')` | Check that a value is less than another +`lessThanEq($value, $value2, $message = '')` | Check that a value is less than or equal to another +`range($value, $min, $max, $message = '')` | Check that a value is within a range +`inArray($value, array $values, $message = '')` | Check that a value is one of a list of values +`notInArray($value, array $values, $message = '')` | Check that a value is not one of a list of values +`oneOf($value, array $values, $message = '')` | Check that a value is one of a list of values (alias of `inArray`) +`notOneOf($value, array $values, $message = '')` | Check that a value is not one of a list of values (alias of `notInArray`) ### String Assertions diff --git a/bin/src/MixinGenerator.php b/bin/src/MixinGenerator.php index 42e3911d..80c2c6e8 100644 --- a/bin/src/MixinGenerator.php +++ b/bin/src/MixinGenerator.php @@ -5,14 +5,18 @@ namespace Webmozart\Assert\Bin; use ArrayAccess; -use Closure; use Countable; use ReflectionClass; use ReflectionException; +use ReflectionIntersectionType; use ReflectionMethod; +use ReflectionType; +use ReflectionUnionType; use RuntimeException; -use Throwable; use Webmozart\Assert\Assert; + +use function array_map; +use function implode; use function rtrim; final class MixinGenerator @@ -56,6 +60,8 @@ public function generate(): string <<<'PHP' getNamespaceName()); $namespace .= sprintf("use %s;\n", ArrayAccess::class); - $namespace .= sprintf("use %s;\n", Closure::class); $namespace .= sprintf("use %s;\n", Countable::class); - $namespace .= sprintf("use %s;\n", Throwable::class); $namespace .= "\n"; $namespace .= $this->trait($assert); @@ -200,6 +204,8 @@ private function assertion(ReflectionMethod $method, string $methodNameTemplate, $parameters = []; /** @psalm-var array $parametersDefaults */ $parametersDefaults = []; + /** @var array $parameterTypes */ + $parameterTypes = []; $parametersReflection = $method->getParameters(); foreach ($parametersReflection as $parameterReflection) { @@ -212,6 +218,18 @@ private function assertion(ReflectionMethod $method, string $methodNameTemplate, $parametersDefaults[$parameterReflection->name] = $defaultValue; } + + if ($parameterReflection->hasType()) { + if ($parameterReflection->name === 'value' && $typeTemplate) { + $parameterTypes[$parameterReflection->name] = match ($typeTemplate) { + '%s|null' => $this->reduceParameterType($parameterReflection->getType()), + 'iterable<%s>' => 'iterable', + 'iterable<%s|null>' => '?iterable', + }; + } else { + $parameterTypes[$parameterReflection->name] = $this->reduceParameterType($parameterReflection->getType()); + } + } } if (in_array($newMethodName, $this->skipMethods, true)) { @@ -278,7 +296,7 @@ private function assertion(ReflectionMethod $method, string $methodNameTemplate, $phpdocLines[] = trim($comment); } - if ('deprecated' === $key || 'psalm-pure' === $key) { + if ('deprecated' === $key || 'psalm-pure' === $key || 'psalm-assert' === $key || 'see' === $key) { $phpdocLines[] = ''; } } @@ -296,7 +314,24 @@ private function assertion(ReflectionMethod $method, string $methodNameTemplate, $phpdocLinesDeduplicatedEmptyLines[] = $line; } - return $this->staticMethod($newMethodName, $parameters, $parametersDefaults, $phpdocLinesDeduplicatedEmptyLines, $indent, $body); + return $this->staticMethod($newMethodName, $parameters, $parameterTypes, $parametersDefaults, $phpdocLinesDeduplicatedEmptyLines, $indent, $body); + } + + private function reduceParameterType(ReflectionType $type): string + { + if ($type instanceof ReflectionIntersectionType) { + return implode('&', array_map([$this, 'reduceParameterType'], $type->getTypes())); + } + + if ($type instanceof ReflectionUnionType) { + return implode('|', array_map([$this, 'reduceParameterType'], $type->getTypes())); + } + + if ($type->getName() === 'mixed') { + return $type->getName(); + } + + return ($type->allowsNull() ? '?' : '') . $type->getName(); } private function applyTypeTemplate(string $type, string $typeTemplate): string @@ -353,26 +388,27 @@ private function findLongestTypeAndName(array $values): array } /** - * @psalm-param list $parameters - * @psalm-param array $defaultValues - * @psalm-param list $phpdocLines + * @psalm-param list $parameters + * @psalm-param array $defaults + * @psalm-param list $phpdocLines * @psalm-param callable(string,string):string $body * - * @param string $name - * @param string[] $parameters - * @param string[] $defaultValues - * @param array $phpdocLines - * @param int $indent - * @param callable $body + * @param string $name + * @param string[] $parameters + * @param array $types + * @param string[] $defaults + * @param array $phpdocLines + * @param int $indent + * @param callable $body * * @return string */ - private function staticMethod(string $name, array $parameters, array $defaultValues, array $phpdocLines, int $indent, callable $body): string + private function staticMethod(string $name, array $parameters, array $types, array $defaults, array $phpdocLines, int $indent, callable $body): string { $indentation = str_repeat(' ', $indent); $staticFunction = $this->phpdoc($phpdocLines, $indent)."\n"; - $staticFunction .= $indentation.'public static function '.$name.$this->functionParameters($parameters, $defaultValues)."\n" + $staticFunction .= $indentation.'public static function '.$name.$this->functionParameters($parameters, $types, $defaults).": void\n" .$indentation."{\n"; $firstParameter = '$'.array_shift($parameters); @@ -387,15 +423,16 @@ private function staticMethod(string $name, array $parameters, array $defaultVal } /** - * @psalm-param list $parameters - * @psalm-param array $defaultValues + * @psalm-param list $parameters + * @psalm-param array $defaults * - * @param string[] $parameters - * @param string[] $defaultValues + * @param string[] $parameters + * @param array $types + * @param string[] $defaults * * @return string */ - private function functionParameters(array $parameters, array $defaultValues): string + private function functionParameters(array $parameters, array $types, array $defaults): string { $result = ''; @@ -404,10 +441,12 @@ private function functionParameters(array $parameters, array $defaultValues): st $result .= ', '; } - $result .= '$'.$parameter; + Assert::keyExists($types, $parameter); + + $result .= $types[$parameter].' $'.$parameter; - if (array_key_exists($parameter, $defaultValues)) { - $defaultValue = null === $defaultValues[$parameter] ? 'null' : var_export($defaultValues[$parameter], true); + if (array_key_exists($parameter, $defaults)) { + $defaultValue = null === $defaults[$parameter] ? 'null' : var_export($defaults[$parameter], true); $result .= ' = '.$defaultValue; } diff --git a/composer.json b/composer.json index dcaf97a2..1ef4ab30 100644 --- a/composer.json +++ b/composer.json @@ -11,10 +11,14 @@ { "name": "Bernhard Schussek", "email": "bschussek@gmail.com" + }, + { + "name": "Woody Gilk", + "email": "woody.gilk@gmail.com" } ], "require": { - "php": "^7.2 || ^8.0", + "php": "^8.2", "ext-ctype": "*", "ext-date": "*", "ext-filter": "*" @@ -37,7 +41,7 @@ }, "extra": { "branch-alias": { - "dev-master": "1.10-dev" + "dev-feature/2-0": "2.0-dev" } }, "scripts": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 78aca73b..94bbe4a3 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,22 +1,17 @@ - - - - ./tests/ - ./tests/static-analysis - - - - - - - ./src/ - - + xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" + bootstrap="vendor/autoload.php" + colors="true"> + + + ./tests/ + ./tests/static-analysis + + + + + ./src/ + + diff --git a/src/Assert.php b/src/Assert.php index 5bf5cfa6..98241292 100644 --- a/src/Assert.php +++ b/src/Assert.php @@ -1,5 +1,7 @@ 0)) { static::reportInvalidArgument(\sprintf( @@ -145,14 +118,9 @@ public static function positiveInteger($value, $message = '') * * @psalm-assert float $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function float($value, $message = '') + public static function float(mixed $value, string $message = ''): void { if (!\is_float($value)) { static::reportInvalidArgument(\sprintf( @@ -167,14 +135,9 @@ public static function float($value, $message = '') * * @psalm-assert numeric $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function numeric($value, $message = '') + public static function numeric(mixed $value, string $message = ''): void { if (!\is_numeric($value)) { static::reportInvalidArgument(\sprintf( @@ -189,14 +152,9 @@ public static function numeric($value, $message = '') * * @psalm-assert positive-int|0 $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function natural($value, $message = '') + public static function natural(mixed $value, string $message = ''): void { if (!\is_int($value) || $value < 0) { static::reportInvalidArgument(\sprintf( @@ -211,14 +169,9 @@ public static function natural($value, $message = '') * * @psalm-assert bool $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function boolean($value, $message = '') + public static function boolean(mixed $value, string $message = ''): void { if (!\is_bool($value)) { static::reportInvalidArgument(\sprintf( @@ -233,14 +186,9 @@ public static function boolean($value, $message = '') * * @psalm-assert scalar $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function scalar($value, $message = '') + public static function scalar(mixed $value, string $message = ''): void { if (!\is_scalar($value)) { static::reportInvalidArgument(\sprintf( @@ -255,14 +203,9 @@ public static function scalar($value, $message = '') * * @psalm-assert object $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function object($value, $message = '') + public static function object(mixed $value, string $message = ''): void { if (!\is_object($value)) { static::reportInvalidArgument(\sprintf( @@ -277,15 +220,11 @@ public static function object($value, $message = '') * * @psalm-assert resource $value * - * @param mixed $value - * @param string|null $type type of resource this should be. @see https://www.php.net/manual/en/function.get-resource-type.php - * @param string $message - * - * @return void + * @see https://www.php.net/manual/en/function.get-resource-type.php * * @throws InvalidArgumentException */ - public static function resource($value, $type = null, $message = '') + public static function resource(mixed $value, ?string $type = null, string $message = ''): void { if (!\is_resource($value)) { static::reportInvalidArgument(\sprintf( @@ -309,14 +248,9 @@ public static function resource($value, $type = null, $message = '') * * @psalm-assert callable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function isCallable($value, $message = '') + public static function isCallable(mixed $value, string $message = ''): void { if (!\is_callable($value)) { static::reportInvalidArgument(\sprintf( @@ -331,14 +265,9 @@ public static function isCallable($value, $message = '') * * @psalm-assert array $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function isArray($value, $message = '') + public static function isArray(mixed $value, string $message = ''): void { if (!\is_array($value)) { static::reportInvalidArgument(\sprintf( @@ -348,51 +277,14 @@ public static function isArray($value, $message = '') } } - /** - * @psalm-pure - * - * @psalm-assert iterable $value - * - * @deprecated use "isIterable" or "isInstanceOf" instead - * - * @param mixed $value - * @param string $message - * - * @return void - * - * @throws InvalidArgumentException - */ - public static function isTraversable($value, $message = '') - { - @\trigger_error( - \sprintf( - 'The "%s" assertion is deprecated. You should stop using it, as it will soon be removed in 2.0 version. Use "isIterable" or "isInstanceOf" instead.', - __METHOD__ - ), - \E_USER_DEPRECATED - ); - - if (!\is_array($value) && !($value instanceof Traversable)) { - static::reportInvalidArgument(\sprintf( - $message ?: 'Expected a traversable. Got: %s', - static::typeToString($value) - )); - } - } - /** * @psalm-pure * * @psalm-assert array|ArrayAccess $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function isArrayAccessible($value, $message = '') + public static function isArrayAccessible(mixed $value, string $message = ''): void { if (!\is_array($value) && !($value instanceof ArrayAccess)) { static::reportInvalidArgument(\sprintf( @@ -407,21 +299,11 @@ public static function isArrayAccessible($value, $message = '') * * @psalm-assert countable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function isCountable($value, $message = '') + public static function isCountable(mixed $value, string $message = ''): void { - if ( - !\is_array($value) - && !($value instanceof Countable) - && !($value instanceof ResourceBundle) - && !($value instanceof SimpleXMLElement) - ) { + if (!\is_array($value) && !($value instanceof Countable)) { static::reportInvalidArgument(\sprintf( $message ?: 'Expected a countable. Got: %s', static::typeToString($value) @@ -434,14 +316,9 @@ public static function isCountable($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function isIterable($value, $message = '') + public static function isIterable(mixed $value, string $message = ''): void { if (!\is_array($value) && !($value instanceof Traversable)) { static::reportInvalidArgument(\sprintf( @@ -456,20 +333,17 @@ public static function isIterable($value, $message = '') * * @psalm-template ExpectedType of object * - * @psalm-param class-string $class - * * @psalm-assert ExpectedType $value * - * @param mixed $value * @param string|object $class - * @param string $message - * - * @return void + * @psalm-param class-string $class * * @throws InvalidArgumentException */ - public static function isInstanceOf($value, $class, $message = '') + public static function isInstanceOf(mixed $value, mixed $class, string $message = ''): void { + static::string($class, 'Expected class as a string. Got: %s'); + if (!($value instanceof $class)) { static::reportInvalidArgument(\sprintf( $message ?: 'Expected an instance of %2$s. Got: %s', @@ -484,20 +358,16 @@ public static function isInstanceOf($value, $class, $message = '') * * @psalm-template ExpectedType of object * - * @psalm-param class-string $class - * * @psalm-assert !ExpectedType $value * - * @param mixed $value - * @param string|object $class - * @param string $message - * - * @return void + * @psalm-param class-string $class * * @throws InvalidArgumentException */ - public static function notInstanceOf($value, $class, $message = '') + public static function notInstanceOf(mixed $value, mixed $class, string $message = ''): void { + static::string($class, 'Expected class as a string. Got: %s'); + if ($value instanceof $class) { static::reportInvalidArgument(\sprintf( $message ?: 'Expected an instance other than %2$s. Got: %s', @@ -510,18 +380,15 @@ public static function notInstanceOf($value, $class, $message = '') /** * @psalm-pure * - * @psalm-param array $classes - * - * @param mixed $value * @param array $classes - * @param string $message - * - * @return void + * @psalm-param array $classes * * @throws InvalidArgumentException */ - public static function isInstanceOfAny($value, array $classes, $message = '') + public static function isInstanceOfAny(mixed $value, mixed $classes, string $message = ''): void { + static::isIterable($classes); + foreach ($classes as $class) { if ($value instanceof $class) { return; @@ -531,7 +398,7 @@ public static function isInstanceOfAny($value, array $classes, $message = '') static::reportInvalidArgument(\sprintf( $message ?: 'Expected an instance of any of %2$s. Got: %s', static::typeToString($value), - \implode(', ', \array_map(array(static::class, 'valueToString'), $classes)) + \implode(', ', \array_map(array(static::class, 'valueToString'), \iterator_to_array($classes))) )); } @@ -540,19 +407,14 @@ public static function isInstanceOfAny($value, array $classes, $message = '') * * @psalm-template ExpectedType of object * - * @psalm-param class-string $class - * * @psalm-assert ExpectedType|class-string $value * * @param object|string $value - * @param string $class - * @param string $message - * - * @return void + * @psalm-param class-string $class * * @throws InvalidArgumentException */ - public static function isAOf($value, $class, $message = '') + public static function isAOf(mixed $value, mixed $class, string $message = ''): void { static::string($class, 'Expected class as a string. Got: %s'); @@ -570,20 +432,15 @@ public static function isAOf($value, $class, $message = '') * * @psalm-template UnexpectedType of object * - * @psalm-param class-string $class - * * @psalm-assert !UnexpectedType $value * @psalm-assert !class-string $value * * @param object|string $value - * @param string $class - * @param string $message - * - * @return void + * @psalm-param class-string $class * * @throws InvalidArgumentException */ - public static function isNotA($value, $class, $message = '') + public static function isNotA(mixed $value, mixed $class, string $message = ''): void { static::string($class, 'Expected class as a string. Got: %s'); @@ -599,18 +456,16 @@ public static function isNotA($value, $class, $message = '') /** * @psalm-pure * - * @psalm-param array $classes - * * @param object|string $value * @param string[] $classes - * @param string $message - * - * @return void + * @psalm-param array $classes * * @throws InvalidArgumentException */ - public static function isAnyOf($value, array $classes, $message = '') + public static function isAnyOf(mixed $value, mixed $classes, string $message = ''): void { + static::isIterable($classes); + foreach ($classes as $class) { static::string($class, 'Expected class as a string. Got: %s'); @@ -622,7 +477,7 @@ public static function isAnyOf($value, array $classes, $message = '') static::reportInvalidArgument(sprintf( $message ?: 'Expected an instance of any of this classes or any of those classes among their parents "%2$s". Got: %s', static::valueToString($value), - \implode(', ', $classes) + \implode(', ', \iterator_to_array($classes)) )); } @@ -631,14 +486,9 @@ public static function isAnyOf($value, array $classes, $message = '') * * @psalm-assert empty $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function isEmpty($value, $message = '') + public static function isEmpty(mixed $value, string $message = ''): void { if (!empty($value)) { static::reportInvalidArgument(\sprintf( @@ -653,14 +503,9 @@ public static function isEmpty($value, $message = '') * * @psalm-assert !empty $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function notEmpty($value, $message = '') + public static function notEmpty(mixed $value, string $message = ''): void { if (empty($value)) { static::reportInvalidArgument(\sprintf( @@ -675,14 +520,9 @@ public static function notEmpty($value, $message = '') * * @psalm-assert null $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function null($value, $message = '') + public static function null(mixed $value, string $message = ''): void { if (null !== $value) { static::reportInvalidArgument(\sprintf( @@ -697,14 +537,9 @@ public static function null($value, $message = '') * * @psalm-assert !null $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function notNull($value, $message = '') + public static function notNull(mixed $value, string $message = ''): void { if (null === $value) { static::reportInvalidArgument( @@ -718,14 +553,9 @@ public static function notNull($value, $message = '') * * @psalm-assert true $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function true($value, $message = '') + public static function true(mixed $value, string $message = ''): void { if (true !== $value) { static::reportInvalidArgument(\sprintf( @@ -740,14 +570,9 @@ public static function true($value, $message = '') * * @psalm-assert false $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function false($value, $message = '') + public static function false(mixed $value, string $message = ''): void { if (false !== $value) { static::reportInvalidArgument(\sprintf( @@ -762,14 +587,9 @@ public static function false($value, $message = '') * * @psalm-assert !false $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function notFalse($value, $message = '') + public static function notFalse(mixed $value, string $message = ''): void { if (false === $value) { static::reportInvalidArgument( @@ -779,14 +599,11 @@ public static function notFalse($value, $message = '') } /** - * @param mixed $value - * @param string $message - * - * @return void + * @psalm-pure * * @throws InvalidArgumentException */ - public static function ip($value, $message = '') + public static function ip(mixed $value, string $message = ''): void { if (false === \filter_var($value, \FILTER_VALIDATE_IP)) { static::reportInvalidArgument(\sprintf( @@ -797,14 +614,11 @@ public static function ip($value, $message = '') } /** - * @param mixed $value - * @param string $message - * - * @return void + * @psalm-pure * * @throws InvalidArgumentException */ - public static function ipv4($value, $message = '') + public static function ipv4(mixed $value, string $message = ''): void { if (false === \filter_var($value, \FILTER_VALIDATE_IP, \FILTER_FLAG_IPV4)) { static::reportInvalidArgument(\sprintf( @@ -815,14 +629,11 @@ public static function ipv4($value, $message = '') } /** - * @param mixed $value - * @param string $message - * - * @return void + * @psalm-pure * * @throws InvalidArgumentException */ - public static function ipv6($value, $message = '') + public static function ipv6(mixed $value, string $message = ''): void { if (false === \filter_var($value, \FILTER_VALIDATE_IP, \FILTER_FLAG_IPV6)) { static::reportInvalidArgument(\sprintf( @@ -833,14 +644,9 @@ public static function ipv6($value, $message = '') } /** - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function email($value, $message = '') + public static function email(mixed $value, string $message = ''): void { if (false === \filter_var($value, FILTER_VALIDATE_EMAIL)) { static::reportInvalidArgument(\sprintf( @@ -851,17 +657,14 @@ public static function email($value, $message = '') } /** - * Does non strict comparisons on the items, so ['3', 3] will not pass the assertion. - * - * @param array $values - * @param string $message - * - * @return void + * Does non-strict comparisons on the items, so ['3', 3] will not pass the assertion. * * @throws InvalidArgumentException */ - public static function uniqueValues(array $values, $message = '') + public static function uniqueValues(mixed $values, string $message = ''): void { + static::isArray($values); + $allValues = \count($values); $uniqueValues = \count(\array_unique($values)); @@ -877,15 +680,9 @@ public static function uniqueValues(array $values, $message = '') } /** - * @param mixed $value - * @param mixed $expect - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function eq($value, $expect, $message = '') + public static function eq(mixed $value, mixed $expect, string $message = ''): void { if ($expect != $value) { static::reportInvalidArgument(\sprintf( @@ -897,15 +694,9 @@ public static function eq($value, $expect, $message = '') } /** - * @param mixed $value - * @param mixed $expect - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function notEq($value, $expect, $message = '') + public static function notEq(mixed $value, mixed $expect, string $message = ''): void { if ($expect == $value) { static::reportInvalidArgument(\sprintf( @@ -918,15 +709,9 @@ public static function notEq($value, $expect, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $expect - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function same($value, $expect, $message = '') + public static function same(mixed $value, mixed $expect, string $message = ''): void { if ($expect !== $value) { static::reportInvalidArgument(\sprintf( @@ -940,15 +725,9 @@ public static function same($value, $expect, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $expect - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function notSame($value, $expect, $message = '') + public static function notSame(mixed $value, mixed $expect, string $message = ''): void { if ($expect === $value) { static::reportInvalidArgument(\sprintf( @@ -961,15 +740,9 @@ public static function notSame($value, $expect, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $limit - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function greaterThan($value, $limit, $message = '') + public static function greaterThan(mixed $value, mixed $limit, string $message = ''): void { if ($value <= $limit) { static::reportInvalidArgument(\sprintf( @@ -983,15 +756,9 @@ public static function greaterThan($value, $limit, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $limit - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function greaterThanEq($value, $limit, $message = '') + public static function greaterThanEq(mixed $value, mixed $limit, string $message = ''): void { if ($value < $limit) { static::reportInvalidArgument(\sprintf( @@ -1005,15 +772,9 @@ public static function greaterThanEq($value, $limit, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $limit - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function lessThan($value, $limit, $message = '') + public static function lessThan(mixed $value, mixed $limit, string $message = ''): void { if ($value >= $limit) { static::reportInvalidArgument(\sprintf( @@ -1027,15 +788,9 @@ public static function lessThan($value, $limit, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $limit - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function lessThanEq($value, $limit, $message = '') + public static function lessThanEq(mixed $value, mixed $limit, string $message = ''): void { if ($value > $limit) { static::reportInvalidArgument(\sprintf( @@ -1051,16 +806,9 @@ public static function lessThanEq($value, $limit, $message = '') * * @psalm-pure * - * @param mixed $value - * @param mixed $min - * @param mixed $max - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function range($value, $min, $max, $message = '') + public static function range(mixed $value, mixed $min, mixed $max, string $message = ''): void { if ($value < $min || $value > $max) { static::reportInvalidArgument(\sprintf( @@ -1077,15 +825,9 @@ public static function range($value, $min, $max, $message = '') * * @psalm-pure * - * @param mixed $value - * @param array $values - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function oneOf($value, array $values, $message = '') + public static function oneOf(mixed $value, mixed $values, string $message = ''): void { static::inArray($value, $values, $message); } @@ -1095,16 +837,12 @@ public static function oneOf($value, array $values, $message = '') * * @psalm-pure * - * @param mixed $value - * @param array $values - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function inArray($value, array $values, $message = '') + public static function inArray(mixed $value, mixed $values, string $message = ''): void { + static::isArray($values); + if (!\in_array($value, $values, true)) { static::reportInvalidArgument(\sprintf( $message ?: 'Expected one of: %2$s. Got: %s', @@ -1115,19 +853,51 @@ public static function inArray($value, array $values, $message = '') } /** + * A more human-readable alias of Assert::notInArray(). + * * @psalm-pure * - * @param string $value - * @param string $subString - * @param string $message + * @throws InvalidArgumentException + */ + public static function notOneOf(mixed $value, mixed $values, string $message = ''): void + { + static::notInArray($value, $values, $message); + } + + /** + * Check that a value is not present + * + * Does strict comparison, so Assert::notInArray(3, [1, 2, 3]) will not pass + * the assertion, but Assert::notInArray(3, ['3']) will. * - * @return void + * @psalm-pure + * + * @throws InvalidArgumentException + */ + public static function notInArray(mixed $value, mixed $values, string $message = ''): void + { + static::isArray($values); + + if (\in_array($value, $values, true)) { + static::reportInvalidArgument(\sprintf( + $message ?: '%2$s was not expected to contain a value. Got: %s', + static::valueToString($value), + \implode(', ', \array_map(array('static', 'valueToString'), $values)) + )); + } + } + + /** + * @psalm-pure * * @throws InvalidArgumentException */ - public static function contains($value, $subString, $message = '') + public static function contains(mixed $value, mixed $subString, string $message = ''): void { - if (false === \strpos($value, $subString)) { + static::string($value); + static::string($subString); + + if (!\str_contains($value, $subString)) { static::reportInvalidArgument(\sprintf( $message ?: 'Expected a value to contain %2$s. Got: %s', static::valueToString($value), @@ -1139,17 +909,14 @@ public static function contains($value, $subString, $message = '') /** * @psalm-pure * - * @param string $value - * @param string $subString - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function notContains($value, $subString, $message = '') + public static function notContains(mixed $value, mixed $subString, string $message = ''): void { - if (false !== \strpos($value, $subString)) { + static::string($value); + static::string($subString); + + if (\str_contains($value, $subString)) { static::reportInvalidArgument(\sprintf( $message ?: '%2$s was not expected to be contained in a value. Got: %s', static::valueToString($value), @@ -1161,15 +928,12 @@ public static function notContains($value, $subString, $message = '') /** * @psalm-pure * - * @param string $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function notWhitespaceOnly($value, $message = '') + public static function notWhitespaceOnly(mixed $value, string $message = ''): void { + static::string($value); + if (\preg_match('/^\s*$/', $value)) { static::reportInvalidArgument(\sprintf( $message ?: 'Expected a non-whitespace string. Got: %s', @@ -1181,17 +945,14 @@ public static function notWhitespaceOnly($value, $message = '') /** * @psalm-pure * - * @param string $value - * @param string $prefix - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function startsWith($value, $prefix, $message = '') + public static function startsWith(mixed $value, mixed $prefix, string $message = ''): void { - if (0 !== \strpos($value, $prefix)) { + static::string($value); + static::string($prefix); + + if (!\str_starts_with($value, $prefix)) { static::reportInvalidArgument(\sprintf( $message ?: 'Expected a value to start with %2$s. Got: %s', static::valueToString($value), @@ -1203,17 +964,14 @@ public static function startsWith($value, $prefix, $message = '') /** * @psalm-pure * - * @param string $value - * @param string $prefix - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function notStartsWith($value, $prefix, $message = '') + public static function notStartsWith(mixed $value, mixed $prefix, string $message = ''): void { - if (0 === \strpos($value, $prefix)) { + static::string($value); + static::string($prefix); + + if (\str_starts_with($value, $prefix)) { static::reportInvalidArgument(\sprintf( $message ?: 'Expected a value not to start with %2$s. Got: %s', static::valueToString($value), @@ -1225,21 +983,16 @@ public static function notStartsWith($value, $prefix, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function startsWithLetter($value, $message = '') + public static function startsWithLetter(mixed $value, string $message = ''): void { static::string($value); $valid = isset($value[0]); if ($valid) { - $locale = \setlocale(LC_CTYPE, 0); + $locale = \setlocale(LC_CTYPE, '0'); \setlocale(LC_CTYPE, 'C'); $valid = \ctype_alpha($value[0]); \setlocale(LC_CTYPE, $locale); @@ -1256,17 +1009,14 @@ public static function startsWithLetter($value, $message = '') /** * @psalm-pure * - * @param string $value - * @param string $suffix - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function endsWith($value, $suffix, $message = '') + public static function endsWith(mixed $value, mixed $suffix, string $message = ''): void { - if ($suffix !== \substr($value, -\strlen($suffix))) { + static::string($value); + static::string($suffix); + + if (!\str_ends_with($value, $suffix)) { static::reportInvalidArgument(\sprintf( $message ?: 'Expected a value to end with %2$s. Got: %s', static::valueToString($value), @@ -1278,17 +1028,14 @@ public static function endsWith($value, $suffix, $message = '') /** * @psalm-pure * - * @param string $value - * @param string $suffix - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function notEndsWith($value, $suffix, $message = '') + public static function notEndsWith(mixed $value, mixed $suffix, string $message = ''): void { - if ($suffix === \substr($value, -\strlen($suffix))) { + static::string($value); + static::string($suffix); + + if (\str_ends_with($value, $suffix)) { static::reportInvalidArgument(\sprintf( $message ?: 'Expected a value not to end with %2$s. Got: %s', static::valueToString($value), @@ -1300,16 +1047,13 @@ public static function notEndsWith($value, $suffix, $message = '') /** * @psalm-pure * - * @param string $value - * @param string $pattern - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function regex($value, $pattern, $message = '') + public static function regex(mixed $value, mixed $pattern, string $message = ''): void { + static::string($value); + static::string($pattern); + if (!\preg_match($pattern, $value)) { static::reportInvalidArgument(\sprintf( $message ?: 'The value %s does not match the expected pattern.', @@ -1321,16 +1065,13 @@ public static function regex($value, $pattern, $message = '') /** * @psalm-pure * - * @param string $value - * @param string $pattern - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function notRegex($value, $pattern, $message = '') + public static function notRegex(mixed $value, mixed $pattern, string $message = ''): void { + static::string($value); + static::string($pattern); + if (\preg_match($pattern, $value, $matches, PREG_OFFSET_CAPTURE)) { static::reportInvalidArgument(\sprintf( $message ?: 'The value %s matches the pattern %s (at offset %d).', @@ -1344,14 +1085,9 @@ public static function notRegex($value, $pattern, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function unicodeLetters($value, $message = '') + public static function unicodeLetters(mixed $value, string $message = ''): void { static::string($value); @@ -1366,18 +1102,13 @@ public static function unicodeLetters($value, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function alpha($value, $message = '') + public static function alpha(mixed $value, string $message = ''): void { static::string($value); - $locale = \setlocale(LC_CTYPE, 0); + $locale = \setlocale(LC_CTYPE, '0'); \setlocale(LC_CTYPE, 'C'); $valid = !\ctype_alpha($value); \setlocale(LC_CTYPE, $locale); @@ -1393,18 +1124,13 @@ public static function alpha($value, $message = '') /** * @psalm-pure * - * @param string $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function digits($value, $message = '') + public static function digits(mixed $value, string $message = ''): void { static::string($value); - $locale = \setlocale(LC_CTYPE, 0); + $locale = \setlocale(LC_CTYPE, '0'); \setlocale(LC_CTYPE, 'C'); $valid = !\ctype_digit($value); \setlocale(LC_CTYPE, $locale); @@ -1420,18 +1146,13 @@ public static function digits($value, $message = '') /** * @psalm-pure * - * @param string $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function alnum($value, $message = '') + public static function alnum(mixed $value, string $message = ''): void { static::string($value); - $locale = \setlocale(LC_CTYPE, 0); + $locale = \setlocale(LC_CTYPE, '0'); \setlocale(LC_CTYPE, 'C'); $valid = !\ctype_alnum($value); \setlocale(LC_CTYPE, $locale); @@ -1449,18 +1170,13 @@ public static function alnum($value, $message = '') * * @psalm-assert lowercase-string $value * - * @param string $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function lower($value, $message = '') + public static function lower(mixed $value, string $message = ''): void { static::string($value); - $locale = \setlocale(LC_CTYPE, 0); + $locale = \setlocale(LC_CTYPE, '0'); \setlocale(LC_CTYPE, 'C'); $valid = !\ctype_lower($value); \setlocale(LC_CTYPE, $locale); @@ -1478,18 +1194,13 @@ public static function lower($value, $message = '') * * @psalm-assert !lowercase-string $value * - * @param string $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function upper($value, $message = '') + public static function upper(mixed $value, string $message = ''): void { static::string($value); - $locale = \setlocale(LC_CTYPE, 0); + $locale = \setlocale(LC_CTYPE, '0'); \setlocale(LC_CTYPE, 'C'); $valid = !\ctype_upper($value); \setlocale(LC_CTYPE, $locale); @@ -1505,16 +1216,13 @@ public static function upper($value, $message = '') /** * @psalm-pure * - * @param string $value - * @param int $length - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function length($value, $length, $message = '') + public static function length(mixed $value, mixed $length, string $message = ''): void { + static::string($value); + static::integerish($length); + if ($length !== static::strlen($value)) { static::reportInvalidArgument(\sprintf( $message ?: 'Expected a value to contain %2$s characters. Got: %s', @@ -1529,16 +1237,13 @@ public static function length($value, $length, $message = '') * * @psalm-pure * - * @param string $value - * @param int|float $min - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function minLength($value, $min, $message = '') + public static function minLength(mixed $value, mixed $min, string $message = ''): void { + static::string($value); + static::integerish($min); + if (static::strlen($value) < $min) { static::reportInvalidArgument(\sprintf( $message ?: 'Expected a value to contain at least %2$s characters. Got: %s', @@ -1553,16 +1258,13 @@ public static function minLength($value, $min, $message = '') * * @psalm-pure * - * @param string $value - * @param int|float $max - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function maxLength($value, $max, $message = '') + public static function maxLength(mixed $value, mixed $max, string $message = ''): void { + static::string($value); + static::integerish($max); + if (static::strlen($value) > $max) { static::reportInvalidArgument(\sprintf( $message ?: 'Expected a value to contain at most %2$s characters. Got: %s', @@ -1573,21 +1275,18 @@ public static function maxLength($value, $max, $message = '') } /** - * Inclusive , so Assert::lengthBetween('asd', 3, 5); passes the assertion. + * Inclusive, so Assert::lengthBetween('asd', 3, 5); passes the assertion. * * @psalm-pure * - * @param string $value - * @param int|float $min - * @param int|float $max - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function lengthBetween($value, $min, $max, $message = '') + public static function lengthBetween(mixed $value, mixed $min, mixed $max, string $message = ''): void { + static::string($value); + static::integerish($min); + static::integerish($max); + $length = static::strlen($value); if ($length < $min || $length > $max) { @@ -1603,15 +1302,12 @@ public static function lengthBetween($value, $min, $max, $message = '') /** * Will also pass if $value is a directory, use Assert::file() instead if you need to be sure it is a file. * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function fileExists($value, $message = '') + public static function fileExists(mixed $value, string $message = ''): void { + static::string($value); + if (!\file_exists($value)) { static::reportInvalidArgument(\sprintf( $message ?: 'The path %s does not exist.', @@ -1621,15 +1317,12 @@ public static function fileExists($value, $message = '') } /** - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function file($value, $message = '') + public static function file(mixed $value, string $message = ''): void { + static::string($value); + if (!\is_file($value)) { static::reportInvalidArgument(\sprintf( $message ?: 'The path %s is not a file.', @@ -1639,15 +1332,12 @@ public static function file($value, $message = '') } /** - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function directory($value, $message = '') + public static function directory(mixed $value, string $message = ''): void { + static::string($value); + if (!\is_dir($value)) { static::reportInvalidArgument(\sprintf( $message ?: 'The path %s is not a directory.', @@ -1657,15 +1347,12 @@ public static function directory($value, $message = '') } /** - * @param string $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function readable($value, $message = '') + public static function readable(mixed $value, string $message = ''): void { + static::string($value); + if (!\is_readable($value)) { static::reportInvalidArgument(\sprintf( $message ?: 'The path %s is not readable.', @@ -1675,15 +1362,12 @@ public static function readable($value, $message = '') } /** - * @param string $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function writable($value, $message = '') + public static function writable(mixed $value, string $message = ''): void { + static::string($value); + if (!\is_writable($value)) { static::reportInvalidArgument(\sprintf( $message ?: 'The path %s is not writable.', @@ -1695,15 +1379,12 @@ public static function writable($value, $message = '') /** * @psalm-assert class-string $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function classExists($value, $message = '') + public static function classExists(mixed $value, string $message = ''): void { + static::string($value); + if (!\class_exists($value)) { static::reportInvalidArgument(\sprintf( $message ?: 'Expected an existing class name. Got: %s', @@ -1717,20 +1398,18 @@ public static function classExists($value, $message = '') * * @psalm-template ExpectedType of object * - * @psalm-param class-string $class - * * @psalm-assert class-string|ExpectedType $value * - * @param mixed $value * @param string|object $class - * @param string $message - * - * @return void + * @psalm-param class-string $class * * @throws InvalidArgumentException */ - public static function subclassOf($value, $class, $message = '') + public static function subclassOf(mixed $value, mixed $class, string $message = ''): void { + static::string($value); + static::string($class); + if (!\is_subclass_of($value, $class)) { static::reportInvalidArgument(\sprintf( $message ?: 'Expected a sub-class of %2$s. Got: %s', @@ -1743,15 +1422,12 @@ public static function subclassOf($value, $class, $message = '') /** * @psalm-assert class-string $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function interfaceExists($value, $message = '') + public static function interfaceExists(mixed $value, string $message = ''): void { + static::string($value); + if (!\interface_exists($value)) { static::reportInvalidArgument(\sprintf( $message ?: 'Expected an existing interface name. got %s', @@ -1765,21 +1441,15 @@ public static function interfaceExists($value, $message = '') * * @psalm-template ExpectedType of object * - * @psalm-param class-string $interface - * * @psalm-assert class-string|ExpectedType $value * - * @param mixed $value - * @param mixed $interface - * @param string $message - * - * @return void + * @psalm-param class-string $interface * * @throws InvalidArgumentException */ - public static function implementsInterface($value, $interface, $message = '') + public static function implementsInterface(mixed $value, mixed $interface, string $message = ''): void { - if (!\in_array($interface, \class_implements($value))) { + if (!\in_array($interface, \class_implements($value), true)) { static::reportInvalidArgument(\sprintf( $message ?: 'Expected an implementation of %2$s. Got: %s', static::valueToString($value), @@ -1791,19 +1461,14 @@ public static function implementsInterface($value, $interface, $message = '') /** * @psalm-pure * - * @psalm-param class-string|object $classOrObject - * * @param string|object $classOrObject - * @param mixed $property - * @param string $message - * - * @return void + * @psalm-param class-string|object $classOrObject * * @throws InvalidArgumentException */ - public static function propertyExists($classOrObject, $property, $message = '') + public static function propertyExists(mixed $classOrObject, mixed $property, string $message = ''): void { - if (!\property_exists($classOrObject, $property)) { + if (!(\is_string($classOrObject) || \is_object($classOrObject)) || !\property_exists($classOrObject, $property)) { static::reportInvalidArgument(\sprintf( $message ?: 'Expected the property %s to exist.', static::valueToString($property) @@ -1814,19 +1479,14 @@ public static function propertyExists($classOrObject, $property, $message = '') /** * @psalm-pure * - * @psalm-param class-string|object $classOrObject - * * @param string|object $classOrObject - * @param mixed $property - * @param string $message - * - * @return void + * @psalm-param class-string|object $classOrObject * * @throws InvalidArgumentException */ - public static function propertyNotExists($classOrObject, $property, $message = '') + public static function propertyNotExists(mixed $classOrObject, mixed $property, string $message = ''): void { - if (\property_exists($classOrObject, $property)) { + if (!(\is_string($classOrObject) || \is_object($classOrObject)) || \property_exists($classOrObject, $property)) { static::reportInvalidArgument(\sprintf( $message ?: 'Expected the property %s to not exist.', static::valueToString($property) @@ -1837,17 +1497,12 @@ public static function propertyNotExists($classOrObject, $property, $message = ' /** * @psalm-pure * - * @psalm-param class-string|object $classOrObject - * * @param string|object $classOrObject - * @param mixed $method - * @param string $message - * - * @return void + * @psalm-param class-string|object $classOrObject * * @throws InvalidArgumentException */ - public static function methodExists($classOrObject, $method, $message = '') + public static function methodExists(mixed $classOrObject, mixed $method, string $message = ''): void { if (!(\is_string($classOrObject) || \is_object($classOrObject)) || !\method_exists($classOrObject, $method)) { static::reportInvalidArgument(\sprintf( @@ -1860,17 +1515,12 @@ public static function methodExists($classOrObject, $method, $message = '') /** * @psalm-pure * - * @psalm-param class-string|object $classOrObject - * * @param string|object $classOrObject - * @param mixed $method - * @param string $message - * - * @return void + * @psalm-param class-string|object $classOrObject * * @throws InvalidArgumentException */ - public static function methodNotExists($classOrObject, $method, $message = '') + public static function methodNotExists(mixed $classOrObject, mixed $method, string $message = ''): void { if ((\is_string($classOrObject) || \is_object($classOrObject)) && \method_exists($classOrObject, $method)) { static::reportInvalidArgument(\sprintf( @@ -1883,17 +1533,13 @@ public static function methodNotExists($classOrObject, $method, $message = '') /** * @psalm-pure * - * @param array $array * @param string|int $key - * @param string $message - * - * @return void * * @throws InvalidArgumentException */ - public static function keyExists($array, $key, $message = '') + public static function keyExists(mixed $array, string|int $key, string $message = ''): void { - if (!(isset($array[$key]) || \array_key_exists($key, $array))) { + if (!\is_array($array) || !(isset($array[$key]) || \array_key_exists($key, $array))) { static::reportInvalidArgument(\sprintf( $message ?: 'Expected the key %s to exist.', static::valueToString($key) @@ -1904,17 +1550,13 @@ public static function keyExists($array, $key, $message = '') /** * @psalm-pure * - * @param array $array * @param string|int $key - * @param string $message - * - * @return void * * @throws InvalidArgumentException */ - public static function keyNotExists($array, $key, $message = '') + public static function keyNotExists(mixed $array, string|int $key, string $message = ''): void { - if (isset($array[$key]) || \array_key_exists($key, $array)) { + if (!\is_array($array) || isset($array[$key]) || \array_key_exists($key, $array)) { static::reportInvalidArgument(\sprintf( $message ?: 'Expected the key %s to not exist.', static::valueToString($key) @@ -1929,14 +1571,9 @@ public static function keyNotExists($array, $key, $message = '') * * @psalm-assert array-key $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function validArrayKey($value, $message = '') + public static function validArrayKey(mixed $value, string $message = ''): void { if (!(\is_int($value) || \is_string($value))) { static::reportInvalidArgument(\sprintf( @@ -1947,18 +1584,13 @@ public static function validArrayKey($value, $message = '') } /** - * Does not check if $array is countable, this can generate a warning on php versions after 7.2. - * - * @param Countable|array $array - * @param int $number - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function count($array, $number, $message = '') + public static function count(mixed $array, mixed $number, string $message = ''): void { + static::isCountable($array); + static::integerish($number); + static::eq( \count($array), $number, @@ -1971,18 +1603,13 @@ public static function count($array, $number, $message = '') } /** - * Does not check if $array is countable, this can generate a warning on php versions after 7.2. - * - * @param Countable|array $array - * @param int|float $min - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function minCount($array, $min, $message = '') + public static function minCount(mixed $array, mixed $min, string $message = ''): void { + static::isCountable($array); + static::integerish($min); + if (\count($array) < $min) { static::reportInvalidArgument(\sprintf( $message ?: 'Expected an array to contain at least %2$d elements. Got: %d', @@ -1993,18 +1620,13 @@ public static function minCount($array, $min, $message = '') } /** - * Does not check if $array is countable, this can generate a warning on php versions after 7.2. - * - * @param Countable|array $array - * @param int|float $max - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function maxCount($array, $max, $message = '') + public static function maxCount(mixed $array, mixed $max, string $message = ''): void { + static::isCountable($array); + static::integerish($max); + if (\count($array) > $max) { static::reportInvalidArgument(\sprintf( $message ?: 'Expected an array to contain at most %2$d elements. Got: %d', @@ -2015,19 +1637,14 @@ public static function maxCount($array, $max, $message = '') } /** - * Does not check if $array is countable, this can generate a warning on php versions after 7.2. - * - * @param Countable|array $array - * @param int|float $min - * @param int|float $max - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function countBetween($array, $min, $max, $message = '') + public static function countBetween(mixed $array, mixed $min, mixed $max, string $message = ''): void { + static::isCountable($array); + static::integerish($min); + static::integerish($max); + $count = \count($array); if ($count < $min || $count > $max) { @@ -2045,37 +1662,11 @@ public static function countBetween($array, $min, $max, $message = '') * * @psalm-assert list $array * - * @param mixed $array - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function isList($array, $message = '') + public static function isList(mixed $array, string $message = ''): void { - if (!\is_array($array)) { - static::reportInvalidArgument( - $message ?: 'Expected list - non-associative array.' - ); - } - - if (\function_exists('array_is_list')) { - if (!\array_is_list($array)) { - static::reportInvalidArgument( - $message ?: 'Expected list - non-associative array.' - ); - } - - return; - } - - if (array() === $array) { - return; - } - - $keys = array_keys($array); - if (array_keys($keys) !== $keys) { + if (!\is_array($array) || !\array_is_list($array)) { static::reportInvalidArgument( $message ?: 'Expected list - non-associative array.' ); @@ -2087,14 +1678,9 @@ public static function isList($array, $message = '') * * @psalm-assert non-empty-list $array * - * @param mixed $array - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function isNonEmptyList($array, $message = '') + public static function isNonEmptyList(mixed $array, string $message = ''): void { static::isList($array, $message); static::notEmpty($array, $message); @@ -2105,23 +1691,15 @@ public static function isNonEmptyList($array, $message = '') * * @psalm-template T * - * @psalm-param mixed|array $array - * * @psalm-assert array $array * - * @param mixed $array - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function isMap($array, $message = '') + public static function isMap(mixed $array, string $message = ''): void { - if ( - !\is_array($array) - || \array_keys($array) !== \array_filter(\array_keys($array), '\is_string') - ) { + static::isArray($array, $message); + + if (\count($array) > 0 && \array_is_list($array)) { static::reportInvalidArgument( $message ?: 'Expected map - associative array with string keys.' ); @@ -2133,19 +1711,14 @@ public static function isMap($array, $message = '') * * @psalm-template T * - * @psalm-param mixed|array $array - * * @psalm-assert array $array * @psalm-assert !empty $array * - * @param mixed $array - * @param string $message - * - * @return void + * @psalm-param mixed|array $array * * @throws InvalidArgumentException */ - public static function isNonEmptyMap($array, $message = '') + public static function isNonEmptyMap(mixed $array, string $message = ''): void { static::isMap($array, $message); static::notEmpty($array, $message); @@ -2154,15 +1727,12 @@ public static function isNonEmptyMap($array, $message = '') /** * @psalm-pure * - * @param string $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function uuid($value, $message = '') + public static function uuid(mixed $value, string $message = ''): void { + static::string($value, $message); + $value = \str_replace(array('urn:', 'uuid:', '{', '}'), '', $value); // The nil UUID is special form of UUID that is specified to have all @@ -2182,27 +1752,17 @@ public static function uuid($value, $message = '') /** * @psalm-param class-string $class * - * @param Closure $expression - * @param string $class - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function throws(Closure $expression, $class = 'Exception', $message = '') + public static function throws(mixed $expression, string $class = Exception::class, string $message = ''): void { static::string($class); + static::isCallable($expression); $actual = 'none'; try { $expression(); - } catch (Exception $e) { - $actual = \get_class($e); - if ($e instanceof $class) { - return; - } } catch (Throwable $e) { $actual = \get_class($e); if ($e instanceof $class) { @@ -2218,43 +1778,9 @@ public static function throws(Closure $expression, $class = 'Exception', $messag } /** - * @throws BadMethodCallException - */ - public static function __callStatic($name, $arguments) - { - if ('nullOr' === \substr($name, 0, 6)) { - if (null !== $arguments[0]) { - $method = \lcfirst(\substr($name, 6)); - \call_user_func_array(array(static::class, $method), $arguments); - } - - return; - } - - if ('all' === \substr($name, 0, 3)) { - static::isIterable($arguments[0]); - - $method = \lcfirst(\substr($name, 3)); - $args = $arguments; - - foreach ($arguments[0] as $entry) { - $args[0] = $entry; - - \call_user_func_array(array(static::class, $method), $args); - } - - return; - } - - throw new BadMethodCallException('No such method: '.$name); - } - - /** - * @param mixed $value - * - * @return string + * @psalm-pure */ - protected static function valueToString($value) + protected static function valueToString(mixed $value): string { if (null === $value) { return 'null'; @@ -2281,7 +1807,7 @@ protected static function valueToString($value) return \get_class($value).': '.self::valueToString($value->format('c')); } - if (\function_exists('enum_exists') && \enum_exists(\get_class($value))) { + if (\enum_exists(\get_class($value))) { return \get_class($value).'::'.$value->name; } @@ -2301,17 +1827,13 @@ protected static function valueToString($value) /** * @psalm-pure - * - * @param mixed $value - * - * @return string */ - protected static function typeToString($value) + protected static function typeToString(mixed $value): string { return \is_object($value) ? \get_class($value) : \gettype($value); } - protected static function strlen($value) + protected static function strlen(string $value): int { if (!\function_exists('mb_detect_encoding')) { return \strlen($value); @@ -2325,15 +1847,11 @@ protected static function strlen($value) } /** - * @param string $message + * @psalm-pure this method is not supposed to perform side effects * * @throws InvalidArgumentException - * - * @psalm-pure this method is not supposed to perform side-effects - * - * @psalm-return never */ - protected static function reportInvalidArgument($message) + protected static function reportInvalidArgument(string $message): never { throw new InvalidArgumentException($message); } diff --git a/src/InvalidArgumentException.php b/src/InvalidArgumentException.php index 9d95a58c..fa2b2237 100644 --- a/src/InvalidArgumentException.php +++ b/src/InvalidArgumentException.php @@ -1,5 +1,6 @@ $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allString($value, $message = '') + public static function allString(iterable $value, string $message = ''): void { static::isIterable($value); @@ -56,14 +46,9 @@ public static function allString($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrString($value, $message = '') + public static function allNullOrString(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -77,14 +62,9 @@ public static function allNullOrString($value, $message = '') * * @psalm-assert non-empty-string|null $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrStringNotEmpty($value, $message = '') + public static function nullOrStringNotEmpty(mixed $value, string $message = ''): void { null === $value || static::stringNotEmpty($value, $message); } @@ -94,14 +74,9 @@ public static function nullOrStringNotEmpty($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allStringNotEmpty($value, $message = '') + public static function allStringNotEmpty(iterable $value, string $message = ''): void { static::isIterable($value); @@ -115,14 +90,9 @@ public static function allStringNotEmpty($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrStringNotEmpty($value, $message = '') + public static function allNullOrStringNotEmpty(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -136,14 +106,9 @@ public static function allNullOrStringNotEmpty($value, $message = '') * * @psalm-assert int|null $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrInteger($value, $message = '') + public static function nullOrInteger(mixed $value, string $message = ''): void { null === $value || static::integer($value, $message); } @@ -153,14 +118,9 @@ public static function nullOrInteger($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allInteger($value, $message = '') + public static function allInteger(iterable $value, string $message = ''): void { static::isIterable($value); @@ -174,14 +134,9 @@ public static function allInteger($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrInteger($value, $message = '') + public static function allNullOrInteger(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -195,14 +150,9 @@ public static function allNullOrInteger($value, $message = '') * * @psalm-assert numeric|null $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrIntegerish($value, $message = '') + public static function nullOrIntegerish(mixed $value, string $message = ''): void { null === $value || static::integerish($value, $message); } @@ -212,14 +162,9 @@ public static function nullOrIntegerish($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allIntegerish($value, $message = '') + public static function allIntegerish(iterable $value, string $message = ''): void { static::isIterable($value); @@ -233,14 +178,9 @@ public static function allIntegerish($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrIntegerish($value, $message = '') + public static function allNullOrIntegerish(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -254,14 +194,9 @@ public static function allNullOrIntegerish($value, $message = '') * * @psalm-assert positive-int|null $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrPositiveInteger($value, $message = '') + public static function nullOrPositiveInteger(mixed $value, string $message = ''): void { null === $value || static::positiveInteger($value, $message); } @@ -271,14 +206,9 @@ public static function nullOrPositiveInteger($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allPositiveInteger($value, $message = '') + public static function allPositiveInteger(iterable $value, string $message = ''): void { static::isIterable($value); @@ -292,14 +222,9 @@ public static function allPositiveInteger($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrPositiveInteger($value, $message = '') + public static function allNullOrPositiveInteger(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -313,14 +238,9 @@ public static function allNullOrPositiveInteger($value, $message = '') * * @psalm-assert float|null $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrFloat($value, $message = '') + public static function nullOrFloat(mixed $value, string $message = ''): void { null === $value || static::float($value, $message); } @@ -330,14 +250,9 @@ public static function nullOrFloat($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allFloat($value, $message = '') + public static function allFloat(iterable $value, string $message = ''): void { static::isIterable($value); @@ -351,14 +266,9 @@ public static function allFloat($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrFloat($value, $message = '') + public static function allNullOrFloat(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -372,14 +282,9 @@ public static function allNullOrFloat($value, $message = '') * * @psalm-assert numeric|null $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrNumeric($value, $message = '') + public static function nullOrNumeric(mixed $value, string $message = ''): void { null === $value || static::numeric($value, $message); } @@ -389,14 +294,9 @@ public static function nullOrNumeric($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNumeric($value, $message = '') + public static function allNumeric(iterable $value, string $message = ''): void { static::isIterable($value); @@ -410,14 +310,9 @@ public static function allNumeric($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrNumeric($value, $message = '') + public static function allNullOrNumeric(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -431,14 +326,9 @@ public static function allNullOrNumeric($value, $message = '') * * @psalm-assert positive-int|0|null $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrNatural($value, $message = '') + public static function nullOrNatural(mixed $value, string $message = ''): void { null === $value || static::natural($value, $message); } @@ -448,14 +338,9 @@ public static function nullOrNatural($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNatural($value, $message = '') + public static function allNatural(iterable $value, string $message = ''): void { static::isIterable($value); @@ -469,14 +354,9 @@ public static function allNatural($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrNatural($value, $message = '') + public static function allNullOrNatural(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -490,14 +370,9 @@ public static function allNullOrNatural($value, $message = '') * * @psalm-assert bool|null $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrBoolean($value, $message = '') + public static function nullOrBoolean(mixed $value, string $message = ''): void { null === $value || static::boolean($value, $message); } @@ -507,14 +382,9 @@ public static function nullOrBoolean($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allBoolean($value, $message = '') + public static function allBoolean(iterable $value, string $message = ''): void { static::isIterable($value); @@ -528,14 +398,9 @@ public static function allBoolean($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrBoolean($value, $message = '') + public static function allNullOrBoolean(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -549,14 +414,9 @@ public static function allNullOrBoolean($value, $message = '') * * @psalm-assert scalar|null $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrScalar($value, $message = '') + public static function nullOrScalar(mixed $value, string $message = ''): void { null === $value || static::scalar($value, $message); } @@ -566,14 +426,9 @@ public static function nullOrScalar($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allScalar($value, $message = '') + public static function allScalar(iterable $value, string $message = ''): void { static::isIterable($value); @@ -587,14 +442,9 @@ public static function allScalar($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrScalar($value, $message = '') + public static function allNullOrScalar(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -608,14 +458,9 @@ public static function allNullOrScalar($value, $message = '') * * @psalm-assert object|null $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrObject($value, $message = '') + public static function nullOrObject(mixed $value, string $message = ''): void { null === $value || static::object($value, $message); } @@ -625,14 +470,9 @@ public static function nullOrObject($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allObject($value, $message = '') + public static function allObject(iterable $value, string $message = ''): void { static::isIterable($value); @@ -646,14 +486,9 @@ public static function allObject($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrObject($value, $message = '') + public static function allNullOrObject(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -667,15 +502,11 @@ public static function allNullOrObject($value, $message = '') * * @psalm-assert resource|null $value * - * @param mixed $value - * @param string|null $type type of resource this should be. @see https://www.php.net/manual/en/function.get-resource-type.php - * @param string $message - * - * @return void + * @see https://www.php.net/manual/en/function.get-resource-type.php * * @throws InvalidArgumentException */ - public static function nullOrResource($value, $type = null, $message = '') + public static function nullOrResource(mixed $value, ?string $type = null, string $message = ''): void { null === $value || static::resource($value, $type, $message); } @@ -685,15 +516,11 @@ public static function nullOrResource($value, $type = null, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string|null $type type of resource this should be. @see https://www.php.net/manual/en/function.get-resource-type.php - * @param string $message - * - * @return void + * @see https://www.php.net/manual/en/function.get-resource-type.php * * @throws InvalidArgumentException */ - public static function allResource($value, $type = null, $message = '') + public static function allResource(iterable $value, ?string $type = null, string $message = ''): void { static::isIterable($value); @@ -707,15 +534,11 @@ public static function allResource($value, $type = null, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string|null $type type of resource this should be. @see https://www.php.net/manual/en/function.get-resource-type.php - * @param string $message - * - * @return void + * @see https://www.php.net/manual/en/function.get-resource-type.php * * @throws InvalidArgumentException */ - public static function allNullOrResource($value, $type = null, $message = '') + public static function allNullOrResource(?iterable $value, ?string $type = null, string $message = ''): void { static::isIterable($value); @@ -729,14 +552,9 @@ public static function allNullOrResource($value, $type = null, $message = '') * * @psalm-assert callable|null $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrIsCallable($value, $message = '') + public static function nullOrIsCallable(mixed $value, string $message = ''): void { null === $value || static::isCallable($value, $message); } @@ -746,14 +564,9 @@ public static function nullOrIsCallable($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allIsCallable($value, $message = '') + public static function allIsCallable(iterable $value, string $message = ''): void { static::isIterable($value); @@ -767,14 +580,9 @@ public static function allIsCallable($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrIsCallable($value, $message = '') + public static function allNullOrIsCallable(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -788,14 +596,9 @@ public static function allNullOrIsCallable($value, $message = '') * * @psalm-assert array|null $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrIsArray($value, $message = '') + public static function nullOrIsArray(mixed $value, string $message = ''): void { null === $value || static::isArray($value, $message); } @@ -805,14 +608,9 @@ public static function nullOrIsArray($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allIsArray($value, $message = '') + public static function allIsArray(iterable $value, string $message = ''): void { static::isIterable($value); @@ -826,14 +624,9 @@ public static function allIsArray($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrIsArray($value, $message = '') + public static function allNullOrIsArray(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -842,84 +635,14 @@ public static function allNullOrIsArray($value, $message = '') } } - /** - * @psalm-pure - * - * @psalm-assert iterable|null $value - * - * @deprecated use "isIterable" or "isInstanceOf" instead - * - * @param mixed $value - * @param string $message - * - * @return void - * - * @throws InvalidArgumentException - */ - public static function nullOrIsTraversable($value, $message = '') - { - null === $value || static::isTraversable($value, $message); - } - - /** - * @psalm-pure - * - * @psalm-assert iterable $value - * - * @deprecated use "isIterable" or "isInstanceOf" instead - * - * @param mixed $value - * @param string $message - * - * @return void - * - * @throws InvalidArgumentException - */ - public static function allIsTraversable($value, $message = '') - { - static::isIterable($value); - - foreach ($value as $entry) { - static::isTraversable($entry, $message); - } - } - - /** - * @psalm-pure - * - * @psalm-assert iterable $value - * - * @deprecated use "isIterable" or "isInstanceOf" instead - * - * @param mixed $value - * @param string $message - * - * @return void - * - * @throws InvalidArgumentException - */ - public static function allNullOrIsTraversable($value, $message = '') - { - static::isIterable($value); - - foreach ($value as $entry) { - null === $entry || static::isTraversable($entry, $message); - } - } - /** * @psalm-pure * * @psalm-assert array|ArrayAccess|null $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrIsArrayAccessible($value, $message = '') + public static function nullOrIsArrayAccessible(mixed $value, string $message = ''): void { null === $value || static::isArrayAccessible($value, $message); } @@ -929,14 +652,9 @@ public static function nullOrIsArrayAccessible($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allIsArrayAccessible($value, $message = '') + public static function allIsArrayAccessible(iterable $value, string $message = ''): void { static::isIterable($value); @@ -950,14 +668,9 @@ public static function allIsArrayAccessible($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrIsArrayAccessible($value, $message = '') + public static function allNullOrIsArrayAccessible(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -971,14 +684,9 @@ public static function allNullOrIsArrayAccessible($value, $message = '') * * @psalm-assert countable|null $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrIsCountable($value, $message = '') + public static function nullOrIsCountable(mixed $value, string $message = ''): void { null === $value || static::isCountable($value, $message); } @@ -988,14 +696,9 @@ public static function nullOrIsCountable($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allIsCountable($value, $message = '') + public static function allIsCountable(iterable $value, string $message = ''): void { static::isIterable($value); @@ -1009,14 +712,9 @@ public static function allIsCountable($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrIsCountable($value, $message = '') + public static function allNullOrIsCountable(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -1030,14 +728,9 @@ public static function allNullOrIsCountable($value, $message = '') * * @psalm-assert iterable|null $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrIsIterable($value, $message = '') + public static function nullOrIsIterable(mixed $value, string $message = ''): void { null === $value || static::isIterable($value, $message); } @@ -1047,14 +740,9 @@ public static function nullOrIsIterable($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allIsIterable($value, $message = '') + public static function allIsIterable(iterable $value, string $message = ''): void { static::isIterable($value); @@ -1068,14 +756,9 @@ public static function allIsIterable($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrIsIterable($value, $message = '') + public static function allNullOrIsIterable(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -1088,18 +771,15 @@ public static function allNullOrIsIterable($value, $message = '') * @psalm-pure * * @psalm-template ExpectedType of object - * @psalm-param class-string $class * @psalm-assert ExpectedType|null $value * - * @param mixed $value * @param string|object $class - * @param string $message * - * @return void + * @psalm-param class-string $class * * @throws InvalidArgumentException */ - public static function nullOrIsInstanceOf($value, $class, $message = '') + public static function nullOrIsInstanceOf(mixed $value, mixed $class, string $message = ''): void { null === $value || static::isInstanceOf($value, $class, $message); } @@ -1108,18 +788,15 @@ public static function nullOrIsInstanceOf($value, $class, $message = '') * @psalm-pure * * @psalm-template ExpectedType of object - * @psalm-param class-string $class * @psalm-assert iterable $value * - * @param mixed $value * @param string|object $class - * @param string $message * - * @return void + * @psalm-param class-string $class * * @throws InvalidArgumentException */ - public static function allIsInstanceOf($value, $class, $message = '') + public static function allIsInstanceOf(iterable $value, mixed $class, string $message = ''): void { static::isIterable($value); @@ -1132,18 +809,15 @@ public static function allIsInstanceOf($value, $class, $message = '') * @psalm-pure * * @psalm-template ExpectedType of object - * @psalm-param class-string $class * @psalm-assert iterable $value * - * @param mixed $value * @param string|object $class - * @param string $message * - * @return void + * @psalm-param class-string $class * * @throws InvalidArgumentException */ - public static function allNullOrIsInstanceOf($value, $class, $message = '') + public static function allNullOrIsInstanceOf(?iterable $value, mixed $class, string $message = ''): void { static::isIterable($value); @@ -1157,16 +831,9 @@ public static function allNullOrIsInstanceOf($value, $class, $message = '') * * @psalm-template ExpectedType of object * @psalm-param class-string $class - * - * @param mixed $value - * @param string|object $class - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrNotInstanceOf($value, $class, $message = '') + public static function nullOrNotInstanceOf(mixed $value, mixed $class, string $message = ''): void { null === $value || static::notInstanceOf($value, $class, $message); } @@ -1176,16 +843,9 @@ public static function nullOrNotInstanceOf($value, $class, $message = '') * * @psalm-template ExpectedType of object * @psalm-param class-string $class - * - * @param mixed $value - * @param string|object $class - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNotInstanceOf($value, $class, $message = '') + public static function allNotInstanceOf(iterable $value, mixed $class, string $message = ''): void { static::isIterable($value); @@ -1198,18 +858,12 @@ public static function allNotInstanceOf($value, $class, $message = '') * @psalm-pure * * @psalm-template ExpectedType of object - * @psalm-param class-string $class * @psalm-assert iterable $value * - * @param mixed $value - * @param string|object $class - * @param string $message - * - * @return void - * + * @psalm-param class-string $class * @throws InvalidArgumentException */ - public static function allNullOrNotInstanceOf($value, $class, $message = '') + public static function allNullOrNotInstanceOf(?iterable $value, mixed $class, string $message = ''): void { static::isIterable($value); @@ -1221,17 +875,13 @@ public static function allNullOrNotInstanceOf($value, $class, $message = '') /** * @psalm-pure * - * @psalm-param array $classes - * - * @param mixed $value * @param array $classes - * @param string $message * - * @return void + * @psalm-param array $classes * * @throws InvalidArgumentException */ - public static function nullOrIsInstanceOfAny($value, $classes, $message = '') + public static function nullOrIsInstanceOfAny(mixed $value, mixed $classes, string $message = ''): void { null === $value || static::isInstanceOfAny($value, $classes, $message); } @@ -1239,17 +889,13 @@ public static function nullOrIsInstanceOfAny($value, $classes, $message = '') /** * @psalm-pure * - * @psalm-param array $classes - * - * @param mixed $value * @param array $classes - * @param string $message * - * @return void + * @psalm-param array $classes * * @throws InvalidArgumentException */ - public static function allIsInstanceOfAny($value, $classes, $message = '') + public static function allIsInstanceOfAny(iterable $value, mixed $classes, string $message = ''): void { static::isIterable($value); @@ -1261,17 +907,13 @@ public static function allIsInstanceOfAny($value, $classes, $message = '') /** * @psalm-pure * - * @psalm-param array $classes - * - * @param mixed $value * @param array $classes - * @param string $message * - * @return void + * @psalm-param array $classes * * @throws InvalidArgumentException */ - public static function allNullOrIsInstanceOfAny($value, $classes, $message = '') + public static function allNullOrIsInstanceOfAny(?iterable $value, mixed $classes, string $message = ''): void { static::isIterable($value); @@ -1284,18 +926,15 @@ public static function allNullOrIsInstanceOfAny($value, $classes, $message = '') * @psalm-pure * * @psalm-template ExpectedType of object - * @psalm-param class-string $class * @psalm-assert ExpectedType|class-string|null $value * * @param object|string|null $value - * @param string $class - * @param string $message * - * @return void + * @psalm-param class-string $class * * @throws InvalidArgumentException */ - public static function nullOrIsAOf($value, $class, $message = '') + public static function nullOrIsAOf(mixed $value, mixed $class, string $message = ''): void { null === $value || static::isAOf($value, $class, $message); } @@ -1304,18 +943,15 @@ public static function nullOrIsAOf($value, $class, $message = '') * @psalm-pure * * @psalm-template ExpectedType of object - * @psalm-param class-string $class * @psalm-assert iterable> $value * * @param iterable $value - * @param string $class - * @param string $message * - * @return void + * @psalm-param class-string $class * * @throws InvalidArgumentException */ - public static function allIsAOf($value, $class, $message = '') + public static function allIsAOf(iterable $value, mixed $class, string $message = ''): void { static::isIterable($value); @@ -1328,18 +964,15 @@ public static function allIsAOf($value, $class, $message = '') * @psalm-pure * * @psalm-template ExpectedType of object - * @psalm-param class-string $class * @psalm-assert iterable|null> $value * * @param iterable $value - * @param string $class - * @param string $message * - * @return void + * @psalm-param class-string $class * * @throws InvalidArgumentException */ - public static function allNullOrIsAOf($value, $class, $message = '') + public static function allNullOrIsAOf(?iterable $value, mixed $class, string $message = ''): void { static::isIterable($value); @@ -1352,17 +985,14 @@ public static function allNullOrIsAOf($value, $class, $message = '') * @psalm-pure * * @psalm-template UnexpectedType of object - * @psalm-param class-string $class * * @param object|string|null $value - * @param string $class - * @param string $message * - * @return void + * @psalm-param class-string $class * * @throws InvalidArgumentException */ - public static function nullOrIsNotA($value, $class, $message = '') + public static function nullOrIsNotA(mixed $value, mixed $class, string $message = ''): void { null === $value || static::isNotA($value, $class, $message); } @@ -1371,17 +1001,14 @@ public static function nullOrIsNotA($value, $class, $message = '') * @psalm-pure * * @psalm-template UnexpectedType of object - * @psalm-param class-string $class * * @param iterable $value - * @param string $class - * @param string $message * - * @return void + * @psalm-param class-string $class * * @throws InvalidArgumentException */ - public static function allIsNotA($value, $class, $message = '') + public static function allIsNotA(iterable $value, mixed $class, string $message = ''): void { static::isIterable($value); @@ -1394,19 +1021,16 @@ public static function allIsNotA($value, $class, $message = '') * @psalm-pure * * @psalm-template UnexpectedType of object - * @psalm-param class-string $class * @psalm-assert iterable $value * @psalm-assert iterable|null> $value * * @param iterable $value - * @param string $class - * @param string $message * - * @return void + * @psalm-param class-string $class * * @throws InvalidArgumentException */ - public static function allNullOrIsNotA($value, $class, $message = '') + public static function allNullOrIsNotA(?iterable $value, mixed $class, string $message = ''): void { static::isIterable($value); @@ -1418,17 +1042,14 @@ public static function allNullOrIsNotA($value, $class, $message = '') /** * @psalm-pure * - * @psalm-param array $classes - * * @param object|string|null $value * @param string[] $classes - * @param string $message * - * @return void + * @psalm-param array $classes * * @throws InvalidArgumentException */ - public static function nullOrIsAnyOf($value, $classes, $message = '') + public static function nullOrIsAnyOf(mixed $value, mixed $classes, string $message = ''): void { null === $value || static::isAnyOf($value, $classes, $message); } @@ -1436,17 +1057,14 @@ public static function nullOrIsAnyOf($value, $classes, $message = '') /** * @psalm-pure * - * @psalm-param array $classes - * * @param iterable $value * @param string[] $classes - * @param string $message * - * @return void + * @psalm-param array $classes * * @throws InvalidArgumentException */ - public static function allIsAnyOf($value, $classes, $message = '') + public static function allIsAnyOf(iterable $value, mixed $classes, string $message = ''): void { static::isIterable($value); @@ -1458,17 +1076,14 @@ public static function allIsAnyOf($value, $classes, $message = '') /** * @psalm-pure * - * @psalm-param array $classes - * * @param iterable $value * @param string[] $classes - * @param string $message * - * @return void + * @psalm-param array $classes * * @throws InvalidArgumentException */ - public static function allNullOrIsAnyOf($value, $classes, $message = '') + public static function allNullOrIsAnyOf(?iterable $value, mixed $classes, string $message = ''): void { static::isIterable($value); @@ -1482,14 +1097,9 @@ public static function allNullOrIsAnyOf($value, $classes, $message = '') * * @psalm-assert empty $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrIsEmpty($value, $message = '') + public static function nullOrIsEmpty(mixed $value, string $message = ''): void { null === $value || static::isEmpty($value, $message); } @@ -1499,14 +1109,9 @@ public static function nullOrIsEmpty($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allIsEmpty($value, $message = '') + public static function allIsEmpty(iterable $value, string $message = ''): void { static::isIterable($value); @@ -1520,14 +1125,9 @@ public static function allIsEmpty($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrIsEmpty($value, $message = '') + public static function allNullOrIsEmpty(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -1539,14 +1139,9 @@ public static function allNullOrIsEmpty($value, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrNotEmpty($value, $message = '') + public static function nullOrNotEmpty(mixed $value, string $message = ''): void { null === $value || static::notEmpty($value, $message); } @@ -1554,14 +1149,9 @@ public static function nullOrNotEmpty($value, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNotEmpty($value, $message = '') + public static function allNotEmpty(iterable $value, string $message = ''): void { static::isIterable($value); @@ -1575,14 +1165,9 @@ public static function allNotEmpty($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrNotEmpty($value, $message = '') + public static function allNullOrNotEmpty(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -1596,14 +1181,9 @@ public static function allNullOrNotEmpty($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNull($value, $message = '') + public static function allNull(iterable $value, string $message = ''): void { static::isIterable($value); @@ -1615,14 +1195,9 @@ public static function allNull($value, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNotNull($value, $message = '') + public static function allNotNull(iterable $value, string $message = ''): void { static::isIterable($value); @@ -1636,14 +1211,9 @@ public static function allNotNull($value, $message = '') * * @psalm-assert true|null $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrTrue($value, $message = '') + public static function nullOrTrue(mixed $value, string $message = ''): void { null === $value || static::true($value, $message); } @@ -1653,14 +1223,9 @@ public static function nullOrTrue($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allTrue($value, $message = '') + public static function allTrue(iterable $value, string $message = ''): void { static::isIterable($value); @@ -1674,14 +1239,9 @@ public static function allTrue($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrTrue($value, $message = '') + public static function allNullOrTrue(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -1695,14 +1255,9 @@ public static function allNullOrTrue($value, $message = '') * * @psalm-assert false|null $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrFalse($value, $message = '') + public static function nullOrFalse(mixed $value, string $message = ''): void { null === $value || static::false($value, $message); } @@ -1712,14 +1267,9 @@ public static function nullOrFalse($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allFalse($value, $message = '') + public static function allFalse(iterable $value, string $message = ''): void { static::isIterable($value); @@ -1733,14 +1283,9 @@ public static function allFalse($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrFalse($value, $message = '') + public static function allNullOrFalse(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -1752,14 +1297,9 @@ public static function allNullOrFalse($value, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrNotFalse($value, $message = '') + public static function nullOrNotFalse(mixed $value, string $message = ''): void { null === $value || static::notFalse($value, $message); } @@ -1767,14 +1307,9 @@ public static function nullOrNotFalse($value, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNotFalse($value, $message = '') + public static function allNotFalse(iterable $value, string $message = ''): void { static::isIterable($value); @@ -1788,14 +1323,9 @@ public static function allNotFalse($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrNotFalse($value, $message = '') + public static function allNullOrNotFalse(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -1805,27 +1335,21 @@ public static function allNullOrNotFalse($value, $message = '') } /** - * @param mixed $value - * @param string $message - * - * @return void + * @psalm-pure * * @throws InvalidArgumentException */ - public static function nullOrIp($value, $message = '') + public static function nullOrIp(mixed $value, string $message = ''): void { null === $value || static::ip($value, $message); } /** - * @param mixed $value - * @param string $message - * - * @return void + * @psalm-pure * * @throws InvalidArgumentException */ - public static function allIp($value, $message = '') + public static function allIp(iterable $value, string $message = ''): void { static::isIterable($value); @@ -1835,14 +1359,11 @@ public static function allIp($value, $message = '') } /** - * @param mixed $value - * @param string $message - * - * @return void + * @psalm-pure * * @throws InvalidArgumentException */ - public static function allNullOrIp($value, $message = '') + public static function allNullOrIp(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -1852,27 +1373,21 @@ public static function allNullOrIp($value, $message = '') } /** - * @param mixed $value - * @param string $message - * - * @return void + * @psalm-pure * * @throws InvalidArgumentException */ - public static function nullOrIpv4($value, $message = '') + public static function nullOrIpv4(mixed $value, string $message = ''): void { null === $value || static::ipv4($value, $message); } /** - * @param mixed $value - * @param string $message - * - * @return void + * @psalm-pure * * @throws InvalidArgumentException */ - public static function allIpv4($value, $message = '') + public static function allIpv4(iterable $value, string $message = ''): void { static::isIterable($value); @@ -1882,14 +1397,11 @@ public static function allIpv4($value, $message = '') } /** - * @param mixed $value - * @param string $message - * - * @return void + * @psalm-pure * * @throws InvalidArgumentException */ - public static function allNullOrIpv4($value, $message = '') + public static function allNullOrIpv4(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -1899,27 +1411,21 @@ public static function allNullOrIpv4($value, $message = '') } /** - * @param mixed $value - * @param string $message - * - * @return void + * @psalm-pure * * @throws InvalidArgumentException */ - public static function nullOrIpv6($value, $message = '') + public static function nullOrIpv6(mixed $value, string $message = ''): void { null === $value || static::ipv6($value, $message); } /** - * @param mixed $value - * @param string $message - * - * @return void + * @psalm-pure * * @throws InvalidArgumentException */ - public static function allIpv6($value, $message = '') + public static function allIpv6(iterable $value, string $message = ''): void { static::isIterable($value); @@ -1929,14 +1435,11 @@ public static function allIpv6($value, $message = '') } /** - * @param mixed $value - * @param string $message - * - * @return void + * @psalm-pure * * @throws InvalidArgumentException */ - public static function allNullOrIpv6($value, $message = '') + public static function allNullOrIpv6(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -1946,27 +1449,17 @@ public static function allNullOrIpv6($value, $message = '') } /** - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrEmail($value, $message = '') + public static function nullOrEmail(mixed $value, string $message = ''): void { null === $value || static::email($value, $message); } /** - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allEmail($value, $message = '') + public static function allEmail(iterable $value, string $message = ''): void { static::isIterable($value); @@ -1976,14 +1469,9 @@ public static function allEmail($value, $message = '') } /** - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrEmail($value, $message = '') + public static function allNullOrEmail(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -1993,27 +1481,17 @@ public static function allNullOrEmail($value, $message = '') } /** - * @param array|null $values - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrUniqueValues($values, $message = '') + public static function nullOrUniqueValues(mixed $values, string $message = ''): void { null === $values || static::uniqueValues($values, $message); } /** - * @param iterable $values - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allUniqueValues($values, $message = '') + public static function allUniqueValues(mixed $values, string $message = ''): void { static::isIterable($values); @@ -2023,14 +1501,9 @@ public static function allUniqueValues($values, $message = '') } /** - * @param iterable $values - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrUniqueValues($values, $message = '') + public static function allNullOrUniqueValues(mixed $values, string $message = ''): void { static::isIterable($values); @@ -2040,29 +1513,17 @@ public static function allNullOrUniqueValues($values, $message = '') } /** - * @param mixed $value - * @param mixed $expect - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrEq($value, $expect, $message = '') + public static function nullOrEq(mixed $value, mixed $expect, string $message = ''): void { null === $value || static::eq($value, $expect, $message); } /** - * @param mixed $value - * @param mixed $expect - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allEq($value, $expect, $message = '') + public static function allEq(iterable $value, mixed $expect, string $message = ''): void { static::isIterable($value); @@ -2072,15 +1533,9 @@ public static function allEq($value, $expect, $message = '') } /** - * @param mixed $value - * @param mixed $expect - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrEq($value, $expect, $message = '') + public static function allNullOrEq(?iterable $value, mixed $expect, string $message = ''): void { static::isIterable($value); @@ -2090,29 +1545,17 @@ public static function allNullOrEq($value, $expect, $message = '') } /** - * @param mixed $value - * @param mixed $expect - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrNotEq($value, $expect, $message = '') + public static function nullOrNotEq(mixed $value, mixed $expect, string $message = ''): void { null === $value || static::notEq($value, $expect, $message); } /** - * @param mixed $value - * @param mixed $expect - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNotEq($value, $expect, $message = '') + public static function allNotEq(iterable $value, mixed $expect, string $message = ''): void { static::isIterable($value); @@ -2122,15 +1565,9 @@ public static function allNotEq($value, $expect, $message = '') } /** - * @param mixed $value - * @param mixed $expect - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrNotEq($value, $expect, $message = '') + public static function allNullOrNotEq(?iterable $value, mixed $expect, string $message = ''): void { static::isIterable($value); @@ -2142,15 +1579,9 @@ public static function allNullOrNotEq($value, $expect, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $expect - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrSame($value, $expect, $message = '') + public static function nullOrSame(mixed $value, mixed $expect, string $message = ''): void { null === $value || static::same($value, $expect, $message); } @@ -2158,15 +1589,9 @@ public static function nullOrSame($value, $expect, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $expect - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allSame($value, $expect, $message = '') + public static function allSame(iterable $value, mixed $expect, string $message = ''): void { static::isIterable($value); @@ -2178,15 +1603,9 @@ public static function allSame($value, $expect, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $expect - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrSame($value, $expect, $message = '') + public static function allNullOrSame(?iterable $value, mixed $expect, string $message = ''): void { static::isIterable($value); @@ -2198,15 +1617,9 @@ public static function allNullOrSame($value, $expect, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $expect - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrNotSame($value, $expect, $message = '') + public static function nullOrNotSame(mixed $value, mixed $expect, string $message = ''): void { null === $value || static::notSame($value, $expect, $message); } @@ -2214,15 +1627,9 @@ public static function nullOrNotSame($value, $expect, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $expect - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNotSame($value, $expect, $message = '') + public static function allNotSame(iterable $value, mixed $expect, string $message = ''): void { static::isIterable($value); @@ -2234,15 +1641,9 @@ public static function allNotSame($value, $expect, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $expect - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrNotSame($value, $expect, $message = '') + public static function allNullOrNotSame(?iterable $value, mixed $expect, string $message = ''): void { static::isIterable($value); @@ -2254,15 +1655,9 @@ public static function allNullOrNotSame($value, $expect, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $limit - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrGreaterThan($value, $limit, $message = '') + public static function nullOrGreaterThan(mixed $value, mixed $limit, string $message = ''): void { null === $value || static::greaterThan($value, $limit, $message); } @@ -2270,15 +1665,9 @@ public static function nullOrGreaterThan($value, $limit, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $limit - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allGreaterThan($value, $limit, $message = '') + public static function allGreaterThan(iterable $value, mixed $limit, string $message = ''): void { static::isIterable($value); @@ -2290,15 +1679,9 @@ public static function allGreaterThan($value, $limit, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $limit - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrGreaterThan($value, $limit, $message = '') + public static function allNullOrGreaterThan(?iterable $value, mixed $limit, string $message = ''): void { static::isIterable($value); @@ -2310,15 +1693,9 @@ public static function allNullOrGreaterThan($value, $limit, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $limit - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrGreaterThanEq($value, $limit, $message = '') + public static function nullOrGreaterThanEq(mixed $value, mixed $limit, string $message = ''): void { null === $value || static::greaterThanEq($value, $limit, $message); } @@ -2326,15 +1703,9 @@ public static function nullOrGreaterThanEq($value, $limit, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $limit - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allGreaterThanEq($value, $limit, $message = '') + public static function allGreaterThanEq(iterable $value, mixed $limit, string $message = ''): void { static::isIterable($value); @@ -2346,15 +1717,9 @@ public static function allGreaterThanEq($value, $limit, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $limit - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrGreaterThanEq($value, $limit, $message = '') + public static function allNullOrGreaterThanEq(?iterable $value, mixed $limit, string $message = ''): void { static::isIterable($value); @@ -2366,15 +1731,9 @@ public static function allNullOrGreaterThanEq($value, $limit, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $limit - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrLessThan($value, $limit, $message = '') + public static function nullOrLessThan(mixed $value, mixed $limit, string $message = ''): void { null === $value || static::lessThan($value, $limit, $message); } @@ -2382,15 +1741,9 @@ public static function nullOrLessThan($value, $limit, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $limit - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allLessThan($value, $limit, $message = '') + public static function allLessThan(iterable $value, mixed $limit, string $message = ''): void { static::isIterable($value); @@ -2402,15 +1755,9 @@ public static function allLessThan($value, $limit, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $limit - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrLessThan($value, $limit, $message = '') + public static function allNullOrLessThan(?iterable $value, mixed $limit, string $message = ''): void { static::isIterable($value); @@ -2422,15 +1769,9 @@ public static function allNullOrLessThan($value, $limit, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $limit - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrLessThanEq($value, $limit, $message = '') + public static function nullOrLessThanEq(mixed $value, mixed $limit, string $message = ''): void { null === $value || static::lessThanEq($value, $limit, $message); } @@ -2438,15 +1779,9 @@ public static function nullOrLessThanEq($value, $limit, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $limit - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allLessThanEq($value, $limit, $message = '') + public static function allLessThanEq(iterable $value, mixed $limit, string $message = ''): void { static::isIterable($value); @@ -2458,15 +1793,9 @@ public static function allLessThanEq($value, $limit, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $limit - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrLessThanEq($value, $limit, $message = '') + public static function allNullOrLessThanEq(?iterable $value, mixed $limit, string $message = ''): void { static::isIterable($value); @@ -2478,16 +1807,9 @@ public static function allNullOrLessThanEq($value, $limit, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $min - * @param mixed $max - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrRange($value, $min, $max, $message = '') + public static function nullOrRange(mixed $value, mixed $min, mixed $max, string $message = ''): void { null === $value || static::range($value, $min, $max, $message); } @@ -2495,16 +1817,9 @@ public static function nullOrRange($value, $min, $max, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $min - * @param mixed $max - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allRange($value, $min, $max, $message = '') + public static function allRange(iterable $value, mixed $min, mixed $max, string $message = ''): void { static::isIterable($value); @@ -2516,16 +1831,9 @@ public static function allRange($value, $min, $max, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param mixed $min - * @param mixed $max - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrRange($value, $min, $max, $message = '') + public static function allNullOrRange(?iterable $value, mixed $min, mixed $max, string $message = ''): void { static::isIterable($value); @@ -2537,15 +1845,9 @@ public static function allNullOrRange($value, $min, $max, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param array $values - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrOneOf($value, $values, $message = '') + public static function nullOrOneOf(mixed $value, mixed $values, string $message = ''): void { null === $value || static::oneOf($value, $values, $message); } @@ -2553,15 +1855,9 @@ public static function nullOrOneOf($value, $values, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param array $values - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allOneOf($value, $values, $message = '') + public static function allOneOf(iterable $value, mixed $values, string $message = ''): void { static::isIterable($value); @@ -2573,15 +1869,9 @@ public static function allOneOf($value, $values, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param array $values - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrOneOf($value, $values, $message = '') + public static function allNullOrOneOf(?iterable $value, mixed $values, string $message = ''): void { static::isIterable($value); @@ -2593,15 +1883,9 @@ public static function allNullOrOneOf($value, $values, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param array $values - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrInArray($value, $values, $message = '') + public static function nullOrInArray(mixed $value, mixed $values, string $message = ''): void { null === $value || static::inArray($value, $values, $message); } @@ -2609,15 +1893,9 @@ public static function nullOrInArray($value, $values, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param array $values - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allInArray($value, $values, $message = '') + public static function allInArray(iterable $value, mixed $values, string $message = ''): void { static::isIterable($value); @@ -2629,15 +1907,9 @@ public static function allInArray($value, $values, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param array $values - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrInArray($value, $values, $message = '') + public static function allNullOrInArray(?iterable $value, mixed $values, string $message = ''): void { static::isIterable($value); @@ -2649,51 +1921,109 @@ public static function allNullOrInArray($value, $values, $message = '') /** * @psalm-pure * - * @param string|null $value - * @param string $subString - * @param string $message + * @throws InvalidArgumentException + */ + public static function nullOrNotOneOf(mixed $value, mixed $values, string $message = ''): void + { + null === $value || static::notOneOf($value, $values, $message); + } + + /** + * @psalm-pure * - * @return void + * @throws InvalidArgumentException + */ + public static function allNotOneOf(iterable $value, mixed $values, string $message = ''): void + { + static::isIterable($value); + + foreach ($value as $entry) { + static::notOneOf($entry, $values, $message); + } + } + + /** + * @psalm-pure * * @throws InvalidArgumentException */ - public static function nullOrContains($value, $subString, $message = '') + public static function allNullOrNotOneOf(?iterable $value, mixed $values, string $message = ''): void { - null === $value || static::contains($value, $subString, $message); + static::isIterable($value); + + foreach ($value as $entry) { + null === $entry || static::notOneOf($entry, $values, $message); + } } /** * @psalm-pure * - * @param iterable $value - * @param string $subString - * @param string $message + * @throws InvalidArgumentException + */ + public static function nullOrNotInArray(mixed $value, mixed $values, string $message = ''): void + { + null === $value || static::notInArray($value, $values, $message); + } + + /** + * @psalm-pure * - * @return void + * @throws InvalidArgumentException + */ + public static function allNotInArray(iterable $value, mixed $values, string $message = ''): void + { + static::isIterable($value); + + foreach ($value as $entry) { + static::notInArray($entry, $values, $message); + } + } + + /** + * @psalm-pure * * @throws InvalidArgumentException */ - public static function allContains($value, $subString, $message = '') + public static function allNullOrNotInArray(?iterable $value, mixed $values, string $message = ''): void { static::isIterable($value); foreach ($value as $entry) { - static::contains($entry, $subString, $message); + null === $entry || static::notInArray($entry, $values, $message); } } /** * @psalm-pure * - * @param iterable $value - * @param string $subString - * @param string $message + * @throws InvalidArgumentException + */ + public static function nullOrContains(mixed $value, mixed $subString, string $message = ''): void + { + null === $value || static::contains($value, $subString, $message); + } + + /** + * @psalm-pure * - * @return void + * @throws InvalidArgumentException + */ + public static function allContains(iterable $value, mixed $subString, string $message = ''): void + { + static::isIterable($value); + + foreach ($value as $entry) { + static::contains($entry, $subString, $message); + } + } + + /** + * @psalm-pure * * @throws InvalidArgumentException */ - public static function allNullOrContains($value, $subString, $message = '') + public static function allNullOrContains(?iterable $value, mixed $subString, string $message = ''): void { static::isIterable($value); @@ -2705,15 +2035,9 @@ public static function allNullOrContains($value, $subString, $message = '') /** * @psalm-pure * - * @param string|null $value - * @param string $subString - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrNotContains($value, $subString, $message = '') + public static function nullOrNotContains(mixed $value, mixed $subString, string $message = ''): void { null === $value || static::notContains($value, $subString, $message); } @@ -2721,15 +2045,9 @@ public static function nullOrNotContains($value, $subString, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param string $subString - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNotContains($value, $subString, $message = '') + public static function allNotContains(iterable $value, mixed $subString, string $message = ''): void { static::isIterable($value); @@ -2741,15 +2059,9 @@ public static function allNotContains($value, $subString, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param string $subString - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrNotContains($value, $subString, $message = '') + public static function allNullOrNotContains(?iterable $value, mixed $subString, string $message = ''): void { static::isIterable($value); @@ -2761,14 +2073,9 @@ public static function allNullOrNotContains($value, $subString, $message = '') /** * @psalm-pure * - * @param string|null $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrNotWhitespaceOnly($value, $message = '') + public static function nullOrNotWhitespaceOnly(mixed $value, string $message = ''): void { null === $value || static::notWhitespaceOnly($value, $message); } @@ -2776,14 +2083,9 @@ public static function nullOrNotWhitespaceOnly($value, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNotWhitespaceOnly($value, $message = '') + public static function allNotWhitespaceOnly(iterable $value, string $message = ''): void { static::isIterable($value); @@ -2795,14 +2097,9 @@ public static function allNotWhitespaceOnly($value, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrNotWhitespaceOnly($value, $message = '') + public static function allNullOrNotWhitespaceOnly(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -2814,15 +2111,9 @@ public static function allNullOrNotWhitespaceOnly($value, $message = '') /** * @psalm-pure * - * @param string|null $value - * @param string $prefix - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrStartsWith($value, $prefix, $message = '') + public static function nullOrStartsWith(mixed $value, mixed $prefix, string $message = ''): void { null === $value || static::startsWith($value, $prefix, $message); } @@ -2830,15 +2121,9 @@ public static function nullOrStartsWith($value, $prefix, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param string $prefix - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allStartsWith($value, $prefix, $message = '') + public static function allStartsWith(iterable $value, mixed $prefix, string $message = ''): void { static::isIterable($value); @@ -2850,15 +2135,9 @@ public static function allStartsWith($value, $prefix, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param string $prefix - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrStartsWith($value, $prefix, $message = '') + public static function allNullOrStartsWith(?iterable $value, mixed $prefix, string $message = ''): void { static::isIterable($value); @@ -2870,15 +2149,9 @@ public static function allNullOrStartsWith($value, $prefix, $message = '') /** * @psalm-pure * - * @param string|null $value - * @param string $prefix - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrNotStartsWith($value, $prefix, $message = '') + public static function nullOrNotStartsWith(mixed $value, mixed $prefix, string $message = ''): void { null === $value || static::notStartsWith($value, $prefix, $message); } @@ -2886,15 +2159,9 @@ public static function nullOrNotStartsWith($value, $prefix, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param string $prefix - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNotStartsWith($value, $prefix, $message = '') + public static function allNotStartsWith(iterable $value, mixed $prefix, string $message = ''): void { static::isIterable($value); @@ -2906,15 +2173,9 @@ public static function allNotStartsWith($value, $prefix, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param string $prefix - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrNotStartsWith($value, $prefix, $message = '') + public static function allNullOrNotStartsWith(?iterable $value, mixed $prefix, string $message = ''): void { static::isIterable($value); @@ -2926,14 +2187,9 @@ public static function allNullOrNotStartsWith($value, $prefix, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrStartsWithLetter($value, $message = '') + public static function nullOrStartsWithLetter(mixed $value, string $message = ''): void { null === $value || static::startsWithLetter($value, $message); } @@ -2941,14 +2197,9 @@ public static function nullOrStartsWithLetter($value, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allStartsWithLetter($value, $message = '') + public static function allStartsWithLetter(iterable $value, string $message = ''): void { static::isIterable($value); @@ -2960,14 +2211,9 @@ public static function allStartsWithLetter($value, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrStartsWithLetter($value, $message = '') + public static function allNullOrStartsWithLetter(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -2979,15 +2225,9 @@ public static function allNullOrStartsWithLetter($value, $message = '') /** * @psalm-pure * - * @param string|null $value - * @param string $suffix - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrEndsWith($value, $suffix, $message = '') + public static function nullOrEndsWith(mixed $value, mixed $suffix, string $message = ''): void { null === $value || static::endsWith($value, $suffix, $message); } @@ -2995,15 +2235,9 @@ public static function nullOrEndsWith($value, $suffix, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param string $suffix - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allEndsWith($value, $suffix, $message = '') + public static function allEndsWith(iterable $value, mixed $suffix, string $message = ''): void { static::isIterable($value); @@ -3015,15 +2249,9 @@ public static function allEndsWith($value, $suffix, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param string $suffix - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrEndsWith($value, $suffix, $message = '') + public static function allNullOrEndsWith(?iterable $value, mixed $suffix, string $message = ''): void { static::isIterable($value); @@ -3035,15 +2263,9 @@ public static function allNullOrEndsWith($value, $suffix, $message = '') /** * @psalm-pure * - * @param string|null $value - * @param string $suffix - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrNotEndsWith($value, $suffix, $message = '') + public static function nullOrNotEndsWith(mixed $value, mixed $suffix, string $message = ''): void { null === $value || static::notEndsWith($value, $suffix, $message); } @@ -3051,15 +2273,9 @@ public static function nullOrNotEndsWith($value, $suffix, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param string $suffix - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNotEndsWith($value, $suffix, $message = '') + public static function allNotEndsWith(iterable $value, mixed $suffix, string $message = ''): void { static::isIterable($value); @@ -3071,15 +2287,9 @@ public static function allNotEndsWith($value, $suffix, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param string $suffix - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrNotEndsWith($value, $suffix, $message = '') + public static function allNullOrNotEndsWith(?iterable $value, mixed $suffix, string $message = ''): void { static::isIterable($value); @@ -3091,15 +2301,9 @@ public static function allNullOrNotEndsWith($value, $suffix, $message = '') /** * @psalm-pure * - * @param string|null $value - * @param string $pattern - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrRegex($value, $pattern, $message = '') + public static function nullOrRegex(mixed $value, mixed $pattern, string $message = ''): void { null === $value || static::regex($value, $pattern, $message); } @@ -3107,15 +2311,9 @@ public static function nullOrRegex($value, $pattern, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param string $pattern - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allRegex($value, $pattern, $message = '') + public static function allRegex(iterable $value, mixed $pattern, string $message = ''): void { static::isIterable($value); @@ -3127,15 +2325,9 @@ public static function allRegex($value, $pattern, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param string $pattern - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrRegex($value, $pattern, $message = '') + public static function allNullOrRegex(?iterable $value, mixed $pattern, string $message = ''): void { static::isIterable($value); @@ -3147,15 +2339,9 @@ public static function allNullOrRegex($value, $pattern, $message = '') /** * @psalm-pure * - * @param string|null $value - * @param string $pattern - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrNotRegex($value, $pattern, $message = '') + public static function nullOrNotRegex(mixed $value, mixed $pattern, string $message = ''): void { null === $value || static::notRegex($value, $pattern, $message); } @@ -3163,15 +2349,9 @@ public static function nullOrNotRegex($value, $pattern, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param string $pattern - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNotRegex($value, $pattern, $message = '') + public static function allNotRegex(iterable $value, mixed $pattern, string $message = ''): void { static::isIterable($value); @@ -3183,15 +2363,9 @@ public static function allNotRegex($value, $pattern, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param string $pattern - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrNotRegex($value, $pattern, $message = '') + public static function allNullOrNotRegex(?iterable $value, mixed $pattern, string $message = ''): void { static::isIterable($value); @@ -3203,14 +2377,9 @@ public static function allNullOrNotRegex($value, $pattern, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrUnicodeLetters($value, $message = '') + public static function nullOrUnicodeLetters(mixed $value, string $message = ''): void { null === $value || static::unicodeLetters($value, $message); } @@ -3218,14 +2387,9 @@ public static function nullOrUnicodeLetters($value, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allUnicodeLetters($value, $message = '') + public static function allUnicodeLetters(iterable $value, string $message = ''): void { static::isIterable($value); @@ -3237,14 +2401,9 @@ public static function allUnicodeLetters($value, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrUnicodeLetters($value, $message = '') + public static function allNullOrUnicodeLetters(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -3256,14 +2415,9 @@ public static function allNullOrUnicodeLetters($value, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrAlpha($value, $message = '') + public static function nullOrAlpha(mixed $value, string $message = ''): void { null === $value || static::alpha($value, $message); } @@ -3271,14 +2425,9 @@ public static function nullOrAlpha($value, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allAlpha($value, $message = '') + public static function allAlpha(iterable $value, string $message = ''): void { static::isIterable($value); @@ -3290,14 +2439,9 @@ public static function allAlpha($value, $message = '') /** * @psalm-pure * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrAlpha($value, $message = '') + public static function allNullOrAlpha(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -3309,14 +2453,9 @@ public static function allNullOrAlpha($value, $message = '') /** * @psalm-pure * - * @param string|null $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrDigits($value, $message = '') + public static function nullOrDigits(mixed $value, string $message = ''): void { null === $value || static::digits($value, $message); } @@ -3324,14 +2463,9 @@ public static function nullOrDigits($value, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allDigits($value, $message = '') + public static function allDigits(iterable $value, string $message = ''): void { static::isIterable($value); @@ -3343,14 +2477,9 @@ public static function allDigits($value, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrDigits($value, $message = '') + public static function allNullOrDigits(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -3362,14 +2491,9 @@ public static function allNullOrDigits($value, $message = '') /** * @psalm-pure * - * @param string|null $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrAlnum($value, $message = '') + public static function nullOrAlnum(mixed $value, string $message = ''): void { null === $value || static::alnum($value, $message); } @@ -3377,14 +2501,9 @@ public static function nullOrAlnum($value, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allAlnum($value, $message = '') + public static function allAlnum(iterable $value, string $message = ''): void { static::isIterable($value); @@ -3396,14 +2515,9 @@ public static function allAlnum($value, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrAlnum($value, $message = '') + public static function allNullOrAlnum(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -3417,14 +2531,9 @@ public static function allNullOrAlnum($value, $message = '') * * @psalm-assert lowercase-string|null $value * - * @param string|null $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrLower($value, $message = '') + public static function nullOrLower(mixed $value, string $message = ''): void { null === $value || static::lower($value, $message); } @@ -3434,14 +2543,9 @@ public static function nullOrLower($value, $message = '') * * @psalm-assert iterable $value * - * @param iterable $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allLower($value, $message = '') + public static function allLower(iterable $value, string $message = ''): void { static::isIterable($value); @@ -3455,14 +2559,9 @@ public static function allLower($value, $message = '') * * @psalm-assert iterable $value * - * @param iterable $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrLower($value, $message = '') + public static function allNullOrLower(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -3474,14 +2573,9 @@ public static function allNullOrLower($value, $message = '') /** * @psalm-pure * - * @param string|null $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrUpper($value, $message = '') + public static function nullOrUpper(mixed $value, string $message = ''): void { null === $value || static::upper($value, $message); } @@ -3489,14 +2583,9 @@ public static function nullOrUpper($value, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allUpper($value, $message = '') + public static function allUpper(iterable $value, string $message = ''): void { static::isIterable($value); @@ -3510,14 +2599,9 @@ public static function allUpper($value, $message = '') * * @psalm-assert iterable $value * - * @param iterable $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrUpper($value, $message = '') + public static function allNullOrUpper(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -3529,15 +2613,9 @@ public static function allNullOrUpper($value, $message = '') /** * @psalm-pure * - * @param string|null $value - * @param int $length - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrLength($value, $length, $message = '') + public static function nullOrLength(mixed $value, mixed $length, string $message = ''): void { null === $value || static::length($value, $length, $message); } @@ -3545,15 +2623,9 @@ public static function nullOrLength($value, $length, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param int $length - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allLength($value, $length, $message = '') + public static function allLength(iterable $value, mixed $length, string $message = ''): void { static::isIterable($value); @@ -3565,15 +2637,9 @@ public static function allLength($value, $length, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param int $length - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrLength($value, $length, $message = '') + public static function allNullOrLength(?iterable $value, mixed $length, string $message = ''): void { static::isIterable($value); @@ -3585,15 +2651,9 @@ public static function allNullOrLength($value, $length, $message = '') /** * @psalm-pure * - * @param string|null $value - * @param int|float $min - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrMinLength($value, $min, $message = '') + public static function nullOrMinLength(mixed $value, mixed $min, string $message = ''): void { null === $value || static::minLength($value, $min, $message); } @@ -3601,15 +2661,9 @@ public static function nullOrMinLength($value, $min, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param int|float $min - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allMinLength($value, $min, $message = '') + public static function allMinLength(iterable $value, mixed $min, string $message = ''): void { static::isIterable($value); @@ -3621,15 +2675,9 @@ public static function allMinLength($value, $min, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param int|float $min - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrMinLength($value, $min, $message = '') + public static function allNullOrMinLength(?iterable $value, mixed $min, string $message = ''): void { static::isIterable($value); @@ -3641,15 +2689,9 @@ public static function allNullOrMinLength($value, $min, $message = '') /** * @psalm-pure * - * @param string|null $value - * @param int|float $max - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrMaxLength($value, $max, $message = '') + public static function nullOrMaxLength(mixed $value, mixed $max, string $message = ''): void { null === $value || static::maxLength($value, $max, $message); } @@ -3657,15 +2699,9 @@ public static function nullOrMaxLength($value, $max, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param int|float $max - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allMaxLength($value, $max, $message = '') + public static function allMaxLength(iterable $value, mixed $max, string $message = ''): void { static::isIterable($value); @@ -3677,15 +2713,9 @@ public static function allMaxLength($value, $max, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param int|float $max - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrMaxLength($value, $max, $message = '') + public static function allNullOrMaxLength(?iterable $value, mixed $max, string $message = ''): void { static::isIterable($value); @@ -3697,16 +2727,9 @@ public static function allNullOrMaxLength($value, $max, $message = '') /** * @psalm-pure * - * @param string|null $value - * @param int|float $min - * @param int|float $max - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrLengthBetween($value, $min, $max, $message = '') + public static function nullOrLengthBetween(mixed $value, mixed $min, mixed $max, string $message = ''): void { null === $value || static::lengthBetween($value, $min, $max, $message); } @@ -3714,16 +2737,9 @@ public static function nullOrLengthBetween($value, $min, $max, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param int|float $min - * @param int|float $max - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allLengthBetween($value, $min, $max, $message = '') + public static function allLengthBetween(iterable $value, mixed $min, mixed $max, string $message = ''): void { static::isIterable($value); @@ -3735,16 +2751,9 @@ public static function allLengthBetween($value, $min, $max, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param int|float $min - * @param int|float $max - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrLengthBetween($value, $min, $max, $message = '') + public static function allNullOrLengthBetween(?iterable $value, mixed $min, mixed $max, string $message = ''): void { static::isIterable($value); @@ -3754,27 +2763,17 @@ public static function allNullOrLengthBetween($value, $min, $max, $message = '') } /** - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrFileExists($value, $message = '') + public static function nullOrFileExists(mixed $value, string $message = ''): void { null === $value || static::fileExists($value, $message); } /** - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allFileExists($value, $message = '') + public static function allFileExists(iterable $value, string $message = ''): void { static::isIterable($value); @@ -3784,14 +2783,9 @@ public static function allFileExists($value, $message = '') } /** - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrFileExists($value, $message = '') + public static function allNullOrFileExists(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -3801,27 +2795,17 @@ public static function allNullOrFileExists($value, $message = '') } /** - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrFile($value, $message = '') + public static function nullOrFile(mixed $value, string $message = ''): void { null === $value || static::file($value, $message); } /** - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allFile($value, $message = '') + public static function allFile(iterable $value, string $message = ''): void { static::isIterable($value); @@ -3831,14 +2815,9 @@ public static function allFile($value, $message = '') } /** - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrFile($value, $message = '') + public static function allNullOrFile(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -3848,27 +2827,17 @@ public static function allNullOrFile($value, $message = '') } /** - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrDirectory($value, $message = '') + public static function nullOrDirectory(mixed $value, string $message = ''): void { null === $value || static::directory($value, $message); } /** - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allDirectory($value, $message = '') + public static function allDirectory(iterable $value, string $message = ''): void { static::isIterable($value); @@ -3878,14 +2847,9 @@ public static function allDirectory($value, $message = '') } /** - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrDirectory($value, $message = '') + public static function allNullOrDirectory(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -3895,27 +2859,17 @@ public static function allNullOrDirectory($value, $message = '') } /** - * @param string|null $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrReadable($value, $message = '') + public static function nullOrReadable(mixed $value, string $message = ''): void { null === $value || static::readable($value, $message); } /** - * @param iterable $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allReadable($value, $message = '') + public static function allReadable(iterable $value, string $message = ''): void { static::isIterable($value); @@ -3925,14 +2879,9 @@ public static function allReadable($value, $message = '') } /** - * @param iterable $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrReadable($value, $message = '') + public static function allNullOrReadable(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -3942,27 +2891,17 @@ public static function allNullOrReadable($value, $message = '') } /** - * @param string|null $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrWritable($value, $message = '') + public static function nullOrWritable(mixed $value, string $message = ''): void { null === $value || static::writable($value, $message); } /** - * @param iterable $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allWritable($value, $message = '') + public static function allWritable(iterable $value, string $message = ''): void { static::isIterable($value); @@ -3972,14 +2911,9 @@ public static function allWritable($value, $message = '') } /** - * @param iterable $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrWritable($value, $message = '') + public static function allNullOrWritable(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -3991,14 +2925,9 @@ public static function allNullOrWritable($value, $message = '') /** * @psalm-assert class-string|null $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrClassExists($value, $message = '') + public static function nullOrClassExists(mixed $value, string $message = ''): void { null === $value || static::classExists($value, $message); } @@ -4006,14 +2935,9 @@ public static function nullOrClassExists($value, $message = '') /** * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allClassExists($value, $message = '') + public static function allClassExists(iterable $value, string $message = ''): void { static::isIterable($value); @@ -4025,14 +2949,9 @@ public static function allClassExists($value, $message = '') /** * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrClassExists($value, $message = '') + public static function allNullOrClassExists(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -4045,18 +2964,15 @@ public static function allNullOrClassExists($value, $message = '') * @psalm-pure * * @psalm-template ExpectedType of object - * @psalm-param class-string $class * @psalm-assert class-string|ExpectedType|null $value * - * @param mixed $value * @param string|object $class - * @param string $message * - * @return void + * @psalm-param class-string $class * * @throws InvalidArgumentException */ - public static function nullOrSubclassOf($value, $class, $message = '') + public static function nullOrSubclassOf(mixed $value, mixed $class, string $message = ''): void { null === $value || static::subclassOf($value, $class, $message); } @@ -4065,18 +2981,15 @@ public static function nullOrSubclassOf($value, $class, $message = '') * @psalm-pure * * @psalm-template ExpectedType of object - * @psalm-param class-string $class * @psalm-assert iterable|ExpectedType> $value * - * @param mixed $value * @param string|object $class - * @param string $message * - * @return void + * @psalm-param class-string $class * * @throws InvalidArgumentException */ - public static function allSubclassOf($value, $class, $message = '') + public static function allSubclassOf(iterable $value, mixed $class, string $message = ''): void { static::isIterable($value); @@ -4089,18 +3002,15 @@ public static function allSubclassOf($value, $class, $message = '') * @psalm-pure * * @psalm-template ExpectedType of object - * @psalm-param class-string $class * @psalm-assert iterable|ExpectedType|null> $value * - * @param mixed $value * @param string|object $class - * @param string $message * - * @return void + * @psalm-param class-string $class * * @throws InvalidArgumentException */ - public static function allNullOrSubclassOf($value, $class, $message = '') + public static function allNullOrSubclassOf(?iterable $value, mixed $class, string $message = ''): void { static::isIterable($value); @@ -4112,14 +3022,9 @@ public static function allNullOrSubclassOf($value, $class, $message = '') /** * @psalm-assert class-string|null $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrInterfaceExists($value, $message = '') + public static function nullOrInterfaceExists(mixed $value, string $message = ''): void { null === $value || static::interfaceExists($value, $message); } @@ -4127,14 +3032,9 @@ public static function nullOrInterfaceExists($value, $message = '') /** * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allInterfaceExists($value, $message = '') + public static function allInterfaceExists(iterable $value, string $message = ''): void { static::isIterable($value); @@ -4146,14 +3046,9 @@ public static function allInterfaceExists($value, $message = '') /** * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrInterfaceExists($value, $message = '') + public static function allNullOrInterfaceExists(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -4166,18 +3061,12 @@ public static function allNullOrInterfaceExists($value, $message = '') * @psalm-pure * * @psalm-template ExpectedType of object - * @psalm-param class-string $interface * @psalm-assert class-string|ExpectedType|null $value * - * @param mixed $value - * @param mixed $interface - * @param string $message - * - * @return void - * + * @psalm-param class-string $interface * @throws InvalidArgumentException */ - public static function nullOrImplementsInterface($value, $interface, $message = '') + public static function nullOrImplementsInterface(mixed $value, mixed $interface, string $message = ''): void { null === $value || static::implementsInterface($value, $interface, $message); } @@ -4186,18 +3075,12 @@ public static function nullOrImplementsInterface($value, $interface, $message = * @psalm-pure * * @psalm-template ExpectedType of object - * @psalm-param class-string $interface * @psalm-assert iterable|ExpectedType> $value * - * @param mixed $value - * @param mixed $interface - * @param string $message - * - * @return void - * + * @psalm-param class-string $interface * @throws InvalidArgumentException */ - public static function allImplementsInterface($value, $interface, $message = '') + public static function allImplementsInterface(iterable $value, mixed $interface, string $message = ''): void { static::isIterable($value); @@ -4210,18 +3093,12 @@ public static function allImplementsInterface($value, $interface, $message = '') * @psalm-pure * * @psalm-template ExpectedType of object - * @psalm-param class-string $interface * @psalm-assert iterable|ExpectedType|null> $value * - * @param mixed $value - * @param mixed $interface - * @param string $message - * - * @return void - * + * @psalm-param class-string $interface * @throws InvalidArgumentException */ - public static function allNullOrImplementsInterface($value, $interface, $message = '') + public static function allNullOrImplementsInterface(?iterable $value, mixed $interface, string $message = ''): void { static::isIterable($value); @@ -4233,17 +3110,13 @@ public static function allNullOrImplementsInterface($value, $interface, $message /** * @psalm-pure * - * @psalm-param class-string|object|null $classOrObject - * * @param string|object|null $classOrObject - * @param mixed $property - * @param string $message * - * @return void + * @psalm-param class-string|object|null $classOrObject * * @throws InvalidArgumentException */ - public static function nullOrPropertyExists($classOrObject, $property, $message = '') + public static function nullOrPropertyExists(mixed $classOrObject, mixed $property, string $message = ''): void { null === $classOrObject || static::propertyExists($classOrObject, $property, $message); } @@ -4251,17 +3124,13 @@ public static function nullOrPropertyExists($classOrObject, $property, $message /** * @psalm-pure * - * @psalm-param iterable $classOrObject - * * @param iterable $classOrObject - * @param mixed $property - * @param string $message * - * @return void + * @psalm-param iterable $classOrObject * * @throws InvalidArgumentException */ - public static function allPropertyExists($classOrObject, $property, $message = '') + public static function allPropertyExists(mixed $classOrObject, mixed $property, string $message = ''): void { static::isIterable($classOrObject); @@ -4273,17 +3142,13 @@ public static function allPropertyExists($classOrObject, $property, $message = ' /** * @psalm-pure * - * @psalm-param iterable $classOrObject - * * @param iterable $classOrObject - * @param mixed $property - * @param string $message * - * @return void + * @psalm-param iterable $classOrObject * * @throws InvalidArgumentException */ - public static function allNullOrPropertyExists($classOrObject, $property, $message = '') + public static function allNullOrPropertyExists(mixed $classOrObject, mixed $property, string $message = ''): void { static::isIterable($classOrObject); @@ -4295,17 +3160,13 @@ public static function allNullOrPropertyExists($classOrObject, $property, $messa /** * @psalm-pure * - * @psalm-param class-string|object|null $classOrObject - * * @param string|object|null $classOrObject - * @param mixed $property - * @param string $message * - * @return void + * @psalm-param class-string|object|null $classOrObject * * @throws InvalidArgumentException */ - public static function nullOrPropertyNotExists($classOrObject, $property, $message = '') + public static function nullOrPropertyNotExists(mixed $classOrObject, mixed $property, string $message = ''): void { null === $classOrObject || static::propertyNotExists($classOrObject, $property, $message); } @@ -4313,17 +3174,13 @@ public static function nullOrPropertyNotExists($classOrObject, $property, $messa /** * @psalm-pure * - * @psalm-param iterable $classOrObject - * * @param iterable $classOrObject - * @param mixed $property - * @param string $message * - * @return void + * @psalm-param iterable $classOrObject * * @throws InvalidArgumentException */ - public static function allPropertyNotExists($classOrObject, $property, $message = '') + public static function allPropertyNotExists(mixed $classOrObject, mixed $property, string $message = ''): void { static::isIterable($classOrObject); @@ -4335,17 +3192,13 @@ public static function allPropertyNotExists($classOrObject, $property, $message /** * @psalm-pure * - * @psalm-param iterable $classOrObject - * * @param iterable $classOrObject - * @param mixed $property - * @param string $message * - * @return void + * @psalm-param iterable $classOrObject * * @throws InvalidArgumentException */ - public static function allNullOrPropertyNotExists($classOrObject, $property, $message = '') + public static function allNullOrPropertyNotExists(mixed $classOrObject, mixed $property, string $message = ''): void { static::isIterable($classOrObject); @@ -4357,17 +3210,13 @@ public static function allNullOrPropertyNotExists($classOrObject, $property, $me /** * @psalm-pure * - * @psalm-param class-string|object|null $classOrObject - * * @param string|object|null $classOrObject - * @param mixed $method - * @param string $message * - * @return void + * @psalm-param class-string|object|null $classOrObject * * @throws InvalidArgumentException */ - public static function nullOrMethodExists($classOrObject, $method, $message = '') + public static function nullOrMethodExists(mixed $classOrObject, mixed $method, string $message = ''): void { null === $classOrObject || static::methodExists($classOrObject, $method, $message); } @@ -4375,17 +3224,13 @@ public static function nullOrMethodExists($classOrObject, $method, $message = '' /** * @psalm-pure * - * @psalm-param iterable $classOrObject - * * @param iterable $classOrObject - * @param mixed $method - * @param string $message * - * @return void + * @psalm-param iterable $classOrObject * * @throws InvalidArgumentException */ - public static function allMethodExists($classOrObject, $method, $message = '') + public static function allMethodExists(mixed $classOrObject, mixed $method, string $message = ''): void { static::isIterable($classOrObject); @@ -4397,17 +3242,13 @@ public static function allMethodExists($classOrObject, $method, $message = '') /** * @psalm-pure * - * @psalm-param iterable $classOrObject - * * @param iterable $classOrObject - * @param mixed $method - * @param string $message * - * @return void + * @psalm-param iterable $classOrObject * * @throws InvalidArgumentException */ - public static function allNullOrMethodExists($classOrObject, $method, $message = '') + public static function allNullOrMethodExists(mixed $classOrObject, mixed $method, string $message = ''): void { static::isIterable($classOrObject); @@ -4419,17 +3260,13 @@ public static function allNullOrMethodExists($classOrObject, $method, $message = /** * @psalm-pure * - * @psalm-param class-string|object|null $classOrObject - * * @param string|object|null $classOrObject - * @param mixed $method - * @param string $message * - * @return void + * @psalm-param class-string|object|null $classOrObject * * @throws InvalidArgumentException */ - public static function nullOrMethodNotExists($classOrObject, $method, $message = '') + public static function nullOrMethodNotExists(mixed $classOrObject, mixed $method, string $message = ''): void { null === $classOrObject || static::methodNotExists($classOrObject, $method, $message); } @@ -4437,17 +3274,13 @@ public static function nullOrMethodNotExists($classOrObject, $method, $message = /** * @psalm-pure * - * @psalm-param iterable $classOrObject - * * @param iterable $classOrObject - * @param mixed $method - * @param string $message * - * @return void + * @psalm-param iterable $classOrObject * * @throws InvalidArgumentException */ - public static function allMethodNotExists($classOrObject, $method, $message = '') + public static function allMethodNotExists(mixed $classOrObject, mixed $method, string $message = ''): void { static::isIterable($classOrObject); @@ -4459,17 +3292,13 @@ public static function allMethodNotExists($classOrObject, $method, $message = '' /** * @psalm-pure * - * @psalm-param iterable $classOrObject - * * @param iterable $classOrObject - * @param mixed $method - * @param string $message * - * @return void + * @psalm-param iterable $classOrObject * * @throws InvalidArgumentException */ - public static function allNullOrMethodNotExists($classOrObject, $method, $message = '') + public static function allNullOrMethodNotExists(mixed $classOrObject, mixed $method, string $message = ''): void { static::isIterable($classOrObject); @@ -4481,15 +3310,11 @@ public static function allNullOrMethodNotExists($classOrObject, $method, $messag /** * @psalm-pure * - * @param array|null $array * @param string|int $key - * @param string $message - * - * @return void * * @throws InvalidArgumentException */ - public static function nullOrKeyExists($array, $key, $message = '') + public static function nullOrKeyExists(mixed $array, string|int $key, string $message = ''): void { null === $array || static::keyExists($array, $key, $message); } @@ -4497,15 +3322,11 @@ public static function nullOrKeyExists($array, $key, $message = '') /** * @psalm-pure * - * @param iterable $array - * @param string|int $key - * @param string $message - * - * @return void + * @param string|int $key * * @throws InvalidArgumentException */ - public static function allKeyExists($array, $key, $message = '') + public static function allKeyExists(mixed $array, string|int $key, string $message = ''): void { static::isIterable($array); @@ -4517,15 +3338,11 @@ public static function allKeyExists($array, $key, $message = '') /** * @psalm-pure * - * @param iterable $array - * @param string|int $key - * @param string $message - * - * @return void + * @param string|int $key * * @throws InvalidArgumentException */ - public static function allNullOrKeyExists($array, $key, $message = '') + public static function allNullOrKeyExists(mixed $array, string|int $key, string $message = ''): void { static::isIterable($array); @@ -4537,15 +3354,11 @@ public static function allNullOrKeyExists($array, $key, $message = '') /** * @psalm-pure * - * @param array|null $array * @param string|int $key - * @param string $message - * - * @return void * * @throws InvalidArgumentException */ - public static function nullOrKeyNotExists($array, $key, $message = '') + public static function nullOrKeyNotExists(mixed $array, string|int $key, string $message = ''): void { null === $array || static::keyNotExists($array, $key, $message); } @@ -4553,15 +3366,11 @@ public static function nullOrKeyNotExists($array, $key, $message = '') /** * @psalm-pure * - * @param iterable $array - * @param string|int $key - * @param string $message - * - * @return void + * @param string|int $key * * @throws InvalidArgumentException */ - public static function allKeyNotExists($array, $key, $message = '') + public static function allKeyNotExists(mixed $array, string|int $key, string $message = ''): void { static::isIterable($array); @@ -4573,15 +3382,11 @@ public static function allKeyNotExists($array, $key, $message = '') /** * @psalm-pure * - * @param iterable $array - * @param string|int $key - * @param string $message - * - * @return void + * @param string|int $key * * @throws InvalidArgumentException */ - public static function allNullOrKeyNotExists($array, $key, $message = '') + public static function allNullOrKeyNotExists(mixed $array, string|int $key, string $message = ''): void { static::isIterable($array); @@ -4595,14 +3400,9 @@ public static function allNullOrKeyNotExists($array, $key, $message = '') * * @psalm-assert array-key|null $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrValidArrayKey($value, $message = '') + public static function nullOrValidArrayKey(mixed $value, string $message = ''): void { null === $value || static::validArrayKey($value, $message); } @@ -4612,14 +3412,9 @@ public static function nullOrValidArrayKey($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allValidArrayKey($value, $message = '') + public static function allValidArrayKey(iterable $value, string $message = ''): void { static::isIterable($value); @@ -4633,14 +3428,9 @@ public static function allValidArrayKey($value, $message = '') * * @psalm-assert iterable $value * - * @param mixed $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrValidArrayKey($value, $message = '') + public static function allNullOrValidArrayKey(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -4650,29 +3440,17 @@ public static function allNullOrValidArrayKey($value, $message = '') } /** - * @param Countable|array|null $array - * @param int $number - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrCount($array, $number, $message = '') + public static function nullOrCount(mixed $array, mixed $number, string $message = ''): void { null === $array || static::count($array, $number, $message); } /** - * @param iterable $array - * @param int $number - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allCount($array, $number, $message = '') + public static function allCount(mixed $array, mixed $number, string $message = ''): void { static::isIterable($array); @@ -4682,15 +3460,9 @@ public static function allCount($array, $number, $message = '') } /** - * @param iterable $array - * @param int $number - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrCount($array, $number, $message = '') + public static function allNullOrCount(mixed $array, mixed $number, string $message = ''): void { static::isIterable($array); @@ -4700,29 +3472,17 @@ public static function allNullOrCount($array, $number, $message = '') } /** - * @param Countable|array|null $array - * @param int|float $min - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrMinCount($array, $min, $message = '') + public static function nullOrMinCount(mixed $array, mixed $min, string $message = ''): void { null === $array || static::minCount($array, $min, $message); } /** - * @param iterable $array - * @param int|float $min - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allMinCount($array, $min, $message = '') + public static function allMinCount(mixed $array, mixed $min, string $message = ''): void { static::isIterable($array); @@ -4732,15 +3492,9 @@ public static function allMinCount($array, $min, $message = '') } /** - * @param iterable $array - * @param int|float $min - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrMinCount($array, $min, $message = '') + public static function allNullOrMinCount(mixed $array, mixed $min, string $message = ''): void { static::isIterable($array); @@ -4750,29 +3504,17 @@ public static function allNullOrMinCount($array, $min, $message = '') } /** - * @param Countable|array|null $array - * @param int|float $max - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrMaxCount($array, $max, $message = '') + public static function nullOrMaxCount(mixed $array, mixed $max, string $message = ''): void { null === $array || static::maxCount($array, $max, $message); } /** - * @param iterable $array - * @param int|float $max - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allMaxCount($array, $max, $message = '') + public static function allMaxCount(mixed $array, mixed $max, string $message = ''): void { static::isIterable($array); @@ -4782,15 +3524,9 @@ public static function allMaxCount($array, $max, $message = '') } /** - * @param iterable $array - * @param int|float $max - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrMaxCount($array, $max, $message = '') + public static function allNullOrMaxCount(mixed $array, mixed $max, string $message = ''): void { static::isIterable($array); @@ -4800,31 +3536,17 @@ public static function allNullOrMaxCount($array, $max, $message = '') } /** - * @param Countable|array|null $array - * @param int|float $min - * @param int|float $max - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrCountBetween($array, $min, $max, $message = '') + public static function nullOrCountBetween(mixed $array, mixed $min, mixed $max, string $message = ''): void { null === $array || static::countBetween($array, $min, $max, $message); } /** - * @param iterable $array - * @param int|float $min - * @param int|float $max - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allCountBetween($array, $min, $max, $message = '') + public static function allCountBetween(mixed $array, mixed $min, mixed $max, string $message = ''): void { static::isIterable($array); @@ -4834,16 +3556,9 @@ public static function allCountBetween($array, $min, $max, $message = '') } /** - * @param iterable $array - * @param int|float $min - * @param int|float $max - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrCountBetween($array, $min, $max, $message = '') + public static function allNullOrCountBetween(mixed $array, mixed $min, mixed $max, string $message = ''): void { static::isIterable($array); @@ -4857,14 +3572,9 @@ public static function allNullOrCountBetween($array, $min, $max, $message = '') * * @psalm-assert list|null $array * - * @param mixed $array - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrIsList($array, $message = '') + public static function nullOrIsList(mixed $array, string $message = ''): void { null === $array || static::isList($array, $message); } @@ -4874,14 +3584,9 @@ public static function nullOrIsList($array, $message = '') * * @psalm-assert iterable $array * - * @param mixed $array - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allIsList($array, $message = '') + public static function allIsList(mixed $array, string $message = ''): void { static::isIterable($array); @@ -4895,14 +3600,9 @@ public static function allIsList($array, $message = '') * * @psalm-assert iterable $array * - * @param mixed $array - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrIsList($array, $message = '') + public static function allNullOrIsList(mixed $array, string $message = ''): void { static::isIterable($array); @@ -4916,14 +3616,9 @@ public static function allNullOrIsList($array, $message = '') * * @psalm-assert non-empty-list|null $array * - * @param mixed $array - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrIsNonEmptyList($array, $message = '') + public static function nullOrIsNonEmptyList(mixed $array, string $message = ''): void { null === $array || static::isNonEmptyList($array, $message); } @@ -4933,14 +3628,9 @@ public static function nullOrIsNonEmptyList($array, $message = '') * * @psalm-assert iterable $array * - * @param mixed $array - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allIsNonEmptyList($array, $message = '') + public static function allIsNonEmptyList(mixed $array, string $message = ''): void { static::isIterable($array); @@ -4954,14 +3644,9 @@ public static function allIsNonEmptyList($array, $message = '') * * @psalm-assert iterable $array * - * @param mixed $array - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrIsNonEmptyList($array, $message = '') + public static function allNullOrIsNonEmptyList(mixed $array, string $message = ''): void { static::isIterable($array); @@ -4974,17 +3659,11 @@ public static function allNullOrIsNonEmptyList($array, $message = '') * @psalm-pure * * @psalm-template T - * @psalm-param mixed|array|null $array * @psalm-assert array|null $array * - * @param mixed $array - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrIsMap($array, $message = '') + public static function nullOrIsMap(mixed $array, string $message = ''): void { null === $array || static::isMap($array, $message); } @@ -4993,17 +3672,11 @@ public static function nullOrIsMap($array, $message = '') * @psalm-pure * * @psalm-template T - * @psalm-param iterable> $array * @psalm-assert iterable> $array * - * @param mixed $array - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allIsMap($array, $message = '') + public static function allIsMap(mixed $array, string $message = ''): void { static::isIterable($array); @@ -5016,17 +3689,11 @@ public static function allIsMap($array, $message = '') * @psalm-pure * * @psalm-template T - * @psalm-param iterable|null> $array * @psalm-assert iterable|null> $array * - * @param mixed $array - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrIsMap($array, $message = '') + public static function allNullOrIsMap(mixed $array, string $message = ''): void { static::isIterable($array); @@ -5040,15 +3707,9 @@ public static function allNullOrIsMap($array, $message = '') * * @psalm-template T * @psalm-param mixed|array|null $array - * - * @param mixed $array - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrIsNonEmptyMap($array, $message = '') + public static function nullOrIsNonEmptyMap(mixed $array, string $message = ''): void { null === $array || static::isNonEmptyMap($array, $message); } @@ -5058,15 +3719,9 @@ public static function nullOrIsNonEmptyMap($array, $message = '') * * @psalm-template T * @psalm-param iterable> $array - * - * @param mixed $array - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allIsNonEmptyMap($array, $message = '') + public static function allIsNonEmptyMap(mixed $array, string $message = ''): void { static::isIterable($array); @@ -5079,18 +3734,13 @@ public static function allIsNonEmptyMap($array, $message = '') * @psalm-pure * * @psalm-template T - * @psalm-param iterable|null> $array * @psalm-assert iterable|null> $array * @psalm-assert iterable $array * - * @param mixed $array - * @param string $message - * - * @return void - * + * @psalm-param iterable|null> $array * @throws InvalidArgumentException */ - public static function allNullOrIsNonEmptyMap($array, $message = '') + public static function allNullOrIsNonEmptyMap(mixed $array, string $message = ''): void { static::isIterable($array); @@ -5102,14 +3752,9 @@ public static function allNullOrIsNonEmptyMap($array, $message = '') /** * @psalm-pure * - * @param string|null $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrUuid($value, $message = '') + public static function nullOrUuid(mixed $value, string $message = ''): void { null === $value || static::uuid($value, $message); } @@ -5117,14 +3762,9 @@ public static function nullOrUuid($value, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allUuid($value, $message = '') + public static function allUuid(iterable $value, string $message = ''): void { static::isIterable($value); @@ -5136,14 +3776,9 @@ public static function allUuid($value, $message = '') /** * @psalm-pure * - * @param iterable $value - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrUuid($value, $message = '') + public static function allNullOrUuid(?iterable $value, string $message = ''): void { static::isIterable($value); @@ -5154,32 +3789,18 @@ public static function allNullOrUuid($value, $message = '') /** * @psalm-param class-string $class - * - * @param Closure|null $expression - * @param string $class - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function nullOrThrows($expression, $class = 'Exception', $message = '') + public static function nullOrThrows(mixed $expression, string $class = 'Exception', string $message = ''): void { null === $expression || static::throws($expression, $class, $message); } /** * @psalm-param class-string $class - * - * @param iterable $expression - * @param string $class - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allThrows($expression, $class = 'Exception', $message = '') + public static function allThrows(mixed $expression, string $class = 'Exception', string $message = ''): void { static::isIterable($expression); @@ -5190,16 +3811,9 @@ public static function allThrows($expression, $class = 'Exception', $message = ' /** * @psalm-param class-string $class - * - * @param iterable $expression - * @param string $class - * @param string $message - * - * @return void - * * @throws InvalidArgumentException */ - public static function allNullOrThrows($expression, $class = 'Exception', $message = '') + public static function allNullOrThrows(mixed $expression, string $class = 'Exception', string $message = ''): void { static::isIterable($expression); diff --git a/tests/AssertTest.php b/tests/AssertTest.php index 1b849646..25ad488b 100644 --- a/tests/AssertTest.php +++ b/tests/AssertTest.php @@ -1,5 +1,7 @@ 2, NAN); unset($nanList['key']); @@ -117,12 +106,12 @@ public function getTests() array('object', array(true), false), array('object', array(1), false), array('object', array(array()), false), - array('resource', array($resource), true), - array('resource', array($resource, 'stream'), true), - array('resource', array($resource, 'other'), false), + array('resource', array(self::getResource()), true), + array('resource', array(self::getResource(), 'stream'), true), + array('resource', array(self::getResource(), 'other'), false), array('resource', array(1), false), array('isCallable', array('strlen'), true), - array('isCallable', array(array($this, 'getTests')), true), + array('isCallable', array(array(self::class, 'getTests')), true), array('isCallable', array(function () {}), true), array('isCallable', array(1234), false), array('isCallable', array('foobar'), false), @@ -131,11 +120,6 @@ public function getTests() array('isArray', array(new ArrayIterator(array())), false), array('isArray', array(123), false), array('isArray', array(new stdClass()), false), - array('isTraversable', array(array()), true), - array('isTraversable', array(array(1, 2, 3)), true), - array('isTraversable', array(new ArrayIterator(array())), true), - array('isTraversable', array(123), false), - array('isTraversable', array(new stdClass()), false), array('isArrayAccessible', array(array()), true), array('isArrayAccessible', array(array(1, 2, 3)), true), array('isArrayAccessible', array(new ArrayObject(array())), true), @@ -247,8 +231,12 @@ public function getTests() array('range', array(3, 1, 2), false), array('oneOf', array(1, array(1, 2, 3)), true), array('oneOf', array(1, array('1', '2', '3')), false), + array('notOneOf', array(1, array(1, 2, 3)), false), + array('notOneOf', array(1, array('1', '2', '3')), true), array('inArray', array(1, array(1, 2, 3)), true), array('inArray', array(1, array('1', '2', '3')), false), + array('notInArray', array(1, array(1, 2, 3)), false), + array('notInArray', array(1, array('1', '2', '3')), true), array('contains', array('abcd', 'ab'), true), array('contains', array('abcd', 'bc'), true), array('contains', array('abcd', 'cd'), true), @@ -525,13 +513,13 @@ public function getTests() array('isNonEmptyList', array(array(array(1), array(2))), true), array('isNonEmptyList', array(array(array('foo' => 'bar'), array('baz' => 'tab'))), true), array('isMap', array(array('key' => 1, 'foo' => 2)), true), + array('isMap', array(array(0 => 1, 2 => 3)), true), array('isMap', array(array()), true), array('isMap', array(array(1, 2, 3)), false), - array('isMap', array(array(0 => 1, 2 => 3)), false), array('isNonEmptyMap', array(array('key' => 1, 'foo' => 2)), true), + array('isNonEmptyMap', array(array(0 => 1, 2 => 3)), true), array('isNonEmptyMap', array(array()), false), array('isNonEmptyMap', array(array(1, 2, 3)), false), - array('isNonEmptyMap', array(array(0 => 1, 2 => 3)), false), array('uuid', array('00000000-0000-0000-0000-000000000000'), true), array('uuid', array('urn:ff6f8cb0-c57d-21e1-9b21-0800200c9a66'), true), array('uuid', array('uuid:{ff6f8cb0-c57d-21e1-9b21-0800200c9a66}'), true), @@ -552,9 +540,9 @@ public function getTests() array('throws', array(function () { throw new LogicException('test'); }, 'LogicException'), true), array('throws', array(function () { throw new LogicException('test'); }, 'IllogicException'), false), array('throws', array(function () { throw new Exception('test'); }), true), - array('throws', array(function () { trigger_error('test'); }, 'Throwable'), true, false, 70000), - array('throws', array(function () { trigger_error('test'); }, 'Unthrowable'), false, false, 70000), - array('throws', array(function () { throw new Error(); }, 'Throwable'), true, true, 70000), + array('throws', array(function () { trigger_error('test'); }, 'Throwable'), false, false), + array('throws', array(function () { trigger_error('test'); }, 'Unthrowable'), false, false), + array('throws', array(function () { throw new Error(); }, 'Throwable'), true, true), array('ip', array('192.168.0.1'), true), array('ip', array(new ToStringClass('192.168.0.1')), true), array('ip', array('255.255.255.255'), true), @@ -605,27 +593,20 @@ public function getTests() ); } - public function getMethods() + public static function getMethods(): array { $methods = array(); - foreach ($this->getTests() as $params) { + foreach (self::getTests() as $params) { $methods[$params[0]] = array($params[0]); } return array_values($methods); } - /** - * @dataProvider getTests - */ - public function testAssert($method, $args, $success, $multibyte = false, $minVersion = null) + #[DataProvider('getTests')] + public function testAssert(string $method, array $args, bool $success, bool $multibyte = false): void { - if ($minVersion && PHP_VERSION_ID < $minVersion) { - $this->markTestSkipped(sprintf('This test requires php %s or upper.', $minVersion)); - - return; - } if ($multibyte && !function_exists('mb_strlen')) { $this->markTestSkipped('The function mb_strlen() is not available'); } @@ -638,16 +619,13 @@ public function testAssert($method, $args, $success, $multibyte = false, $minVer $this->addToAssertionCount(1); } - /** - * @dataProvider getTests - */ - public function testNullOr($method, $args, $success, $multibyte = false, $minVersion = null) + #[DataProvider('getTests')] + public function testNullOr(string $method, array $args, bool $success, bool $multibyte = false): void { - if ($minVersion && PHP_VERSION_ID < $minVersion) { - $this->markTestSkipped(sprintf('This test requires php %s or upper.', $minVersion)); - - return; + if (in_array($method, array('null', 'notNull'))) { + $this->markTestSkipped('Meaningless test of '.$method); } + if ($multibyte && !function_exists('mb_strlen')) { $this->markTestSkipped('The function mb_strlen() is not available'); } @@ -660,25 +638,20 @@ public function testNullOr($method, $args, $success, $multibyte = false, $minVer $this->addToAssertionCount(1); } - /** - * @dataProvider getMethods - */ - public function testNullOrAcceptsNull($method) + #[DataProvider('getMethods')] + public function testNullOrAcceptsNull(string $method): void { - call_user_func(array('Webmozart\Assert\Assert', 'nullOr'.ucfirst($method)), null, null, null); + if (in_array($method, array('null', 'notNull'))) { + $this->markTestSkipped('Meaningless test of '.$method); + } + + call_user_func(array('Webmozart\Assert\Assert', 'nullOr'.ucfirst($method)), null, '', ''); $this->addToAssertionCount(1); } - /** - * @dataProvider getTests - */ - public function testAllArray($method, $args, $success, $multibyte = false, $minVersion = null) + #[DataProvider('getTests')] + public function testAllArray(string $method, array $args, bool $success, bool $multibyte = false): void { - if ($minVersion && PHP_VERSION_ID < $minVersion) { - $this->markTestSkipped(sprintf('This test requires php %s or upper.', $minVersion)); - - return; - } if ($multibyte && !function_exists('mb_strlen')) { $this->markTestSkipped('The function mb_strlen() is not available'); } @@ -694,16 +667,13 @@ public function testAllArray($method, $args, $success, $multibyte = false, $minV $this->addToAssertionCount(1); } - /** - * @dataProvider getTests - */ - public function testAllNullOrArray($method, $args, $success, $multibyte = false, $minVersion = null) + #[DataProvider('getTests')] + public function testAllNullOrArray(string $method, array $args, bool $success, bool $multibyte = false): void { - if ($minVersion && PHP_VERSION_ID < $minVersion) { - $this->markTestSkipped(sprintf('This test requires php %s or upper.', $minVersion)); - - return; + if (in_array($method, array('null', 'notNull'))) { + $this->markTestSkipped('Meaningless test of '.$method); } + if ($multibyte && !function_exists('mb_strlen')) { $this->markTestSkipped('The function mb_strlen() is not available'); } @@ -726,16 +696,9 @@ public function testAllNullOrArray($method, $args, $success, $multibyte = false, $this->addToAssertionCount(1); } - /** - * @dataProvider getTests - */ - public function testAllTraversable($method, $args, $success, $multibyte = false, $minVersion = null) + #[DataProvider('getTests')] + public function testAllTraversable(string $method, array $args, bool $success, bool $multibyte = false): void { - if ($minVersion && PHP_VERSION_ID < $minVersion) { - $this->markTestSkipped(sprintf('This test requires php %s or upper.', $minVersion)); - - return; - } if ($multibyte && !function_exists('mb_strlen')) { $this->markTestSkipped('The function mb_strlen() is not available'); } @@ -751,7 +714,7 @@ public function testAllTraversable($method, $args, $success, $multibyte = false, $this->addToAssertionCount(1); } - public function getStringConversions() + public static function getStringConversions(): array { return array( array('integer', array('foobar'), 'Expected an integer. Got: string'), @@ -776,10 +739,8 @@ public function getStringConversions() ); } - /** - * @dataProvider getStringConversions - */ - public function testConvertValuesToStrings($method, $args, $exceptionMessage) + #[DataProvider('getStringConversions')] + public function testConvertValuesToStrings(string $method, array $args, string $exceptionMessage): void { $this->expectException('\InvalidArgumentException'); $this->expectExceptionMessage($exceptionMessage); @@ -787,14 +748,7 @@ public function testConvertValuesToStrings($method, $args, $exceptionMessage) call_user_func_array(array('Webmozart\Assert\Assert', $method), $args); } - public function testAnUnknownMethodThrowsABadMethodCall() - { - $this->expectException('\BadMethodCallException'); - - Assert::nonExistentMethod(); - } - - public function getInvalidIsAOfCases(): iterable + public static function getInvalidIsAOfCases(): iterable { yield array( array('stdClass', 123), @@ -822,9 +776,7 @@ public function getInvalidIsAOfCases(): iterable ); } - /** - * @dataProvider getInvalidIsAOfCases - */ + #[DataProvider('getInvalidIsAOfCases')] public function testIsAOfExceptionMessages(array $args, string $exceptionMessage): void { $this->expectException('\InvalidArgumentException'); @@ -843,18 +795,10 @@ public function testResourceOfTypeCustomMessage(): void public function testEnumAssertionErrorMessage(): void { - $enumIntroductionVersion = 80100; - - if (PHP_VERSION_ID < $enumIntroductionVersion) { - $this->markTestSkipped(sprintf('This test requires php %s or upper.', $enumIntroductionVersion)); - } - - require_once 'DummyEnum.php'; - $this->expectException('\InvalidArgumentException'); - $this->expectExceptionMessage('Expected null. Got: Webmozart\Assert\Tests\TestEnum::CaseName'); + $this->expectExceptionMessage('Expected null. Got: Webmozart\Assert\Tests\DummyEnum::CaseName'); - Assert::null(TestEnum::CaseName, 'Expected null. Got: %s'); + Assert::null(DummyEnum::CaseName, 'Expected null. Got: %s'); } } @@ -868,12 +812,12 @@ class ToStringClass */ private $value; - public function __construct($value) + public function __construct(string $value) { $this->value = $value; } - public function __toString() + public function __toString(): string { return $this->value; } diff --git a/tests/DummyEnum.php b/tests/DummyEnum.php index b4aac285..2535f6e8 100644 --- a/tests/DummyEnum.php +++ b/tests/DummyEnum.php @@ -1,9 +1,11 @@ addToAssertionCount(1); } - /** - * @dataProvider providesMethodNames - * - * @param string $method - */ - public function testHasAll($method) + #[DataProvider('providesMethodNames')] + public function testHasAll(string $method): void { $fullMethodName = 'all'.ucfirst($method); @@ -85,12 +78,8 @@ public function testHasAll($method) $this->addToAssertionCount(1); } - /** - * @dataProvider providesMethodNames - * - * @param string $method - */ - public function testIsInReadme($method) + #[DataProvider('providesMethodNames')] + public function testIsInReadme(string $method): void { $correct = strpos((string) self::$readmeContent, $method); @@ -103,12 +92,8 @@ public function testIsInReadme($method) $this->addToAssertionCount(1); } - /** - * @dataProvider provideMethods - * - * @param ReflectionMethod $method - */ - public function testHasThrowsAnnotation($method) + #[DataProvider('provideMethods')] + public function testHasThrowsAnnotation(ReflectionMethod $method): void { $doc = $method->getDocComment(); @@ -130,12 +115,8 @@ public function testHasThrowsAnnotation($method) ); } - /** - * @dataProvider provideMethods - * - * @param ReflectionMethod $method - */ - public function testHasCorrespondingStaticAnalysisFile($method) + #[DataProvider('provideMethods')] + public function testHasCorrespondingStaticAnalysisFile(ReflectionMethod $method): void { $doc = $method->getDocComment(); @@ -150,7 +131,7 @@ public function testHasCorrespondingStaticAnalysisFile($method) ); } - public function testMixinIsUpToDateVersion() + public function testMixinIsUpToDateVersion(): void { if (PHP_OS_FAMILY === 'Windows') { $this->markTestSkipped('mixin generator is not expected to run on Windows'); @@ -170,27 +151,27 @@ public function testMixinIsUpToDateVersion() /** * @return array */ - public function providesMethodNames() + public static function providesMethodNames(): array { - return array_map(function ($value) { + return array_map(function (ReflectionMethod $value) { return array($value->getName()); - }, $this->getMethods()); + }, self::getMethods()); } /** * @return array */ - public function provideMethods() + public static function provideMethods(): array { - return array_map(function ($value) { + return array_map(function (ReflectionMethod $value) { return array($value); - }, $this->getMethods()); + }, self::getMethods()); } /** * @return array */ - private function getMethods() + private static function getMethods(): array { static $methods; diff --git a/tests/static-analysis/assert-alnum.php b/tests/static-analysis/assert-alnum.php index 0a1c75c3..b296eade 100644 --- a/tests/static-analysis/assert-alnum.php +++ b/tests/static-analysis/assert-alnum.php @@ -1,5 +1,7 @@ $value - * - * @return iterable */ function allAlnum(iterable $value): iterable { @@ -42,8 +42,6 @@ function allAlnum(iterable $value): iterable * @psalm-pure * * @param iterable $value - * - * @return iterable */ function allNullOrAlnum(iterable $value): iterable { diff --git a/tests/static-analysis/assert-alpha.php b/tests/static-analysis/assert-alpha.php index fffc65ae..c86f9378 100644 --- a/tests/static-analysis/assert-alpha.php +++ b/tests/static-analysis/assert-alpha.php @@ -1,5 +1,7 @@ */ -function allBoolean($value): iterable +function allBoolean(mixed $value): iterable { Assert::allBoolean($value); @@ -46,10 +46,8 @@ function allBoolean($value): iterable * @psalm-pure * * @param mixed $value - * - * @return iterable */ -function allNullOrBoolean($value): iterable +function allNullOrBoolean(mixed $value): iterable { Assert::allNullOrBoolean($value); diff --git a/tests/static-analysis/assert-classExists.php b/tests/static-analysis/assert-classExists.php index 94020f33..ddadf259 100644 --- a/tests/static-analysis/assert-classExists.php +++ b/tests/static-analysis/assert-classExists.php @@ -1,5 +1,7 @@ */ -function allClassExists($value): iterable +function allClassExists(mixed $value): iterable { Assert::allClassExists($value); @@ -42,10 +42,8 @@ function allClassExists($value): iterable /** * @param mixed $value - * - * @return iterable */ -function allNullOrClassExists($value): iterable +function allNullOrClassExists(mixed $value): iterable { Assert::allNullOrClassExists($value); diff --git a/tests/static-analysis/assert-contains.php b/tests/static-analysis/assert-contains.php index 16183e12..8b5d7ff8 100644 --- a/tests/static-analysis/assert-contains.php +++ b/tests/static-analysis/assert-contains.php @@ -1,5 +1,7 @@ $value - * - * @return iterable */ function allContains(iterable $value, string $subString): iterable { @@ -42,8 +42,6 @@ function allContains(iterable $value, string $subString): iterable * @psalm-pure * * @param iterable $value - * - * @return iterable */ function allNullOrContains(iterable $value, string $subString): iterable { diff --git a/tests/static-analysis/assert-count.php b/tests/static-analysis/assert-count.php index 7adb5b30..ffa75eeb 100644 --- a/tests/static-analysis/assert-count.php +++ b/tests/static-analysis/assert-count.php @@ -1,5 +1,7 @@ $value - * - * @return iterable */ function allCount(iterable $value, int $number): iterable { @@ -43,8 +39,6 @@ function allCount(iterable $value, int $number): iterable /** * @param iterable $value - * - * @return iterable */ function allNullOrCount(iterable $value, int $number): iterable { diff --git a/tests/static-analysis/assert-countBetween.php b/tests/static-analysis/assert-countBetween.php index dde80036..eb6b3ded 100644 --- a/tests/static-analysis/assert-countBetween.php +++ b/tests/static-analysis/assert-countBetween.php @@ -1,5 +1,7 @@ $value * @param int|float $min * @param int|float $max - * - * @return iterable */ function allCountBetween(iterable $value, $min, $max): iterable { @@ -51,8 +47,6 @@ function allCountBetween(iterable $value, $min, $max): iterable * @param iterable $value * @param int|float $min * @param int|float $max - * - * @return iterable */ function allNullOrCountBetween(iterable $value, $min, $max): iterable { diff --git a/tests/static-analysis/assert-digits.php b/tests/static-analysis/assert-digits.php index da52e9bc..e201f926 100644 --- a/tests/static-analysis/assert-digits.php +++ b/tests/static-analysis/assert-digits.php @@ -1,5 +1,7 @@ $value - * - * @return iterable */ function allDigits(iterable $value): iterable { @@ -42,8 +42,6 @@ function allDigits(iterable $value): iterable * @psalm-pure * * @param iterable $value - * - * @return iterable */ function allNullOrDigits(iterable $value): iterable { diff --git a/tests/static-analysis/assert-directory.php b/tests/static-analysis/assert-directory.php index c53d4cb0..b3589156 100644 --- a/tests/static-analysis/assert-directory.php +++ b/tests/static-analysis/assert-directory.php @@ -1,15 +1,15 @@ $value - * - * @return iterable */ function allEndsWith(iterable $value, string $suffix): iterable { @@ -42,8 +42,6 @@ function allEndsWith(iterable $value, string $suffix): iterable * @psalm-pure * * @param iterable $value - * - * @return iterable */ function allNullOrEndsWith(iterable $value, string $suffix): iterable { diff --git a/tests/static-analysis/assert-eq.php b/tests/static-analysis/assert-eq.php index 9657b47c..a99a965b 100644 --- a/tests/static-analysis/assert-eq.php +++ b/tests/static-analysis/assert-eq.php @@ -1,5 +1,7 @@ */ -function allFalse($value): iterable +function allFalse(mixed $value): iterable { Assert::allFalse($value); @@ -50,10 +50,8 @@ function allFalse($value): iterable * @psalm-pure * * @param mixed $value - * - * @return iterable */ -function allNullOrFalse($value): iterable +function allNullOrFalse(mixed $value): iterable { Assert::allFalse($value); diff --git a/tests/static-analysis/assert-file.php b/tests/static-analysis/assert-file.php index c81d9c19..a402bc71 100644 --- a/tests/static-analysis/assert-file.php +++ b/tests/static-analysis/assert-file.php @@ -1,15 +1,15 @@ */ -function allFloat($value): iterable +function allFloat(mixed $value): iterable { Assert::allFloat($value); @@ -46,10 +46,8 @@ function allFloat($value): iterable * @psalm-pure * * @param mixed $value - * - * @return iterable */ -function allNullOrFloat($value): iterable +function allNullOrFloat(mixed $value): iterable { Assert::allNullOrFloat($value); diff --git a/tests/static-analysis/assert-greaterThan.php b/tests/static-analysis/assert-greaterThan.php index ad6ada7a..32925c29 100644 --- a/tests/static-analysis/assert-greaterThan.php +++ b/tests/static-analysis/assert-greaterThan.php @@ -1,5 +1,7 @@ */ -function implementsInterface($value) +function implementsInterface(mixed $value) { Assert::implementsInterface($value, Serializable::class); @@ -26,7 +28,7 @@ function implementsInterface($value) * * @return Serializable|class-string|null */ -function nullOrImplementsInterface($value) +function nullOrImplementsInterface(mixed $value) { Assert::nullOrImplementsInterface($value, Serializable::class); @@ -37,10 +39,8 @@ function nullOrImplementsInterface($value) * @psalm-pure * * @param mixed $value - * - * @return iterable> */ -function allImplementsInterface($value): iterable +function allImplementsInterface(mixed $value): iterable { Assert::allImplementsInterface($value, Serializable::class); @@ -51,10 +51,8 @@ function allImplementsInterface($value): iterable * @psalm-pure * * @param mixed $value - * - * @return iterable|null> */ -function allNullOrImplementsInterface($value): iterable +function allNullOrImplementsInterface(mixed $value): iterable { Assert::allNullOrImplementsInterface($value, Serializable::class); diff --git a/tests/static-analysis/assert-inArray.php b/tests/static-analysis/assert-inArray.php index 6b350239..60f8dcc9 100644 --- a/tests/static-analysis/assert-inArray.php +++ b/tests/static-analysis/assert-inArray.php @@ -1,5 +1,7 @@ */ -function allInteger($value): iterable +function allInteger(mixed $value): iterable { Assert::allInteger($value); @@ -46,10 +46,8 @@ function allInteger($value): iterable * @psalm-pure * * @param mixed $value - * - * @return iterable */ -function allNullOrInteger($value): iterable +function allNullOrInteger(mixed $value): iterable { Assert::allNullOrInteger($value); diff --git a/tests/static-analysis/assert-integerish.php b/tests/static-analysis/assert-integerish.php index f6610180..5f80f1ae 100644 --- a/tests/static-analysis/assert-integerish.php +++ b/tests/static-analysis/assert-integerish.php @@ -1,5 +1,7 @@ */ -function allIntegerish($value): iterable +function allIntegerish(mixed $value): iterable { Assert::allIntegerish($value); @@ -50,10 +50,8 @@ function allIntegerish($value): iterable * @psalm-pure * * @param mixed $value - * - * @return iterable */ -function allNullOrIntegerish($value): iterable +function allNullOrIntegerish(mixed $value): iterable { Assert::allNullOrIntegerish($value); diff --git a/tests/static-analysis/assert-interfaceExists.php b/tests/static-analysis/assert-interfaceExists.php index b905eb5d..5f96cb8a 100644 --- a/tests/static-analysis/assert-interfaceExists.php +++ b/tests/static-analysis/assert-interfaceExists.php @@ -1,5 +1,7 @@ */ -function allInterfaceExists($value): iterable +function allInterfaceExists(mixed $value): iterable { Assert::allInterfaceExists($value); @@ -42,10 +42,8 @@ function allInterfaceExists($value): iterable /** * @param mixed $value - * - * @return iterable */ -function allNullOrInterfaceExists($value): iterable +function allNullOrInterfaceExists(mixed $value): iterable { Assert::allNullOrInterfaceExists($value); diff --git a/tests/static-analysis/assert-ip.php b/tests/static-analysis/assert-ip.php index b93392fb..6ce9f4c7 100644 --- a/tests/static-analysis/assert-ip.php +++ b/tests/static-analysis/assert-ip.php @@ -1,15 +1,15 @@ |Serializable */ -function isAOf($value) +function isAOf(mixed $value): mixed { Assert::isAOf($value, Serializable::class); @@ -26,7 +28,7 @@ function isAOf($value) * * @psalm-return null|class-string|Serializable */ -function nullOrIsAOf($value) +function nullOrIsAOf(mixed $value): mixed { Assert::nullOrIsAOf($value, Serializable::class); @@ -40,7 +42,7 @@ function nullOrIsAOf($value) * * @return iterable|Serializable> */ -function allIsAOf($value) +function allIsAOf(mixed $value): iterable { Assert::allIsAOf($value, Serializable::class); @@ -54,7 +56,7 @@ function allIsAOf($value) * * @return iterable|Serializable|null> */ -function allNullOrIsAOf($value) +function allNullOrIsAOf(mixed $value): iterable { Assert::allNullOrIsAOf($value, Serializable::class); diff --git a/tests/static-analysis/assert-isAnyOf.php b/tests/static-analysis/assert-isAnyOf.php index 461a5d12..bf7ec3e8 100644 --- a/tests/static-analysis/assert-isAnyOf.php +++ b/tests/static-analysis/assert-isAnyOf.php @@ -1,5 +1,7 @@ $classes - * - * @return object|string */ -function isAnyOf($value, array $classes) +function isAnyOf($value, array $classes): object|string { Assert::isAnyOf($value, $classes); @@ -24,10 +24,8 @@ function isAnyOf($value, array $classes) * * @param null|object|string $value * @param array $classes - * - * @return null|object|string */ -function nullOrIsAnyOf($value, array $classes) +function nullOrIsAnyOf($value, array $classes): object|string|null { Assert::nullOrIsAnyOf($value, $classes); @@ -39,8 +37,6 @@ function nullOrIsAnyOf($value, array $classes) * * @param iterable $value * @param array $classes - * - * @return iterable */ function allIsAnyOf($value, array $classes): iterable { @@ -54,8 +50,6 @@ function allIsAnyOf($value, array $classes): iterable * * @param iterable $value * @param array $classes - * - * @return iterable */ function allNullOrIsAnyOf($value, array $classes): iterable { diff --git a/tests/static-analysis/assert-isArray.php b/tests/static-analysis/assert-isArray.php index 67f941ec..157e3fb4 100644 --- a/tests/static-analysis/assert-isArray.php +++ b/tests/static-analysis/assert-isArray.php @@ -1,5 +1,7 @@ */ -function allIsArray($value): iterable +function allIsArray(mixed $value): iterable { Assert::allIsArray($value); @@ -46,10 +46,8 @@ function allIsArray($value): iterable * @psalm-pure * * @param mixed $value - * - * @return iterable */ -function allNullOrIsArray($value): iterable +function allNullOrIsArray(mixed $value): iterable { Assert::allNullOrIsArray($value); diff --git a/tests/static-analysis/assert-isArrayAccessible.php b/tests/static-analysis/assert-isArrayAccessible.php index c40cd992..725e383a 100644 --- a/tests/static-analysis/assert-isArrayAccessible.php +++ b/tests/static-analysis/assert-isArrayAccessible.php @@ -1,5 +1,7 @@ */ -function allIsArrayAccessible($value): iterable +function allIsArrayAccessible(mixed $value): iterable { Assert::allIsArrayAccessible($value); @@ -51,10 +47,8 @@ function allIsArrayAccessible($value): iterable * @psalm-pure * * @param mixed $value - * - * @return iterable */ -function allNullOrIsArrayAccessible($value): iterable +function allNullOrIsArrayAccessible(mixed $value): iterable { Assert::allNullOrIsArrayAccessible($value); diff --git a/tests/static-analysis/assert-isCallable.php b/tests/static-analysis/assert-isCallable.php index 870d0fe3..4f91156b 100644 --- a/tests/static-analysis/assert-isCallable.php +++ b/tests/static-analysis/assert-isCallable.php @@ -1,5 +1,7 @@ */ -function allIsCallable($value): iterable +function allIsCallable(mixed $value): iterable { Assert::allIsCallable($value); @@ -46,10 +46,8 @@ function allIsCallable($value): iterable * @psalm-pure * * @param mixed $value - * - * @return iterable */ -function allNullOrIsCallable($value): iterable +function allNullOrIsCallable(mixed $value): iterable { Assert::allNullOrIsCallable($value); diff --git a/tests/static-analysis/assert-isCountable.php b/tests/static-analysis/assert-isCountable.php index ff5963a4..c1d4a68b 100644 --- a/tests/static-analysis/assert-isCountable.php +++ b/tests/static-analysis/assert-isCountable.php @@ -1,5 +1,7 @@ */ -function allIsCountable($value) +function allIsCountable(mixed $value) { Assert::allIsCountable($value); @@ -54,7 +52,7 @@ function allIsCountable($value) * * @return iterable */ -function allNullOrIsCountable($value) +function allNullOrIsCountable(mixed $value) { Assert::allNullOrIsCountable($value); diff --git a/tests/static-analysis/assert-isEmpty.php b/tests/static-analysis/assert-isEmpty.php index 9131b840..b7e1af61 100644 --- a/tests/static-analysis/assert-isEmpty.php +++ b/tests/static-analysis/assert-isEmpty.php @@ -1,15 +1,15 @@ */ -function allIsEmpty($value): iterable +function allIsEmpty(mixed $value): iterable { Assert::allIsEmpty($value); @@ -94,10 +92,8 @@ function allIsEmpty($value): iterable * @psalm-pure * * @param mixed $value - * - * @return iterable */ -function allNullOrIsEmpty($value): iterable +function allNullOrIsEmpty(mixed $value): iterable { Assert::allNullOrIsEmpty($value); diff --git a/tests/static-analysis/assert-isInstanceOf.php b/tests/static-analysis/assert-isInstanceOf.php index 89629340..a07a2089 100644 --- a/tests/static-analysis/assert-isInstanceOf.php +++ b/tests/static-analysis/assert-isInstanceOf.php @@ -1,5 +1,7 @@ */ -function allIsInstanceOf($value): iterable +function allIsInstanceOf(mixed $value): iterable { Assert::allIsInstanceOf($value, Serializable::class); @@ -47,10 +47,8 @@ function allIsInstanceOf($value): iterable * @psalm-pure * * @param mixed $value - * - * @return iterable */ -function allNullOrIsInstanceOf($value): iterable +function allNullOrIsInstanceOf(mixed $value): iterable { Assert::allNullOrIsInstanceOf($value, Serializable::class); diff --git a/tests/static-analysis/assert-isInstanceOfAny.php b/tests/static-analysis/assert-isInstanceOfAny.php index 59796e8e..f4823462 100644 --- a/tests/static-analysis/assert-isInstanceOfAny.php +++ b/tests/static-analysis/assert-isInstanceOfAny.php @@ -1,5 +1,7 @@ $classes - * - * @return mixed */ -function isInstanceOfAny($value, array $classes) +function isInstanceOfAny($value, array $classes): mixed { Assert::isInstanceOfAny($value, $classes); @@ -24,10 +24,8 @@ function isInstanceOfAny($value, array $classes) * * @param mixed $value * @param array $classes - * - * @return mixed */ -function nullOrIsInstanceOfAny($value, array $classes) +function nullOrIsInstanceOfAny($value, array $classes): mixed { Assert::nullOrIsInstanceOfAny($value, $classes); @@ -39,10 +37,8 @@ function nullOrIsInstanceOfAny($value, array $classes) * * @param mixed $value * @param array $classes - * - * @return mixed */ -function allIsInstanceOfAny($value, array $classes) +function allIsInstanceOfAny($value, array $classes): mixed { Assert::allIsInstanceOfAny($value, $classes); @@ -54,10 +50,8 @@ function allIsInstanceOfAny($value, array $classes) * * @param mixed $value * @param array $classes - * - * @return mixed */ -function allNullOrIsInstanceOfAny($value, array $classes) +function allNullOrIsInstanceOfAny($value, array $classes): mixed { Assert::allNullOrIsInstanceOfAny($value, $classes); diff --git a/tests/static-analysis/assert-isIterable.php b/tests/static-analysis/assert-isIterable.php index 242fee7e..6e9488b2 100644 --- a/tests/static-analysis/assert-isIterable.php +++ b/tests/static-analysis/assert-isIterable.php @@ -1,5 +1,7 @@ */ -function allIsIterable($value): iterable +function allIsIterable(mixed $value): iterable { Assert::allIsIterable($value); @@ -46,10 +46,8 @@ function allIsIterable($value): iterable * @psalm-pure * * @param mixed $value - * - * @return iterable */ -function allNullOrIsIterable($value): iterable +function allNullOrIsIterable(mixed $value): iterable { Assert::allNullOrIsIterable($value); diff --git a/tests/static-analysis/assert-isList.php b/tests/static-analysis/assert-isList.php index fe1157a8..46e7fd13 100644 --- a/tests/static-analysis/assert-isList.php +++ b/tests/static-analysis/assert-isList.php @@ -1,5 +1,7 @@ */ -function isList($value): array +function isList(mixed $value): array { Assert::isList($value); @@ -40,7 +42,7 @@ function isListWithKnownType(array $value): array * * @return null|list */ -function nullOrIsList($value): ?array +function nullOrIsList(mixed $value): ?array { Assert::nullOrIsList($value); @@ -51,10 +53,8 @@ function nullOrIsList($value): ?array * @psalm-pure * * @param mixed $value - * - * @return iterable> */ -function allIsList($value): iterable +function allIsList(mixed $value): iterable { Assert::allIsList($value); @@ -65,10 +65,8 @@ function allIsList($value): iterable * @psalm-pure * * @param mixed $value - * - * @return iterable|null> */ -function allNullOrIsList($value): iterable +function allNullOrIsList(mixed $value): iterable { Assert::allNullOrIsList($value); diff --git a/tests/static-analysis/assert-isMap.php b/tests/static-analysis/assert-isMap.php index 0ec52e5a..f8c14f16 100644 --- a/tests/static-analysis/assert-isMap.php +++ b/tests/static-analysis/assert-isMap.php @@ -1,5 +1,7 @@ */ -function isMap($value): array +function isMap(mixed $value): array { Assert::isMap($value); @@ -57,7 +59,7 @@ function isMapWithEmptyArray(array $value): array * * @return null|array */ -function nullOrIsMap($value): ?array +function nullOrIsMap(mixed $value): ?array { Assert::nullOrIsMap($value); @@ -68,8 +70,6 @@ function nullOrIsMap($value): ?array * @psalm-pure * * @param iterable> $value - * - * @return iterable> */ function allIsMap(iterable $value): iterable { @@ -82,8 +82,6 @@ function allIsMap(iterable $value): iterable * @psalm-pure * * @param iterable> $value - * - * @return iterable|null> */ function allNullOrIsMap(iterable $value): iterable { diff --git a/tests/static-analysis/assert-isNonEmptyList.php b/tests/static-analysis/assert-isNonEmptyList.php index b7c3d5c7..027e0c12 100644 --- a/tests/static-analysis/assert-isNonEmptyList.php +++ b/tests/static-analysis/assert-isNonEmptyList.php @@ -1,5 +1,7 @@ */ -function isNonEmptyList($value): array +function isNonEmptyList(mixed $value): array { Assert::isNonEmptyList($value); @@ -25,7 +27,7 @@ function isNonEmptyList($value): array * * @return null|non-empty-list */ -function nullOrIsNonEmptyList($value): ?array +function nullOrIsNonEmptyList(mixed $value): ?array { Assert::nullOrIsNonEmptyList($value); @@ -36,10 +38,8 @@ function nullOrIsNonEmptyList($value): ?array * @psalm-pure * * @param mixed $value - * - * @return iterable> */ -function allIsNonEmptyList($value): iterable +function allIsNonEmptyList(mixed $value): iterable { Assert::allIsNonEmptyList($value); @@ -50,10 +50,8 @@ function allIsNonEmptyList($value): iterable * @psalm-pure * * @param mixed $value - * - * @return iterable|null> */ -function allNullOrIsNonEmptyList($value): iterable +function allNullOrIsNonEmptyList(mixed $value): iterable { Assert::allNullOrIsNonEmptyList($value); diff --git a/tests/static-analysis/assert-isNonEmptyMap.php b/tests/static-analysis/assert-isNonEmptyMap.php index ccb4e8f2..1942f93d 100644 --- a/tests/static-analysis/assert-isNonEmptyMap.php +++ b/tests/static-analysis/assert-isNonEmptyMap.php @@ -1,5 +1,7 @@ */ -function isNonEmptyMap($value): array +function isNonEmptyMap(mixed $value): array { Assert::isNonEmptyMap($value); @@ -39,10 +41,8 @@ function isNonEmptyMapWithKnownType(array $value): array * @psalm-pure * * @param mixed $value - * - * @return mixed */ -function nullOrIsNonEmptyMap($value) +function nullOrIsNonEmptyMap(mixed $value): mixed { Assert::nullOrIsNonEmptyMap($value); @@ -53,8 +53,6 @@ function nullOrIsNonEmptyMap($value) * @psalm-pure * * @param iterable> $value - * - * @return iterable> */ function allIsNonEmptyMap(iterable $value): iterable { @@ -67,8 +65,6 @@ function allIsNonEmptyMap(iterable $value): iterable * @psalm-pure * * @param iterable> $value - * - * @return iterable> */ function allNullOrIsNonEmptyMap(iterable $value): iterable { diff --git a/tests/static-analysis/assert-isNotA.php b/tests/static-analysis/assert-isNotA.php index dabc62bb..a9315721 100644 --- a/tests/static-analysis/assert-isNotA.php +++ b/tests/static-analysis/assert-isNotA.php @@ -1,5 +1,7 @@ $value * @param class-string $class - * - * @return iterable */ function allIsNotA($value, $class): iterable { @@ -53,8 +51,6 @@ function allIsNotA($value, $class): iterable * * @param iterable $value * @param class-string $class - * - * @return iterable */ function allNullOrIsNotA($value, $class): iterable { diff --git a/tests/static-analysis/assert-isTraversable.php b/tests/static-analysis/assert-isTraversable.php deleted file mode 100644 index 57b2dfca..00000000 --- a/tests/static-analysis/assert-isTraversable.php +++ /dev/null @@ -1,46 +0,0 @@ - - */ -function allIsTraversable($value): iterable -{ - /** @psalm-suppress DeprecatedMethod */ - Assert::allIsTraversable($value); - - return $value; -} diff --git a/tests/static-analysis/assert-keyExists.php b/tests/static-analysis/assert-keyExists.php index 88e223db..39b7dc18 100644 --- a/tests/static-analysis/assert-keyExists.php +++ b/tests/static-analysis/assert-keyExists.php @@ -1,5 +1,7 @@ $array * @param array-key $key - * - * @return iterable */ function allKeyExists(iterable $array, $key): iterable { @@ -48,8 +48,6 @@ function allKeyExists(iterable $array, $key): iterable * * @param iterable $array * @param array-key $key - * - * @return iterable */ function allNullOrKeyExists(iterable $array, $key): iterable { diff --git a/tests/static-analysis/assert-keyNotExists.php b/tests/static-analysis/assert-keyNotExists.php index 6c7e827a..fd81821c 100644 --- a/tests/static-analysis/assert-keyNotExists.php +++ b/tests/static-analysis/assert-keyNotExists.php @@ -1,5 +1,7 @@ $array * @param array-key $key - * - * @return iterable */ function allKeyNotExists(iterable $array, $key): iterable { @@ -48,8 +48,6 @@ function allKeyNotExists(iterable $array, $key): iterable * * @param iterable $array * @param array-key $key - * - * @return iterable */ function allNullOrKeyNotExists(iterable $array, $key): iterable { diff --git a/tests/static-analysis/assert-length.php b/tests/static-analysis/assert-length.php index a8724928..339aa2a5 100644 --- a/tests/static-analysis/assert-length.php +++ b/tests/static-analysis/assert-length.php @@ -1,5 +1,7 @@ $value - * - * @return iterable */ function allLength(iterable $value, int $length): iterable { @@ -42,8 +42,6 @@ function allLength(iterable $value, int $length): iterable * @psalm-pure * * @param iterable $value - * - * @return iterable */ function allNullOrLength(iterable $value, int $length): iterable { diff --git a/tests/static-analysis/assert-lengthBetween.php b/tests/static-analysis/assert-lengthBetween.php index e6b106f0..2e096ccc 100644 --- a/tests/static-analysis/assert-lengthBetween.php +++ b/tests/static-analysis/assert-lengthBetween.php @@ -1,16 +1,15 @@ $value - * @param int|float $min - * @param int|float $max * * @return iterable */ -function allLengthBetween(iterable $value, $min, $max): iterable +function allLengthBetween(iterable $value, int $min, int $max): iterable { Assert::allLengthBetween($value, $min, $max); @@ -50,12 +44,10 @@ function allLengthBetween(iterable $value, $min, $max): iterable * @psalm-pure * * @param iterable $value - * @param int|float $min - * @param int|float $max * * @return iterable */ -function allNullOrLengthBetween(iterable $value, $min, $max): iterable +function allNullOrLengthBetween(iterable $value, int $min, int $max): iterable { Assert::allNullOrLengthBetween($value, $min, $max); diff --git a/tests/static-analysis/assert-lessThan.php b/tests/static-analysis/assert-lessThan.php index 2feaa45a..2d3a84e6 100644 --- a/tests/static-analysis/assert-lessThan.php +++ b/tests/static-analysis/assert-lessThan.php @@ -1,5 +1,7 @@ $value - * - * @return iterable */ function allLower(iterable $value): iterable { @@ -46,8 +46,6 @@ function allLower(iterable $value): iterable * @psalm-pure * * @param iterable $value - * - * @return iterable */ function allNullOrLower(iterable $value): iterable { diff --git a/tests/static-analysis/assert-maxCount.php b/tests/static-analysis/assert-maxCount.php index 8a0c16da..fa6b1220 100644 --- a/tests/static-analysis/assert-maxCount.php +++ b/tests/static-analysis/assert-maxCount.php @@ -1,5 +1,7 @@ $array * @param int|float $max - * - * @return iterable */ function allMaxCount(iterable $array, $max): iterable { @@ -47,8 +43,6 @@ function allMaxCount(iterable $array, $max): iterable /** * @param iterable $array * @param int|float $max - * - * @return iterable */ function allNullOrMaxCount(iterable $array, $max): iterable { diff --git a/tests/static-analysis/assert-maxLength.php b/tests/static-analysis/assert-maxLength.php index 89c6c07a..3534a0d2 100644 --- a/tests/static-analysis/assert-maxLength.php +++ b/tests/static-analysis/assert-maxLength.php @@ -1,15 +1,15 @@ $value - * @param int|float $max * * @return iterable */ -function allMaxLength(iterable $value, $max): iterable +function allMaxLength(iterable $value, int $max): iterable { Assert::allMaxLength($value, $max); @@ -47,11 +44,10 @@ function allMaxLength(iterable $value, $max): iterable * @psalm-pure * * @param iterable $value - * @param int|float $max * * @return iterable */ -function allNullOrMaxLength(iterable $value, $max): iterable +function allNullOrMaxLength(iterable $value, int $max): iterable { Assert::allMaxLength($value, $max); diff --git a/tests/static-analysis/assert-methodExists.php b/tests/static-analysis/assert-methodExists.php index 5b0bbcbc..a3a19dde 100644 --- a/tests/static-analysis/assert-methodExists.php +++ b/tests/static-analysis/assert-methodExists.php @@ -1,5 +1,7 @@ $classOrObject * @param mixed $method - * - * @return iterable */ function allMethodExists(iterable $classOrObject, $method): iterable { @@ -54,8 +50,6 @@ function allMethodExists(iterable $classOrObject, $method): iterable * * @param iterable $classOrObject * @param mixed $method - * - * @return iterable */ function allNullOrMethodExists(iterable $classOrObject, $method): iterable { diff --git a/tests/static-analysis/assert-methodNotExists.php b/tests/static-analysis/assert-methodNotExists.php index 87e98b88..9beb711a 100644 --- a/tests/static-analysis/assert-methodNotExists.php +++ b/tests/static-analysis/assert-methodNotExists.php @@ -1,5 +1,7 @@ $classOrObject * @param mixed $method - * - * @return iterable */ function allMethodNotExists(iterable $classOrObject, $method): iterable { @@ -54,8 +50,6 @@ function allMethodNotExists(iterable $classOrObject, $method): iterable * * @param iterable $classOrObject * @param mixed $method - * - * @return iterable */ function allNullOrMethodNotExists(iterable $classOrObject, $method): iterable { diff --git a/tests/static-analysis/assert-minCount.php b/tests/static-analysis/assert-minCount.php index 58af6667..c2498ec6 100644 --- a/tests/static-analysis/assert-minCount.php +++ b/tests/static-analysis/assert-minCount.php @@ -1,5 +1,7 @@ $value * @param int|float $min - * - * @return iterable */ function allMinLength(iterable $value, $min): iterable { @@ -48,8 +48,6 @@ function allMinLength(iterable $value, $min): iterable * * @param iterable $value * @param int|float $min - * - * @return iterable */ function allNullOrMinLength(iterable $value, $min): iterable { diff --git a/tests/static-analysis/assert-natural.php b/tests/static-analysis/assert-natural.php index e53a60aa..3c7b3369 100644 --- a/tests/static-analysis/assert-natural.php +++ b/tests/static-analysis/assert-natural.php @@ -1,5 +1,7 @@ - * + * * * @psalm-suppress MixedInferredReturnType https://github.com/vimeo/psalm/issues/5052 * @psalm-suppress MixedReturnStatement https://github.com/vimeo/psalm/issues/5052 */ -function allNatural($value): iterable +function allNatural(mixed $value): iterable { Assert::allNatural($value); @@ -53,13 +53,11 @@ function allNatural($value): iterable * @psalm-pure * * @param mixed $value - * - * @return iterable - * + * * * @psalm-suppress MixedInferredReturnType https://github.com/vimeo/psalm/issues/5052 * @psalm-suppress MixedReturnStatement https://github.com/vimeo/psalm/issues/5052 */ -function allNullOrNatural($value): iterable +function allNullOrNatural(mixed $value): iterable { Assert::allNullOrNatural($value); diff --git a/tests/static-analysis/assert-notContains.php b/tests/static-analysis/assert-notContains.php index 3edda639..1f6af8e7 100644 --- a/tests/static-analysis/assert-notContains.php +++ b/tests/static-analysis/assert-notContains.php @@ -1,5 +1,7 @@ $value - * - * @return iterable */ function allNotContains(iterable $value, string $subString): iterable { @@ -42,8 +42,6 @@ function allNotContains(iterable $value, string $subString): iterable * @psalm-pure * * @param iterable $value - * - * @return iterable */ function allNullOrNotContains(iterable $value, string $subString): iterable { diff --git a/tests/static-analysis/assert-notEmpty.php b/tests/static-analysis/assert-notEmpty.php index 99816ca8..60a1fa3d 100644 --- a/tests/static-analysis/assert-notEmpty.php +++ b/tests/static-analysis/assert-notEmpty.php @@ -1,5 +1,7 @@ $class - * - * @return mixed */ -function nullOrNotInstanceOf($value, $class) +function nullOrNotInstanceOf($value, $class): mixed { Assert::nullOrNotInstanceOf($value, $class); @@ -42,10 +42,8 @@ function nullOrNotInstanceOf($value, $class) * * @param mixed $value * @param class-string $class - * - * @return mixed */ -function allNotInstanceOf($value, $class) +function allNotInstanceOf($value, $class): mixed { Assert::allNotInstanceOf($value, $class); @@ -59,10 +57,8 @@ function allNotInstanceOf($value, $class) * * @param mixed $value * @param class-string $class - * - * @return mixed */ -function allNullOrNotInstanceOf($value, $class) +function allNullOrNotInstanceOf($value, $class): mixed { Assert::allNullOrNotInstanceOf($value, $class); diff --git a/tests/static-analysis/assert-notNull.php b/tests/static-analysis/assert-notNull.php index 91e55ca9..ff4914c2 100644 --- a/tests/static-analysis/assert-notNull.php +++ b/tests/static-analysis/assert-notNull.php @@ -1,5 +1,7 @@ $value - * - * @return iterable */ function allNotRegex(iterable $value, string $pattern): iterable { @@ -42,8 +42,6 @@ function allNotRegex(iterable $value, string $pattern): iterable * @psalm-pure * * @param iterable $value - * - * @return iterable */ function allNullOrNotRegex(iterable $value, string $pattern): iterable { diff --git a/tests/static-analysis/assert-notSame.php b/tests/static-analysis/assert-notSame.php index 840686b4..58ee3cf9 100644 --- a/tests/static-analysis/assert-notSame.php +++ b/tests/static-analysis/assert-notSame.php @@ -1,5 +1,7 @@ $value - * - * @return iterable */ function allNotWhitespaceOnly(iterable $value): iterable { @@ -42,8 +42,6 @@ function allNotWhitespaceOnly(iterable $value): iterable * @psalm-pure * * @param iterable $value - * - * @return iterable */ function allNullOrNotWhitespaceOnly(iterable $value): iterable { diff --git a/tests/static-analysis/assert-null.php b/tests/static-analysis/assert-null.php index 97a17b5b..3aa6f9ab 100644 --- a/tests/static-analysis/assert-null.php +++ b/tests/static-analysis/assert-null.php @@ -1,5 +1,7 @@ */ -function allNull($value): iterable +function allNull(mixed $value): iterable { Assert::allNull($value); diff --git a/tests/static-analysis/assert-numeric.php b/tests/static-analysis/assert-numeric.php index 69b92917..a91e96ed 100644 --- a/tests/static-analysis/assert-numeric.php +++ b/tests/static-analysis/assert-numeric.php @@ -1,5 +1,7 @@ */ -function allNumeric($value): iterable +function allNumeric(mixed $value): iterable { Assert::allNumeric($value); @@ -50,10 +50,8 @@ function allNumeric($value): iterable * @psalm-pure * * @param mixed $value - * - * @return iterable */ -function allNullOrNumeric($value): iterable +function allNullOrNumeric(mixed $value): iterable { Assert::allNullOrNumeric($value); diff --git a/tests/static-analysis/assert-object.php b/tests/static-analysis/assert-object.php index 184451a3..82528073 100644 --- a/tests/static-analysis/assert-object.php +++ b/tests/static-analysis/assert-object.php @@ -1,5 +1,7 @@ */ -function allObject($value): iterable +function allObject(mixed $value): iterable { Assert::allObject($value); @@ -46,10 +46,8 @@ function allObject($value): iterable * @psalm-pure * * @param mixed $value - * - * @return iterable */ -function allNullOrObject($value): iterable +function allNullOrObject(mixed $value): iterable { Assert::allNullOrObject($value); diff --git a/tests/static-analysis/assert-oneOf.php b/tests/static-analysis/assert-oneOf.php index 8fe4e376..3a5e58ae 100644 --- a/tests/static-analysis/assert-oneOf.php +++ b/tests/static-analysis/assert-oneOf.php @@ -1,5 +1,7 @@ */ -function allPositiveInteger($value): iterable +function allPositiveInteger(mixed $value): iterable { Assert::allPositiveInteger($value); @@ -64,10 +64,8 @@ function allPositiveInteger($value): iterable * @psalm-pure * * @param mixed $value - * - * @return iterable */ -function allNullOrPositiveInteger($value): iterable +function allNullOrPositiveInteger(mixed $value): iterable { Assert::allPositiveInteger($value); diff --git a/tests/static-analysis/assert-propertyExists.php b/tests/static-analysis/assert-propertyExists.php index 2588301a..0e52c9a1 100644 --- a/tests/static-analysis/assert-propertyExists.php +++ b/tests/static-analysis/assert-propertyExists.php @@ -1,5 +1,7 @@ $classOrObject * @param mixed $property - * - * @return iterable */ function allPropertyExists(iterable $classOrObject, $property): iterable { @@ -54,8 +50,6 @@ function allPropertyExists(iterable $classOrObject, $property): iterable * * @param iterable $classOrObject * @param mixed $property - * - * @return iterable */ function allNullOrPropertyExists(iterable $classOrObject, $property): iterable { diff --git a/tests/static-analysis/assert-propertyNotExists.php b/tests/static-analysis/assert-propertyNotExists.php index 5c1d1e5f..3ca6e45b 100644 --- a/tests/static-analysis/assert-propertyNotExists.php +++ b/tests/static-analysis/assert-propertyNotExists.php @@ -1,5 +1,7 @@ $classOrObject * @param mixed $property - * - * @return iterable */ function allPropertyNotExists(iterable $classOrObject, $property): iterable { @@ -54,8 +50,6 @@ function allPropertyNotExists(iterable $classOrObject, $property): iterable * * @param iterable $classOrObject * @param mixed $property - * - * @return iterable */ function allNullOrPropertyNotExists(iterable $classOrObject, $property): iterable { diff --git a/tests/static-analysis/assert-psalm-notRedundant.php b/tests/static-analysis/assert-psalm-notRedundant.php index 0e0befa9..344f7991 100644 --- a/tests/static-analysis/assert-psalm-notRedundant.php +++ b/tests/static-analysis/assert-psalm-notRedundant.php @@ -1,5 +1,7 @@ */ -function preserveContainerAllArrayIterator($value) +function preserveContainerAllArrayIterator(mixed $value) { Assert::allString($value); diff --git a/tests/static-analysis/assert-psalm-preserveStringType.php b/tests/static-analysis/assert-psalm-preserveStringType.php index f576c4cd..f46c14e1 100644 --- a/tests/static-analysis/assert-psalm-preserveStringType.php +++ b/tests/static-analysis/assert-psalm-preserveStringType.php @@ -1,5 +1,7 @@ $value - * - * @return iterable */ function allReadable(iterable $value): iterable { @@ -32,8 +32,6 @@ function allReadable(iterable $value): iterable /** * @param iterable $value - * - * @return iterable */ function allNullOrReadable(iterable $value): iterable { diff --git a/tests/static-analysis/assert-regex.php b/tests/static-analysis/assert-regex.php index f589daa1..2c2c5b35 100644 --- a/tests/static-analysis/assert-regex.php +++ b/tests/static-analysis/assert-regex.php @@ -1,5 +1,7 @@ $value - * - * @return iterable */ function allRegex(iterable $value, string $pattern): iterable { @@ -42,8 +42,6 @@ function allRegex(iterable $value, string $pattern): iterable * @psalm-pure * * @param iterable $value - * - * @return iterable */ function allNullOrRegex(iterable $value, string $pattern): iterable { diff --git a/tests/static-analysis/assert-resource.php b/tests/static-analysis/assert-resource.php index e0236a6f..37c14f4e 100644 --- a/tests/static-analysis/assert-resource.php +++ b/tests/static-analysis/assert-resource.php @@ -1,5 +1,7 @@ */ function allResource($value, $type): iterable { @@ -54,8 +50,6 @@ function allResource($value, $type): iterable * * @param mixed $value * @param null|string $type - * - * @return iterable */ function allNullOrResource($value, $type): iterable { diff --git a/tests/static-analysis/assert-same.php b/tests/static-analysis/assert-same.php index b091e3ce..98b2417e 100644 --- a/tests/static-analysis/assert-same.php +++ b/tests/static-analysis/assert-same.php @@ -1,5 +1,7 @@ */ -function allScalar($value): iterable +function allScalar(mixed $value): iterable { Assert::allScalar($value); @@ -50,10 +46,8 @@ function allScalar($value): iterable * @psalm-pure * * @param mixed $value - * - * @return iterable */ -function allNullOrScalar($value): iterable +function allNullOrScalar(mixed $value): iterable { Assert::allNullOrScalar($value); diff --git a/tests/static-analysis/assert-startsWith.php b/tests/static-analysis/assert-startsWith.php index 7312eb41..47daf68e 100644 --- a/tests/static-analysis/assert-startsWith.php +++ b/tests/static-analysis/assert-startsWith.php @@ -1,5 +1,7 @@ $value - * - * @return iterable */ function allStartsWith(iterable $value, string $prefix): iterable { @@ -42,8 +42,6 @@ function allStartsWith(iterable $value, string $prefix): iterable * @psalm-pure * * @param iterable $value - * - * @return iterable */ function allNullOrStartsWith(iterable $value, string $prefix): iterable { diff --git a/tests/static-analysis/assert-startsWithLetter.php b/tests/static-analysis/assert-startsWithLetter.php index 969c302d..92c7857c 100644 --- a/tests/static-analysis/assert-startsWithLetter.php +++ b/tests/static-analysis/assert-startsWithLetter.php @@ -1,5 +1,7 @@ */ -function allString($value): iterable +function allString(mixed $value): iterable { Assert::allString($value); @@ -46,10 +46,8 @@ function allString($value): iterable * @psalm-pure * * @param mixed $value - * - * @return iterable */ -function allNullOrString($value): iterable +function allNullOrString(mixed $value): iterable { Assert::allNullOrString($value); diff --git a/tests/static-analysis/assert-stringNotEmpty.php b/tests/static-analysis/assert-stringNotEmpty.php index ff1265c3..66014d2f 100644 --- a/tests/static-analysis/assert-stringNotEmpty.php +++ b/tests/static-analysis/assert-stringNotEmpty.php @@ -1,5 +1,7 @@ */ -function allStringNotEmpty($value): iterable +function allStringNotEmpty(mixed $value): iterable { Assert::allStringNotEmpty($value); @@ -50,10 +50,8 @@ function allStringNotEmpty($value): iterable * @psalm-pure * * @param mixed $value - * - * @return iterable */ -function allNullOrStringNotEmpty($value): iterable +function allNullOrStringNotEmpty(mixed $value): iterable { Assert::allNullOrStringNotEmpty($value); diff --git a/tests/static-analysis/assert-subclassOf.php b/tests/static-analysis/assert-subclassOf.php index be774551..66b1f54a 100644 --- a/tests/static-analysis/assert-subclassOf.php +++ b/tests/static-analysis/assert-subclassOf.php @@ -1,5 +1,7 @@ |stdClass */ -function subclassOf($value) +function subclassOf(mixed $value) { Assert::subclassOf($value, stdClass::class); @@ -26,7 +28,7 @@ function subclassOf($value) * * @return null|class-string|stdClass */ -function nullOrSubclassOf($value) +function nullOrSubclassOf(mixed $value) { Assert::nullOrSubclassOf($value, stdClass::class); @@ -37,10 +39,8 @@ function nullOrSubclassOf($value) * @psalm-pure * * @param mixed $value - * - * @return iterable|stdClass> */ -function allSubclassOf($value): iterable +function allSubclassOf(mixed $value): iterable { Assert::allSubclassOf($value, stdClass::class); @@ -51,10 +51,8 @@ function allSubclassOf($value): iterable * @psalm-pure * * @param mixed $value - * - * @return iterable|stdClass|null> */ -function allNullOrSubclassOf($value): iterable +function allNullOrSubclassOf(mixed $value): iterable { Assert::allNullOrSubclassOf($value, stdClass::class); diff --git a/tests/static-analysis/assert-throws.php b/tests/static-analysis/assert-throws.php index 817d8f5f..756e52a7 100644 --- a/tests/static-analysis/assert-throws.php +++ b/tests/static-analysis/assert-throws.php @@ -1,5 +1,7 @@ $value * @param class-string $class - * - * @return iterable */ function allThrows(iterable $value, $class): iterable { @@ -41,8 +41,6 @@ function allThrows(iterable $value, $class): iterable /** * @param iterable $value * @param class-string $class - * - * @return iterable */ function allNullOrThrows(iterable $value, $class): iterable { diff --git a/tests/static-analysis/assert-true.php b/tests/static-analysis/assert-true.php index 5d289680..80c1a4ee 100644 --- a/tests/static-analysis/assert-true.php +++ b/tests/static-analysis/assert-true.php @@ -1,5 +1,7 @@ */ -function allTrue($value): iterable +function allTrue(mixed $value): iterable { Assert::allTrue($value); @@ -50,10 +50,8 @@ function allTrue($value): iterable * @psalm-pure * * @param mixed $value - * - * @return iterable */ -function allNullOrTrue($value): iterable +function allNullOrTrue(mixed $value): iterable { Assert::allNullOrTrue($value); diff --git a/tests/static-analysis/assert-unicodeLetters.php b/tests/static-analysis/assert-unicodeLetters.php index 73eb172e..e2d6d7c2 100644 --- a/tests/static-analysis/assert-unicodeLetters.php +++ b/tests/static-analysis/assert-unicodeLetters.php @@ -1,5 +1,7 @@ $values - * - * @return iterable */ function allUniqueValues(iterable $values): iterable { @@ -32,8 +32,6 @@ function allUniqueValues(iterable $values): iterable /** * @param iterable $values - * - * @return iterable */ function allNullOrUniqueValues(iterable $values): iterable { diff --git a/tests/static-analysis/assert-upper.php b/tests/static-analysis/assert-upper.php index fb864647..a4967309 100644 --- a/tests/static-analysis/assert-upper.php +++ b/tests/static-analysis/assert-upper.php @@ -1,5 +1,7 @@ $value - * - * @return iterable */ function allUpper(iterable $value): iterable { @@ -42,8 +42,6 @@ function allUpper(iterable $value): iterable * @psalm-pure * * @param iterable $value - * - * @return iterable */ function allNullOrUpper(iterable $value): iterable { diff --git a/tests/static-analysis/assert-uuid.php b/tests/static-analysis/assert-uuid.php index e1cefbff..f2732361 100644 --- a/tests/static-analysis/assert-uuid.php +++ b/tests/static-analysis/assert-uuid.php @@ -1,5 +1,7 @@ $value - * - * @return iterable */ function allUuid(iterable $value): iterable { @@ -42,8 +42,6 @@ function allUuid(iterable $value): iterable * @psalm-pure * * @param iterable $value - * - * @return iterable */ function allNullOrUuid(iterable $value): iterable { diff --git a/tests/static-analysis/assert-validArrayKey.php b/tests/static-analysis/assert-validArrayKey.php index 6a2a152e..8d0cf4d6 100644 --- a/tests/static-analysis/assert-validArrayKey.php +++ b/tests/static-analysis/assert-validArrayKey.php @@ -1,5 +1,7 @@ */ -function allValidArrayKey($value): iterable +function allValidArrayKey(mixed $value): iterable { Assert::allValidArrayKey($value); @@ -50,10 +50,8 @@ function allValidArrayKey($value): iterable * @psalm-pure * * @param mixed $value - * - * @return iterable */ -function allNullOrValidArrayKey($value): iterable +function allNullOrValidArrayKey(mixed $value): iterable { Assert::allNullOrValidArrayKey($value); diff --git a/tests/static-analysis/assert-writable.php b/tests/static-analysis/assert-writable.php index 3c7b17d9..3f0476f0 100644 --- a/tests/static-analysis/assert-writable.php +++ b/tests/static-analysis/assert-writable.php @@ -1,5 +1,7 @@ $value - * - * @return iterable */ function allWritable(iterable $value): iterable { @@ -32,8 +32,6 @@ function allWritable(iterable $value): iterable /** * @param iterable $value - * - * @return iterable */ function allNullOrWritable(iterable $value): iterable { diff --git a/tools/php-cs-fixer/composer.json b/tools/php-cs-fixer/composer.json index d4b64129..d2f9bf42 100644 --- a/tools/php-cs-fixer/composer.json +++ b/tools/php-cs-fixer/composer.json @@ -1,4 +1,7 @@ { + "require": { + "php": "^8.2" + }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.64" } diff --git a/tools/php-cs-fixer/composer.lock b/tools/php-cs-fixer/composer.lock index 83733baf..a4d78cf0 100644 --- a/tools/php-cs-fixer/composer.lock +++ b/tools/php-cs-fixer/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "effcd452310b5d659e4aca51ac41579a", + "content-hash": "c65b2ac4e04e9b501ba52ab53098179c", "packages": [], "packages-dev": [ { @@ -73,16 +73,16 @@ }, { "name": "composer/pcre", - "version": "3.3.1", + "version": "3.3.2", "source": { "type": "git", "url": "https://github.com/composer/pcre.git", - "reference": "63aaeac21d7e775ff9bc9d45021e1745c97521c4" + "reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/pcre/zipball/63aaeac21d7e775ff9bc9d45021e1745c97521c4", - "reference": "63aaeac21d7e775ff9bc9d45021e1745c97521c4", + "url": "https://api.github.com/repos/composer/pcre/zipball/b2bed4734f0cc156ee1fe9c0da2550420d99a21e", + "reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e", "shasum": "" }, "require": { @@ -92,19 +92,19 @@ "phpstan/phpstan": "<1.11.10" }, "require-dev": { - "phpstan/phpstan": "^1.11.10", - "phpstan/phpstan-strict-rules": "^1.1", + "phpstan/phpstan": "^1.12 || ^2", + "phpstan/phpstan-strict-rules": "^1 || ^2", "phpunit/phpunit": "^8 || ^9" }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "3.x-dev" - }, "phpstan": { "includes": [ "extension.neon" ] + }, + "branch-alias": { + "dev-main": "3.x-dev" } }, "autoload": { @@ -132,7 +132,7 @@ ], "support": { "issues": "https://github.com/composer/pcre/issues", - "source": "https://github.com/composer/pcre/tree/3.3.1" + "source": "https://github.com/composer/pcre/tree/3.3.2" }, "funding": [ { @@ -148,20 +148,20 @@ "type": "tidelift" } ], - "time": "2024-08-27T18:44:43+00:00" + "time": "2024-11-12T16:29:46+00:00" }, { "name": "composer/semver", - "version": "3.4.3", + "version": "3.4.4", "source": { "type": "git", "url": "https://github.com/composer/semver.git", - "reference": "4313d26ada5e0c4edfbd1dc481a92ff7bff91f12" + "reference": "198166618906cb2de69b95d7d47e5fa8aa1b2b95" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/4313d26ada5e0c4edfbd1dc481a92ff7bff91f12", - "reference": "4313d26ada5e0c4edfbd1dc481a92ff7bff91f12", + "url": "https://api.github.com/repos/composer/semver/zipball/198166618906cb2de69b95d7d47e5fa8aa1b2b95", + "reference": "198166618906cb2de69b95d7d47e5fa8aa1b2b95", "shasum": "" }, "require": { @@ -213,7 +213,7 @@ "support": { "irc": "ircs://irc.libera.chat:6697/composer", "issues": "https://github.com/composer/semver/issues", - "source": "https://github.com/composer/semver/tree/3.4.3" + "source": "https://github.com/composer/semver/tree/3.4.4" }, "funding": [ { @@ -223,13 +223,9 @@ { "url": "https://github.com/composer", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", - "type": "tidelift" } ], - "time": "2024-09-19T14:15:21+00:00" + "time": "2025-08-20T19:15:30+00:00" }, { "name": "composer/xdebug-handler", @@ -346,16 +342,16 @@ }, { "name": "fidry/cpu-core-counter", - "version": "1.2.0", + "version": "1.3.0", "source": { "type": "git", "url": "https://github.com/theofidry/cpu-core-counter.git", - "reference": "8520451a140d3f46ac33042715115e290cf5785f" + "reference": "db9508f7b1474469d9d3c53b86f817e344732678" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theofidry/cpu-core-counter/zipball/8520451a140d3f46ac33042715115e290cf5785f", - "reference": "8520451a140d3f46ac33042715115e290cf5785f", + "url": "https://api.github.com/repos/theofidry/cpu-core-counter/zipball/db9508f7b1474469d9d3c53b86f817e344732678", + "reference": "db9508f7b1474469d9d3c53b86f817e344732678", "shasum": "" }, "require": { @@ -365,10 +361,10 @@ "fidry/makefile": "^0.2.0", "fidry/php-cs-fixer-config": "^1.1.2", "phpstan/extension-installer": "^1.2.0", - "phpstan/phpstan": "^1.9.2", - "phpstan/phpstan-deprecation-rules": "^1.0.0", - "phpstan/phpstan-phpunit": "^1.2.2", - "phpstan/phpstan-strict-rules": "^1.4.4", + "phpstan/phpstan": "^2.0", + "phpstan/phpstan-deprecation-rules": "^2.0.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpstan/phpstan-strict-rules": "^2.0", "phpunit/phpunit": "^8.5.31 || ^9.5.26", "webmozarts/strict-phpunit": "^7.5" }, @@ -395,7 +391,7 @@ ], "support": { "issues": "https://github.com/theofidry/cpu-core-counter/issues", - "source": "https://github.com/theofidry/cpu-core-counter/tree/1.2.0" + "source": "https://github.com/theofidry/cpu-core-counter/tree/1.3.0" }, "funding": [ { @@ -403,61 +399,61 @@ "type": "github" } ], - "time": "2024-08-06T10:04:20+00:00" + "time": "2025-08-14T07:29:31+00:00" }, { "name": "friendsofphp/php-cs-fixer", - "version": "v3.64.0", + "version": "v3.89.0", "source": { "type": "git", "url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git", - "reference": "58dd9c931c785a79739310aef5178928305ffa67" + "reference": "4dd6768cb7558440d27d18f54909eee417317ce9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/58dd9c931c785a79739310aef5178928305ffa67", - "reference": "58dd9c931c785a79739310aef5178928305ffa67", + "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/4dd6768cb7558440d27d18f54909eee417317ce9", + "reference": "4dd6768cb7558440d27d18f54909eee417317ce9", "shasum": "" }, "require": { - "clue/ndjson-react": "^1.0", + "clue/ndjson-react": "^1.3", "composer/semver": "^3.4", - "composer/xdebug-handler": "^3.0.3", + "composer/xdebug-handler": "^3.0.5", "ext-filter": "*", + "ext-hash": "*", "ext-json": "*", "ext-tokenizer": "*", - "fidry/cpu-core-counter": "^1.0", + "fidry/cpu-core-counter": "^1.3", "php": "^7.4 || ^8.0", - "react/child-process": "^0.6.5", - "react/event-loop": "^1.0", - "react/promise": "^2.0 || ^3.0", - "react/socket": "^1.0", - "react/stream": "^1.0", - "sebastian/diff": "^4.0 || ^5.0 || ^6.0", - "symfony/console": "^5.4 || ^6.0 || ^7.0", - "symfony/event-dispatcher": "^5.4 || ^6.0 || ^7.0", - "symfony/filesystem": "^5.4 || ^6.0 || ^7.0", - "symfony/finder": "^5.4 || ^6.0 || ^7.0", - "symfony/options-resolver": "^5.4 || ^6.0 || ^7.0", - "symfony/polyfill-mbstring": "^1.28", - "symfony/polyfill-php80": "^1.28", - "symfony/polyfill-php81": "^1.28", - "symfony/process": "^5.4 || ^6.0 || ^7.0", - "symfony/stopwatch": "^5.4 || ^6.0 || ^7.0" + "react/child-process": "^0.6.6", + "react/event-loop": "^1.5", + "react/socket": "^1.16", + "react/stream": "^1.4", + "sebastian/diff": "^4.0.6 || ^5.1.1 || ^6.0.2 || ^7.0", + "symfony/console": "^5.4.47 || ^6.4.24 || ^7.0", + "symfony/event-dispatcher": "^5.4.45 || ^6.4.24 || ^7.0", + "symfony/filesystem": "^5.4.45 || ^6.4.24 || ^7.0", + "symfony/finder": "^5.4.45 || ^6.4.24 || ^7.0", + "symfony/options-resolver": "^5.4.45 || ^6.4.24 || ^7.0", + "symfony/polyfill-mbstring": "^1.33", + "symfony/polyfill-php80": "^1.33", + "symfony/polyfill-php81": "^1.33", + "symfony/polyfill-php84": "^1.33", + "symfony/process": "^5.4.47 || ^6.4.24 || ^7.2", + "symfony/stopwatch": "^5.4.45 || ^6.4.24 || ^7.0" }, "require-dev": { - "facile-it/paraunit": "^1.3 || ^2.3", - "infection/infection": "^0.29.5", - "justinrainbow/json-schema": "^5.2", - "keradus/cli-executor": "^2.1", - "mikey179/vfsstream": "^1.6.11", - "php-coveralls/php-coveralls": "^2.7", - "php-cs-fixer/accessible-object": "^1.1", - "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.5", - "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.5", - "phpunit/phpunit": "^9.6.19 || ^10.5.21 || ^11.2", - "symfony/var-dumper": "^5.4 || ^6.0 || ^7.0", - "symfony/yaml": "^5.4 || ^6.0 || ^7.0" + "facile-it/paraunit": "^1.3.1 || ^2.7", + "infection/infection": "^0.31.0", + "justinrainbow/json-schema": "^6.5", + "keradus/cli-executor": "^2.2", + "mikey179/vfsstream": "^1.6.12", + "php-coveralls/php-coveralls": "^2.8", + "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.6", + "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.6", + "phpunit/phpunit": "^9.6.25 || ^10.5.53 || ^11.5.34", + "symfony/var-dumper": "^5.4.48 || ^6.4.24 || ^7.3.2", + "symfony/yaml": "^5.4.45 || ^6.4.24 || ^7.3.2" }, "suggest": { "ext-dom": "For handling output formats in XML", @@ -498,7 +494,7 @@ ], "support": { "issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues", - "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.64.0" + "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.89.0" }, "funding": [ { @@ -506,7 +502,7 @@ "type": "github" } ], - "time": "2024-08-30T23:09:38+00:00" + "time": "2025-10-18T19:30:16+00:00" }, { "name": "psr/container", @@ -735,33 +731,33 @@ }, { "name": "react/child-process", - "version": "v0.6.5", + "version": "v0.6.6", "source": { "type": "git", "url": "https://github.com/reactphp/child-process.git", - "reference": "e71eb1aa55f057c7a4a0d08d06b0b0a484bead43" + "reference": "1721e2b93d89b745664353b9cfc8f155ba8a6159" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/child-process/zipball/e71eb1aa55f057c7a4a0d08d06b0b0a484bead43", - "reference": "e71eb1aa55f057c7a4a0d08d06b0b0a484bead43", + "url": "https://api.github.com/repos/reactphp/child-process/zipball/1721e2b93d89b745664353b9cfc8f155ba8a6159", + "reference": "1721e2b93d89b745664353b9cfc8f155ba8a6159", "shasum": "" }, "require": { "evenement/evenement": "^3.0 || ^2.0 || ^1.0", "php": ">=5.3.0", "react/event-loop": "^1.2", - "react/stream": "^1.2" + "react/stream": "^1.4" }, "require-dev": { - "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35", - "react/socket": "^1.8", + "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36", + "react/socket": "^1.16", "sebastian/environment": "^5.0 || ^3.0 || ^2.0 || ^1.0" }, "type": "library", "autoload": { "psr-4": { - "React\\ChildProcess\\": "src" + "React\\ChildProcess\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -798,19 +794,15 @@ ], "support": { "issues": "https://github.com/reactphp/child-process/issues", - "source": "https://github.com/reactphp/child-process/tree/v0.6.5" + "source": "https://github.com/reactphp/child-process/tree/v0.6.6" }, "funding": [ { - "url": "https://github.com/WyriHaximus", - "type": "github" - }, - { - "url": "https://github.com/clue", - "type": "github" + "url": "https://opencollective.com/reactphp", + "type": "open_collective" } ], - "time": "2022-09-16T13:41:56+00:00" + "time": "2025-01-01T16:37:48+00:00" }, { "name": "react/dns", @@ -962,23 +954,23 @@ }, { "name": "react/promise", - "version": "v3.2.0", + "version": "v3.3.0", "source": { "type": "git", "url": "https://github.com/reactphp/promise.git", - "reference": "8a164643313c71354582dc850b42b33fa12a4b63" + "reference": "23444f53a813a3296c1368bb104793ce8d88f04a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/promise/zipball/8a164643313c71354582dc850b42b33fa12a4b63", - "reference": "8a164643313c71354582dc850b42b33fa12a4b63", + "url": "https://api.github.com/repos/reactphp/promise/zipball/23444f53a813a3296c1368bb104793ce8d88f04a", + "reference": "23444f53a813a3296c1368bb104793ce8d88f04a", "shasum": "" }, "require": { "php": ">=7.1.0" }, "require-dev": { - "phpstan/phpstan": "1.10.39 || 1.4.10", + "phpstan/phpstan": "1.12.28 || 1.4.10", "phpunit/phpunit": "^9.6 || ^7.5" }, "type": "library", @@ -1023,7 +1015,7 @@ ], "support": { "issues": "https://github.com/reactphp/promise/issues", - "source": "https://github.com/reactphp/promise/tree/v3.2.0" + "source": "https://github.com/reactphp/promise/tree/v3.3.0" }, "funding": [ { @@ -1031,7 +1023,7 @@ "type": "open_collective" } ], - "time": "2024-05-24T10:39:05+00:00" + "time": "2025-08-19T18:57:03+00:00" }, { "name": "react/socket", @@ -1193,29 +1185,29 @@ }, { "name": "sebastian/diff", - "version": "6.0.2", + "version": "7.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "b4ccd857127db5d41a5b676f24b51371d76d8544" + "reference": "7ab1ea946c012266ca32390913653d844ecd085f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/b4ccd857127db5d41a5b676f24b51371d76d8544", - "reference": "b4ccd857127db5d41a5b676f24b51371d76d8544", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7ab1ea946c012266ca32390913653d844ecd085f", + "reference": "7ab1ea946c012266ca32390913653d844ecd085f", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^11.0", - "symfony/process": "^4.2 || ^5" + "phpunit/phpunit": "^12.0", + "symfony/process": "^7.2" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "6.0-dev" + "dev-main": "7.0-dev" } }, "autoload": { @@ -1248,7 +1240,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/diff/issues", "security": "https://github.com/sebastianbergmann/diff/security/policy", - "source": "https://github.com/sebastianbergmann/diff/tree/6.0.2" + "source": "https://github.com/sebastianbergmann/diff/tree/7.0.0" }, "funding": [ { @@ -1256,27 +1248,28 @@ "type": "github" } ], - "time": "2024-07-03T04:53:05+00:00" + "time": "2025-02-07T04:55:46+00:00" }, { "name": "symfony/console", - "version": "v7.1.5", + "version": "v7.3.4", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "0fa539d12b3ccf068a722bbbffa07ca7079af9ee" + "reference": "2b9c5fafbac0399a20a2e82429e2bd735dcfb7db" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/0fa539d12b3ccf068a722bbbffa07ca7079af9ee", - "reference": "0fa539d12b3ccf068a722bbbffa07ca7079af9ee", + "url": "https://api.github.com/repos/symfony/console/zipball/2b9c5fafbac0399a20a2e82429e2bd735dcfb7db", + "reference": "2b9c5fafbac0399a20a2e82429e2bd735dcfb7db", "shasum": "" }, "require": { "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3", "symfony/polyfill-mbstring": "~1.0", "symfony/service-contracts": "^2.5|^3", - "symfony/string": "^6.4|^7.0" + "symfony/string": "^7.2" }, "conflict": { "symfony/dependency-injection": "<6.4", @@ -1333,7 +1326,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v7.1.5" + "source": "https://github.com/symfony/console/tree/v7.3.4" }, "funding": [ { @@ -1344,25 +1337,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-20T08:28:38+00:00" + "time": "2025-09-22T15:31:00+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v3.5.0", + "version": "v3.6.0", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1" + "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", - "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/63afe740e99a13ba87ec199bb07bbdee937a5b62", + "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62", "shasum": "" }, "require": { @@ -1370,12 +1367,12 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "3.5-dev" - }, "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.6-dev" } }, "autoload": { @@ -1400,7 +1397,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.6.0" }, "funding": [ { @@ -1416,20 +1413,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:32:20+00:00" + "time": "2024-09-25T14:21:43+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v7.1.1", + "version": "v7.3.3", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "9fa7f7a21beb22a39a8f3f28618b29e50d7a55a7" + "reference": "b7dc69e71de420ac04bc9ab830cf3ffebba48191" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/9fa7f7a21beb22a39a8f3f28618b29e50d7a55a7", - "reference": "9fa7f7a21beb22a39a8f3f28618b29e50d7a55a7", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/b7dc69e71de420ac04bc9ab830cf3ffebba48191", + "reference": "b7dc69e71de420ac04bc9ab830cf3ffebba48191", "shasum": "" }, "require": { @@ -1480,7 +1477,7 @@ "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v7.1.1" + "source": "https://github.com/symfony/event-dispatcher/tree/v7.3.3" }, "funding": [ { @@ -1491,25 +1488,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-05-31T14:57:53+00:00" + "time": "2025-08-13T11:49:31+00:00" }, { "name": "symfony/event-dispatcher-contracts", - "version": "v3.5.0", + "version": "v3.6.0", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher-contracts.git", - "reference": "8f93aec25d41b72493c6ddff14e916177c9efc50" + "reference": "59eb412e93815df44f05f342958efa9f46b1e586" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/8f93aec25d41b72493c6ddff14e916177c9efc50", - "reference": "8f93aec25d41b72493c6ddff14e916177c9efc50", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/59eb412e93815df44f05f342958efa9f46b1e586", + "reference": "59eb412e93815df44f05f342958efa9f46b1e586", "shasum": "" }, "require": { @@ -1518,12 +1519,12 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "3.5-dev" - }, "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.6-dev" } }, "autoload": { @@ -1556,7 +1557,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.5.0" + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.6.0" }, "funding": [ { @@ -1572,20 +1573,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:32:20+00:00" + "time": "2024-09-25T14:21:43+00:00" }, { "name": "symfony/filesystem", - "version": "v7.1.5", + "version": "v7.3.2", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "61fe0566189bf32e8cfee78335d8776f64a66f5a" + "reference": "edcbb768a186b5c3f25d0643159a787d3e63b7fd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/61fe0566189bf32e8cfee78335d8776f64a66f5a", - "reference": "61fe0566189bf32e8cfee78335d8776f64a66f5a", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/edcbb768a186b5c3f25d0643159a787d3e63b7fd", + "reference": "edcbb768a186b5c3f25d0643159a787d3e63b7fd", "shasum": "" }, "require": { @@ -1622,7 +1623,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v7.1.5" + "source": "https://github.com/symfony/filesystem/tree/v7.3.2" }, "funding": [ { @@ -1633,25 +1634,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-17T09:16:35+00:00" + "time": "2025-07-07T08:17:47+00:00" }, { "name": "symfony/finder", - "version": "v7.1.4", + "version": "v7.3.2", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "d95bbf319f7d052082fb7af147e0f835a695e823" + "reference": "2a6614966ba1074fa93dae0bc804227422df4dfe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/d95bbf319f7d052082fb7af147e0f835a695e823", - "reference": "d95bbf319f7d052082fb7af147e0f835a695e823", + "url": "https://api.github.com/repos/symfony/finder/zipball/2a6614966ba1074fa93dae0bc804227422df4dfe", + "reference": "2a6614966ba1074fa93dae0bc804227422df4dfe", "shasum": "" }, "require": { @@ -1686,7 +1691,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v7.1.4" + "source": "https://github.com/symfony/finder/tree/v7.3.2" }, "funding": [ { @@ -1697,25 +1702,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-08-13T14:28:19+00:00" + "time": "2025-07-15T13:41:35+00:00" }, { "name": "symfony/options-resolver", - "version": "v7.1.1", + "version": "v7.3.3", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", - "reference": "47aa818121ed3950acd2b58d1d37d08a94f9bf55" + "reference": "0ff2f5c3df08a395232bbc3c2eb7e84912df911d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/47aa818121ed3950acd2b58d1d37d08a94f9bf55", - "reference": "47aa818121ed3950acd2b58d1d37d08a94f9bf55", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/0ff2f5c3df08a395232bbc3c2eb7e84912df911d", + "reference": "0ff2f5c3df08a395232bbc3c2eb7e84912df911d", "shasum": "" }, "require": { @@ -1753,7 +1762,7 @@ "options" ], "support": { - "source": "https://github.com/symfony/options-resolver/tree/v7.1.1" + "source": "https://github.com/symfony/options-resolver/tree/v7.3.3" }, "funding": [ { @@ -1764,16 +1773,20 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-05-31T14:57:53+00:00" + "time": "2025-08-05T10:16:07+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.31.0", + "version": "v1.33.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", @@ -1797,8 +1810,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -1832,7 +1845,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.33.0" }, "funding": [ { @@ -1843,6 +1856,10 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" @@ -1852,16 +1869,16 @@ }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.31.0", + "version": "v1.33.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe" + "reference": "380872130d3a5dd3ace2f4010d95125fde5d5c70" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe", - "reference": "b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/380872130d3a5dd3ace2f4010d95125fde5d5c70", + "reference": "380872130d3a5dd3ace2f4010d95125fde5d5c70", "shasum": "" }, "require": { @@ -1873,8 +1890,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -1910,7 +1927,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.33.0" }, "funding": [ { @@ -1921,16 +1938,20 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2025-06-27T09:58:17+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.31.0", + "version": "v1.33.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", @@ -1951,8 +1972,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -1991,7 +2012,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.33.0" }, "funding": [ { @@ -2002,6 +2023,10 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" @@ -2011,19 +2036,20 @@ }, { "name": "symfony/polyfill-mbstring", - "version": "v1.31.0", + "version": "v1.33.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341" + "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/85181ba99b2345b0ef10ce42ecac37612d9fd341", - "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493", + "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493", "shasum": "" }, "require": { + "ext-iconv": "*", "php": ">=7.2" }, "provide": { @@ -2035,8 +2061,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -2071,7 +2097,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.33.0" }, "funding": [ { @@ -2082,12 +2108,16 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2024-12-23T08:48:59+00:00" }, { "name": "symfony/polyfill-php80", @@ -2175,7 +2205,7 @@ }, { "name": "symfony/polyfill-php81", - "version": "v1.31.0", + "version": "v1.33.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php81.git", @@ -2193,8 +2223,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -2231,7 +2261,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php81/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-php81/tree/v1.33.0" }, "funding": [ { @@ -2242,6 +2272,10 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" @@ -2249,6 +2283,86 @@ ], "time": "2024-09-09T11:45:10+00:00" }, + { + "name": "symfony/polyfill-php84", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php84.git", + "reference": "d8ced4d875142b6a7426000426b8abc631d6b191" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php84/zipball/d8ced4d875142b6a7426000426b8abc631d6b191", + "reference": "d8ced4d875142b6a7426000426b8abc631d6b191", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php84\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.4+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php84/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-06-24T13:30:11+00:00" + }, { "name": "symfony/process", "version": "v7.3.4", @@ -2316,16 +2430,16 @@ }, { "name": "symfony/service-contracts", - "version": "v3.5.0", + "version": "v3.6.0", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f" + "reference": "f021b05a130d35510bd6b25fe9053c2a8a15d5d4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/bd1d9e59a81d8fa4acdcea3f617c581f7475a80f", - "reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/f021b05a130d35510bd6b25fe9053c2a8a15d5d4", + "reference": "f021b05a130d35510bd6b25fe9053c2a8a15d5d4", "shasum": "" }, "require": { @@ -2338,12 +2452,12 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "3.5-dev" - }, "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.6-dev" } }, "autoload": { @@ -2379,7 +2493,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.5.0" + "source": "https://github.com/symfony/service-contracts/tree/v3.6.0" }, "funding": [ { @@ -2395,20 +2509,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:32:20+00:00" + "time": "2025-04-25T09:37:31+00:00" }, { "name": "symfony/stopwatch", - "version": "v7.1.1", + "version": "v7.3.0", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "5b75bb1ac2ba1b9d05c47fc4b3046a625377d23d" + "reference": "5a49289e2b308214c8b9c2fda4ea454d8b8ad7cd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/5b75bb1ac2ba1b9d05c47fc4b3046a625377d23d", - "reference": "5b75bb1ac2ba1b9d05c47fc4b3046a625377d23d", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/5a49289e2b308214c8b9c2fda4ea454d8b8ad7cd", + "reference": "5a49289e2b308214c8b9c2fda4ea454d8b8ad7cd", "shasum": "" }, "require": { @@ -2441,7 +2555,7 @@ "description": "Provides a way to profile code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/stopwatch/tree/v7.1.1" + "source": "https://github.com/symfony/stopwatch/tree/v7.3.0" }, "funding": [ { @@ -2457,20 +2571,20 @@ "type": "tidelift" } ], - "time": "2024-05-31T14:57:53+00:00" + "time": "2025-02-24T10:49:57+00:00" }, { "name": "symfony/string", - "version": "v7.1.5", + "version": "v7.3.4", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "d66f9c343fa894ec2037cc928381df90a7ad4306" + "reference": "f96476035142921000338bad71e5247fbc138872" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/d66f9c343fa894ec2037cc928381df90a7ad4306", - "reference": "d66f9c343fa894ec2037cc928381df90a7ad4306", + "url": "https://api.github.com/repos/symfony/string/zipball/f96476035142921000338bad71e5247fbc138872", + "reference": "f96476035142921000338bad71e5247fbc138872", "shasum": "" }, "require": { @@ -2485,7 +2599,6 @@ }, "require-dev": { "symfony/emoji": "^7.1", - "symfony/error-handler": "^6.4|^7.0", "symfony/http-client": "^6.4|^7.0", "symfony/intl": "^6.4|^7.0", "symfony/translation-contracts": "^2.5|^3.0", @@ -2528,7 +2641,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v7.1.5" + "source": "https://github.com/symfony/string/tree/v7.3.4" }, "funding": [ { @@ -2539,12 +2652,16 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-20T08:28:38+00:00" + "time": "2025-09-11T14:36:48+00:00" } ], "aliases": [], @@ -2552,7 +2669,9 @@ "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": {}, + "platform": { + "php": "^8.2" + }, "platform-dev": {}, "plugin-api-version": "2.6.0" } diff --git a/tools/phpunit/composer.json b/tools/phpunit/composer.json index bcc5742a..a840cf77 100644 --- a/tools/phpunit/composer.json +++ b/tools/phpunit/composer.json @@ -1,5 +1,8 @@ { + "require": { + "php": "^8.2" + }, "require-dev": { - "phpunit/phpunit": "^8.5" + "phpunit/phpunit": "^11.0" } } diff --git a/tools/phpunit/composer.lock b/tools/phpunit/composer.lock index adcbed33..259067b0 100644 --- a/tools/phpunit/composer.lock +++ b/tools/phpunit/composer.lock @@ -4,138 +4,126 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "4a62d3a5c56e5614bc6122798e246434", + "content-hash": "88d5e48d30a59aa480234200be69d360", "packages": [], "packages-dev": [ { - "name": "doctrine/instantiator", - "version": "1.5.0", + "name": "myclabs/deep-copy", + "version": "1.13.4", "source": { "type": "git", - "url": "https://github.com/doctrine/instantiator.git", - "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b" + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b", - "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/07d290f0c47959fd5eed98c95ee5602db07e0b6a", + "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a", "shasum": "" }, "require": { "php": "^7.1 || ^8.0" }, + "conflict": { + "doctrine/collections": "<1.6.8", + "doctrine/common": "<2.13.3 || >=3 <3.2.2" + }, "require-dev": { - "doctrine/coding-standard": "^9 || ^11", - "ext-pdo": "*", - "ext-phar": "*", - "phpbench/phpbench": "^0.16 || ^1", - "phpstan/phpstan": "^1.4", - "phpstan/phpstan-phpunit": "^1", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "vimeo/psalm": "^4.30 || ^5.4" + "doctrine/collections": "^1.6.8", + "doctrine/common": "^2.13.3 || ^3.2.2", + "phpspec/prophecy": "^1.10", + "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" }, "type": "library", "autoload": { + "files": [ + "src/DeepCopy/deep_copy.php" + ], "psr-4": { - "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + "DeepCopy\\": "src/DeepCopy/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "authors": [ - { - "name": "Marco Pivetta", - "email": "ocramius@gmail.com", - "homepage": "https://ocramius.github.io/" - } - ], - "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", - "homepage": "https://www.doctrine-project.org/projects/instantiator.html", + "description": "Create deep copies (clones) of your objects", "keywords": [ - "constructor", - "instantiate" + "clone", + "copy", + "duplicate", + "object", + "object graph" ], "support": { - "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/1.5.0" + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.13.4" }, "funding": [ { - "url": "https://www.doctrine-project.org/sponsorship.html", - "type": "custom" - }, - { - "url": "https://www.patreon.com/phpdoctrine", - "type": "patreon" - }, - { - "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", "type": "tidelift" } ], - "time": "2022-12-30T00:15:36+00:00" + "time": "2025-08-01T08:46:24+00:00" }, { - "name": "myclabs/deep-copy", - "version": "1.12.0", + "name": "nikic/php-parser", + "version": "v5.6.1", "source": { "type": "git", - "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c" + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", - "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2", + "reference": "f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" - }, - "conflict": { - "doctrine/collections": "<1.6.8", - "doctrine/common": "<2.13.3 || >=3 <3.2.2" + "ext-ctype": "*", + "ext-json": "*", + "ext-tokenizer": "*", + "php": ">=7.4" }, "require-dev": { - "doctrine/collections": "^1.6.8", - "doctrine/common": "^2.13.3 || ^3.2.2", - "phpspec/prophecy": "^1.10", - "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" + "ircmaxell/php-yacc": "^0.0.7", + "phpunit/phpunit": "^9.0" }, + "bin": [ + "bin/php-parse" + ], "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.x-dev" + } + }, "autoload": { - "files": [ - "src/DeepCopy/deep_copy.php" - ], "psr-4": { - "DeepCopy\\": "src/DeepCopy/" + "PhpParser\\": "lib/PhpParser" } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], - "description": "Create deep copies (clones) of your objects", + "authors": [ + { + "name": "Nikita Popov" + } + ], + "description": "A PHP parser written in PHP", "keywords": [ - "clone", - "copy", - "duplicate", - "object", - "object graph" + "parser", + "php" ], "support": { - "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.12.0" + "issues": "https://github.com/nikic/PHP-Parser/issues", + "source": "https://github.com/nikic/PHP-Parser/tree/v5.6.1" }, - "funding": [ - { - "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", - "type": "tidelift" - } - ], - "time": "2024-06-12T14:39:25+00:00" + "time": "2025-08-13T20:13:15+00:00" }, { "name": "phar-io/manifest", @@ -257,40 +245,44 @@ }, { "name": "phpunit/php-code-coverage", - "version": "7.0.17", + "version": "11.0.11", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "40a4ed114a4aea5afd6df8d0f0c9cd3033097f66" + "reference": "4f7722aa9a7b76aa775e2d9d4e95d1ea16eeeef4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/40a4ed114a4aea5afd6df8d0f0c9cd3033097f66", - "reference": "40a4ed114a4aea5afd6df8d0f0c9cd3033097f66", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/4f7722aa9a7b76aa775e2d9d4e95d1ea16eeeef4", + "reference": "4f7722aa9a7b76aa775e2d9d4e95d1ea16eeeef4", "shasum": "" }, "require": { "ext-dom": "*", + "ext-libxml": "*", "ext-xmlwriter": "*", - "php": ">=7.2", - "phpunit/php-file-iterator": "^2.0.2", - "phpunit/php-text-template": "^1.2.1", - "phpunit/php-token-stream": "^3.1.3 || ^4.0", - "sebastian/code-unit-reverse-lookup": "^1.0.1", - "sebastian/environment": "^4.2.2", - "sebastian/version": "^2.0.1", - "theseer/tokenizer": "^1.1.3" + "nikic/php-parser": "^5.4.0", + "php": ">=8.2", + "phpunit/php-file-iterator": "^5.1.0", + "phpunit/php-text-template": "^4.0.1", + "sebastian/code-unit-reverse-lookup": "^4.0.1", + "sebastian/complexity": "^4.0.1", + "sebastian/environment": "^7.2.0", + "sebastian/lines-of-code": "^3.0.1", + "sebastian/version": "^5.0.2", + "theseer/tokenizer": "^1.2.3" }, "require-dev": { - "phpunit/phpunit": "^8.2.2" + "phpunit/phpunit": "^11.5.2" }, "suggest": { - "ext-xdebug": "^2.7.2" + "ext-pcov": "PHP extension that provides line coverage", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "7.0-dev" + "dev-main": "11.0.x-dev" } }, "autoload": { @@ -318,40 +310,53 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/7.0.17" + "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/11.0.11" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/php-code-coverage", + "type": "tidelift" } ], - "time": "2024-03-02T06:09:37+00:00" + "time": "2025-08-27T14:37:49+00:00" }, { "name": "phpunit/php-file-iterator", - "version": "2.0.6", + "version": "5.1.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "69deeb8664f611f156a924154985fbd4911eb36b" + "reference": "118cfaaa8bc5aef3287bf315b6060b1174754af6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/69deeb8664f611f156a924154985fbd4911eb36b", - "reference": "69deeb8664f611f156a924154985fbd4911eb36b", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/118cfaaa8bc5aef3287bf315b6060b1174754af6", + "reference": "118cfaaa8bc5aef3287bf315b6060b1174754af6", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^8.5" + "phpunit/phpunit": "^11.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0.x-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -378,7 +383,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/2.0.6" + "security": "https://github.com/sebastianbergmann/php-file-iterator/security/policy", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/5.1.0" }, "funding": [ { @@ -386,26 +392,38 @@ "type": "github" } ], - "time": "2024-03-01T13:39:50+00:00" + "time": "2024-08-27T05:02:59+00:00" }, { - "name": "phpunit/php-text-template", - "version": "1.2.1", + "name": "phpunit/php-invoker", + "version": "5.0.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" + "url": "https://github.com/sebastianbergmann/php-invoker.git", + "reference": "c1ca3814734c07492b3d4c5f794f4b0995333da2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/c1ca3814734c07492b3d4c5f794f4b0995333da2", + "reference": "c1ca3814734c07492b3d4c5f794f4b0995333da2", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=8.2" + }, + "require-dev": { + "ext-pcntl": "*", + "phpunit/phpunit": "^11.0" + }, + "suggest": { + "ext-pcntl": "*" }, "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, "autoload": { "classmap": [ "src/" @@ -422,41 +440,48 @@ "role": "lead" } ], - "description": "Simple template engine.", - "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "description": "Invoke callables with a timeout", + "homepage": "https://github.com/sebastianbergmann/php-invoker/", "keywords": [ - "template" + "process" ], "support": { - "issues": "https://github.com/sebastianbergmann/php-text-template/issues", - "source": "https://github.com/sebastianbergmann/php-text-template/tree/1.2.1" + "issues": "https://github.com/sebastianbergmann/php-invoker/issues", + "security": "https://github.com/sebastianbergmann/php-invoker/security/policy", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/5.0.1" }, - "time": "2015-06-21T13:50:34+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-07-03T05:07:44+00:00" }, { - "name": "phpunit/php-timer", - "version": "2.1.4", + "name": "phpunit/php-text-template", + "version": "4.0.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "a691211e94ff39a34811abd521c31bd5b305b0bb" + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "3e0404dc6b300e6bf56415467ebcb3fe4f33e964" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/a691211e94ff39a34811abd521c31bd5b305b0bb", - "reference": "a691211e94ff39a34811abd521c31bd5b305b0bb", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/3e0404dc6b300e6bf56415467ebcb3fe4f33e964", + "reference": "3e0404dc6b300e6bf56415467ebcb3fe4f33e964", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^8.5" + "phpunit/phpunit": "^11.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.1-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -475,14 +500,15 @@ "role": "lead" } ], - "description": "Utility class for timing", - "homepage": "https://github.com/sebastianbergmann/php-timer/", + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", "keywords": [ - "timer" + "template" ], "support": { - "issues": "https://github.com/sebastianbergmann/php-timer/issues", - "source": "https://github.com/sebastianbergmann/php-timer/tree/2.1.4" + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "security": "https://github.com/sebastianbergmann/php-text-template/security/policy", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/4.0.1" }, "funding": [ { @@ -490,33 +516,32 @@ "type": "github" } ], - "time": "2024-03-01T13:42:41+00:00" + "time": "2024-07-03T05:08:43+00:00" }, { - "name": "phpunit/php-token-stream", - "version": "4.0.4", + "name": "phpunit/php-timer", + "version": "7.0.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "a853a0e183b9db7eed023d7933a858fa1c8d25a3" + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "3b415def83fbcb41f991d9ebf16ae4ad8b7837b3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/a853a0e183b9db7eed023d7933a858fa1c8d25a3", - "reference": "a853a0e183b9db7eed023d7933a858fa1c8d25a3", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3b415def83fbcb41f991d9ebf16ae4ad8b7837b3", + "reference": "3b415def83fbcb41f991d9ebf16ae4ad8b7837b3", "shasum": "" }, "require": { - "ext-tokenizer": "*", - "php": "^7.3 || ^8.0" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.0" + "phpunit/phpunit": "^11.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "7.0-dev" } }, "autoload": { @@ -531,17 +556,19 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Wrapper around PHP's tokenizer extension.", - "homepage": "https://github.com/sebastianbergmann/php-token-stream/", + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", "keywords": [ - "tokenizer" + "timer" ], "support": { - "issues": "https://github.com/sebastianbergmann/php-token-stream/issues", - "source": "https://github.com/sebastianbergmann/php-token-stream/tree/master" + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "security": "https://github.com/sebastianbergmann/php-timer/security/policy", + "source": "https://github.com/sebastianbergmann/php-timer/tree/7.0.1" }, "funding": [ { @@ -549,53 +576,52 @@ "type": "github" } ], - "abandoned": true, - "time": "2020-08-04T08:28:15+00:00" + "time": "2024-07-03T05:09:35+00:00" }, { "name": "phpunit/phpunit", - "version": "8.5.40", + "version": "11.5.42", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "48ed828b72c35b38cdddcd9059339734cb06b3a7" + "reference": "1c6cb5dfe412af3d0dfd414cfd110e3b9cfdbc3c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/48ed828b72c35b38cdddcd9059339734cb06b3a7", - "reference": "48ed828b72c35b38cdddcd9059339734cb06b3a7", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/1c6cb5dfe412af3d0dfd414cfd110e3b9cfdbc3c", + "reference": "1c6cb5dfe412af3d0dfd414cfd110e3b9cfdbc3c", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.5.0", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", "ext-mbstring": "*", "ext-xml": "*", "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.12.0", + "myclabs/deep-copy": "^1.13.4", "phar-io/manifest": "^2.0.4", "phar-io/version": "^3.2.1", - "php": ">=7.2", - "phpunit/php-code-coverage": "^7.0.17", - "phpunit/php-file-iterator": "^2.0.6", - "phpunit/php-text-template": "^1.2.1", - "phpunit/php-timer": "^2.1.4", - "sebastian/comparator": "^3.0.5", - "sebastian/diff": "^3.0.6", - "sebastian/environment": "^4.2.5", - "sebastian/exporter": "^3.1.6", - "sebastian/global-state": "^3.0.5", - "sebastian/object-enumerator": "^3.0.5", - "sebastian/resource-operations": "^2.0.3", - "sebastian/type": "^1.1.5", - "sebastian/version": "^2.0.1" + "php": ">=8.2", + "phpunit/php-code-coverage": "^11.0.11", + "phpunit/php-file-iterator": "^5.1.0", + "phpunit/php-invoker": "^5.0.1", + "phpunit/php-text-template": "^4.0.1", + "phpunit/php-timer": "^7.0.1", + "sebastian/cli-parser": "^3.0.2", + "sebastian/code-unit": "^3.0.3", + "sebastian/comparator": "^6.3.2", + "sebastian/diff": "^6.0.2", + "sebastian/environment": "^7.2.1", + "sebastian/exporter": "^6.3.2", + "sebastian/global-state": "^7.0.2", + "sebastian/object-enumerator": "^6.0.1", + "sebastian/type": "^5.1.3", + "sebastian/version": "^5.0.2", + "staabm/side-effects-detector": "^1.0.5" }, "suggest": { - "ext-soap": "To be able to generate mocks based on WSDL files", - "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage", - "phpunit/php-invoker": "To allow enforcing time limits" + "ext-soap": "To be able to generate mocks based on WSDL files" }, "bin": [ "phpunit" @@ -603,10 +629,13 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "8.5-dev" + "dev-main": "11.5-dev" } }, "autoload": { + "files": [ + "src/Framework/Assert/Functions.php" + ], "classmap": [ "src/" ] @@ -632,7 +661,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/8.5.40" + "source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.42" }, "funding": [ { @@ -643,37 +672,159 @@ "url": "https://github.com/sebastianbergmann", "type": "github" }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, { "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", "type": "tidelift" } ], - "time": "2024-09-19T10:47:04+00:00" + "time": "2025-09-28T12:09:13+00:00" + }, + { + "name": "sebastian/cli-parser", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "15c5dd40dc4f38794d383bb95465193f5e0ae180" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/15c5dd40dc4f38794d383bb95465193f5e0ae180", + "reference": "15c5dd40dc4f38794d383bb95465193f5e0ae180", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "require-dev": { + "phpunit/phpunit": "^11.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", + "support": { + "issues": "https://github.com/sebastianbergmann/cli-parser/issues", + "security": "https://github.com/sebastianbergmann/cli-parser/security/policy", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/3.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-07-03T04:41:36+00:00" + }, + { + "name": "sebastian/code-unit", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit.git", + "reference": "54391c61e4af8078e5b276ab082b6d3c54c9ad64" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/54391c61e4af8078e5b276ab082b6d3c54c9ad64", + "reference": "54391c61e4af8078e5b276ab082b6d3c54c9ad64", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "require-dev": { + "phpunit/phpunit": "^11.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the PHP code units", + "homepage": "https://github.com/sebastianbergmann/code-unit", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit/issues", + "security": "https://github.com/sebastianbergmann/code-unit/security/policy", + "source": "https://github.com/sebastianbergmann/code-unit/tree/3.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-03-19T07:56:08+00:00" }, { "name": "sebastian/code-unit-reverse-lookup", - "version": "1.0.3", + "version": "4.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "92a1a52e86d34cde6caa54f1b5ffa9fda18e5d54" + "reference": "183a9b2632194febd219bb9246eee421dad8d45e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/92a1a52e86d34cde6caa54f1b5ffa9fda18e5d54", - "reference": "92a1a52e86d34cde6caa54f1b5ffa9fda18e5d54", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/183a9b2632194febd219bb9246eee421dad8d45e", + "reference": "183a9b2632194febd219bb9246eee421dad8d45e", "shasum": "" }, "require": { - "php": ">=5.6" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^8.5" + "phpunit/phpunit": "^11.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -695,7 +846,8 @@ "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", "support": { "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", - "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/1.0.3" + "security": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/security/policy", + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/4.0.1" }, "funding": [ { @@ -703,34 +855,39 @@ "type": "github" } ], - "time": "2024-03-01T13:45:45+00:00" + "time": "2024-07-03T04:45:54+00:00" }, { "name": "sebastian/comparator", - "version": "3.0.5", + "version": "6.3.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "1dc7ceb4a24aede938c7af2a9ed1de09609ca770" + "reference": "85c77556683e6eee4323e4c5468641ca0237e2e8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/1dc7ceb4a24aede938c7af2a9ed1de09609ca770", - "reference": "1dc7ceb4a24aede938c7af2a9ed1de09609ca770", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/85c77556683e6eee4323e4c5468641ca0237e2e8", + "reference": "85c77556683e6eee4323e4c5468641ca0237e2e8", "shasum": "" }, "require": { - "php": ">=7.1", - "sebastian/diff": "^3.0", - "sebastian/exporter": "^3.1" + "ext-dom": "*", + "ext-mbstring": "*", + "php": ">=8.2", + "sebastian/diff": "^6.0", + "sebastian/exporter": "^6.0" }, "require-dev": { - "phpunit/phpunit": "^8.5" + "phpunit/phpunit": "^11.4" + }, + "suggest": { + "ext-bcmath": "For comparing BcMath\\Number objects" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-main": "6.3-dev" } }, "autoload": { @@ -769,7 +926,78 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", - "source": "https://github.com/sebastianbergmann/comparator/tree/3.0.5" + "security": "https://github.com/sebastianbergmann/comparator/security/policy", + "source": "https://github.com/sebastianbergmann/comparator/tree/6.3.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/comparator", + "type": "tidelift" + } + ], + "time": "2025-08-10T08:07:46+00:00" + }, + { + "name": "sebastian/complexity", + "version": "4.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/complexity.git", + "reference": "ee41d384ab1906c68852636b6de493846e13e5a0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/ee41d384ab1906c68852636b6de493846e13e5a0", + "reference": "ee41d384ab1906c68852636b6de493846e13e5a0", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^5.0", + "php": ">=8.2" + }, + "require-dev": { + "phpunit/phpunit": "^11.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for calculating the complexity of PHP code units", + "homepage": "https://github.com/sebastianbergmann/complexity", + "support": { + "issues": "https://github.com/sebastianbergmann/complexity/issues", + "security": "https://github.com/sebastianbergmann/complexity/security/policy", + "source": "https://github.com/sebastianbergmann/complexity/tree/4.0.1" }, "funding": [ { @@ -777,33 +1005,33 @@ "type": "github" } ], - "time": "2022-09-14T12:31:48+00:00" + "time": "2024-07-03T04:49:50+00:00" }, { "name": "sebastian/diff", - "version": "3.0.6", + "version": "6.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "98ff311ca519c3aa73ccd3de053bdb377171d7b6" + "reference": "b4ccd857127db5d41a5b676f24b51371d76d8544" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/98ff311ca519c3aa73ccd3de053bdb377171d7b6", - "reference": "98ff311ca519c3aa73ccd3de053bdb377171d7b6", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/b4ccd857127db5d41a5b676f24b51371d76d8544", + "reference": "b4ccd857127db5d41a5b676f24b51371d76d8544", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^7.5 || ^8.0", - "symfony/process": "^2 || ^3.3 || ^4" + "phpunit/phpunit": "^11.0", + "symfony/process": "^4.2 || ^5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -835,7 +1063,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/diff/issues", - "source": "https://github.com/sebastianbergmann/diff/tree/3.0.6" + "security": "https://github.com/sebastianbergmann/diff/security/policy", + "source": "https://github.com/sebastianbergmann/diff/tree/6.0.2" }, "funding": [ { @@ -843,27 +1072,27 @@ "type": "github" } ], - "time": "2024-03-02T06:16:36+00:00" + "time": "2024-07-03T04:53:05+00:00" }, { "name": "sebastian/environment", - "version": "4.2.5", + "version": "7.2.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "56932f6049a0482853056ffd617c91ffcc754205" + "reference": "a5c75038693ad2e8d4b6c15ba2403532647830c4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/56932f6049a0482853056ffd617c91ffcc754205", - "reference": "56932f6049a0482853056ffd617c91ffcc754205", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/a5c75038693ad2e8d4b6c15ba2403532647830c4", + "reference": "a5c75038693ad2e8d4b6c15ba2403532647830c4", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^7.5" + "phpunit/phpunit": "^11.3" }, "suggest": { "ext-posix": "*" @@ -871,7 +1100,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.2-dev" + "dev-main": "7.2-dev" } }, "autoload": { @@ -890,7 +1119,7 @@ } ], "description": "Provides functionality to handle HHVM/PHP environments", - "homepage": "http://www.github.com/sebastianbergmann/environment", + "homepage": "https://github.com/sebastianbergmann/environment", "keywords": [ "Xdebug", "environment", @@ -898,42 +1127,55 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/environment/issues", - "source": "https://github.com/sebastianbergmann/environment/tree/4.2.5" + "security": "https://github.com/sebastianbergmann/environment/security/policy", + "source": "https://github.com/sebastianbergmann/environment/tree/7.2.1" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/environment", + "type": "tidelift" } ], - "time": "2024-03-01T13:49:59+00:00" + "time": "2025-05-21T11:55:47+00:00" }, { "name": "sebastian/exporter", - "version": "3.1.6", + "version": "6.3.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "1939bc8fd1d39adcfa88c5b35335910869214c56" + "reference": "70a298763b40b213ec087c51c739efcaa90bcd74" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/1939bc8fd1d39adcfa88c5b35335910869214c56", - "reference": "1939bc8fd1d39adcfa88c5b35335910869214c56", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/70a298763b40b213ec087c51c739efcaa90bcd74", + "reference": "70a298763b40b213ec087c51c739efcaa90bcd74", "shasum": "" }, "require": { - "php": ">=7.2", - "sebastian/recursion-context": "^3.0" + "ext-mbstring": "*", + "php": ">=8.2", + "sebastian/recursion-context": "^6.0" }, "require-dev": { - "ext-mbstring": "*", - "phpunit/phpunit": "^8.5" + "phpunit/phpunit": "^11.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.1.x-dev" + "dev-main": "6.3-dev" } }, "autoload": { @@ -968,53 +1210,63 @@ } ], "description": "Provides the functionality to export PHP variables for visualization", - "homepage": "http://www.github.com/sebastianbergmann/exporter", + "homepage": "https://www.github.com/sebastianbergmann/exporter", "keywords": [ "export", "exporter" ], "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", - "source": "https://github.com/sebastianbergmann/exporter/tree/3.1.6" + "security": "https://github.com/sebastianbergmann/exporter/security/policy", + "source": "https://github.com/sebastianbergmann/exporter/tree/6.3.2" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/exporter", + "type": "tidelift" } ], - "time": "2024-03-02T06:21:38+00:00" + "time": "2025-09-24T06:12:51+00:00" }, { "name": "sebastian/global-state", - "version": "3.0.5", + "version": "7.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "91c7c47047a971f02de57ed6f040087ef110c5d9" + "reference": "3be331570a721f9a4b5917f4209773de17f747d7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/91c7c47047a971f02de57ed6f040087ef110c5d9", - "reference": "91c7c47047a971f02de57ed6f040087ef110c5d9", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/3be331570a721f9a4b5917f4209773de17f747d7", + "reference": "3be331570a721f9a4b5917f4209773de17f747d7", "shasum": "" }, "require": { - "php": ">=7.2", - "sebastian/object-reflector": "^1.1.1", - "sebastian/recursion-context": "^3.0" + "php": ">=8.2", + "sebastian/object-reflector": "^4.0", + "sebastian/recursion-context": "^6.0" }, "require-dev": { "ext-dom": "*", - "phpunit/phpunit": "^8.0" - }, - "suggest": { - "ext-uopz": "*" + "phpunit/phpunit": "^11.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-main": "7.0-dev" } }, "autoload": { @@ -1033,13 +1285,14 @@ } ], "description": "Snapshotting of global state", - "homepage": "http://www.github.com/sebastianbergmann/global-state", + "homepage": "https://www.github.com/sebastianbergmann/global-state", "keywords": [ "global state" ], "support": { "issues": "https://github.com/sebastianbergmann/global-state/issues", - "source": "https://github.com/sebastianbergmann/global-state/tree/3.0.5" + "security": "https://github.com/sebastianbergmann/global-state/security/policy", + "source": "https://github.com/sebastianbergmann/global-state/tree/7.0.2" }, "funding": [ { @@ -1047,34 +1300,33 @@ "type": "github" } ], - "time": "2024-03-02T06:13:16+00:00" + "time": "2024-07-03T04:57:36+00:00" }, { - "name": "sebastian/object-enumerator", - "version": "3.0.5", + "name": "sebastian/lines-of-code", + "version": "3.0.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "ac5b293dba925751b808e02923399fb44ff0d541" + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "d36ad0d782e5756913e42ad87cb2890f4ffe467a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/ac5b293dba925751b808e02923399fb44ff0d541", - "reference": "ac5b293dba925751b808e02923399fb44ff0d541", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/d36ad0d782e5756913e42ad87cb2890f4ffe467a", + "reference": "d36ad0d782e5756913e42ad87cb2890f4ffe467a", "shasum": "" }, "require": { - "php": ">=7.0", - "sebastian/object-reflector": "^1.1.1", - "sebastian/recursion-context": "^3.0" + "nikic/php-parser": "^5.0", + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^6.0" + "phpunit/phpunit": "^11.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0.x-dev" + "dev-main": "3.0-dev" } }, "autoload": { @@ -1089,14 +1341,16 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Traverses array structures and object graphs to enumerate all referenced objects", - "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "description": "Library for counting the lines of code in PHP source code", + "homepage": "https://github.com/sebastianbergmann/lines-of-code", "support": { - "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", - "source": "https://github.com/sebastianbergmann/object-enumerator/tree/3.0.5" + "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", + "security": "https://github.com/sebastianbergmann/lines-of-code/security/policy", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/3.0.1" }, "funding": [ { @@ -1104,32 +1358,34 @@ "type": "github" } ], - "time": "2024-03-01T13:54:02+00:00" + "time": "2024-07-03T04:58:38+00:00" }, { - "name": "sebastian/object-reflector", - "version": "1.1.3", + "name": "sebastian/object-enumerator", + "version": "6.0.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/object-reflector.git", - "reference": "1d439c229e61f244ff1f211e5c99737f90c67def" + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "f5b498e631a74204185071eb41f33f38d64608aa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/1d439c229e61f244ff1f211e5c99737f90c67def", - "reference": "1d439c229e61f244ff1f211e5c99737f90c67def", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/f5b498e631a74204185071eb41f33f38d64608aa", + "reference": "f5b498e631a74204185071eb41f33f38d64608aa", "shasum": "" }, "require": { - "php": ">=7.0" + "php": ">=8.2", + "sebastian/object-reflector": "^4.0", + "sebastian/recursion-context": "^6.0" }, "require-dev": { - "phpunit/phpunit": "^6.0" + "phpunit/phpunit": "^11.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -1147,11 +1403,12 @@ "email": "sebastian@phpunit.de" } ], - "description": "Allows reflection of object attributes, including inherited and non-public ones", - "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", "support": { - "issues": "https://github.com/sebastianbergmann/object-reflector/issues", - "source": "https://github.com/sebastianbergmann/object-reflector/tree/1.1.3" + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "security": "https://github.com/sebastianbergmann/object-enumerator/security/policy", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/6.0.1" }, "funding": [ { @@ -1159,32 +1416,32 @@ "type": "github" } ], - "time": "2024-03-01T13:56:04+00:00" + "time": "2024-07-03T05:00:13+00:00" }, { - "name": "sebastian/recursion-context", - "version": "3.0.2", + "name": "sebastian/object-reflector", + "version": "4.0.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "9bfd3c6f1f08c026f542032dfb42813544f7d64c" + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "6e1a43b411b2ad34146dee7524cb13a068bb35f9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/9bfd3c6f1f08c026f542032dfb42813544f7d64c", - "reference": "9bfd3c6f1f08c026f542032dfb42813544f7d64c", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/6e1a43b411b2ad34146dee7524cb13a068bb35f9", + "reference": "6e1a43b411b2ad34146dee7524cb13a068bb35f9", "shasum": "" }, "require": { - "php": ">=7.0" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^6.0" + "phpunit/phpunit": "^11.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0.x-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -1200,21 +1457,14 @@ { "name": "Sebastian Bergmann", "email": "sebastian@phpunit.de" - }, - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" } ], - "description": "Provides functionality to recursively process PHP variables", - "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", "support": { - "issues": "https://github.com/sebastianbergmann/recursion-context/issues", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/3.0.2" + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "security": "https://github.com/sebastianbergmann/object-reflector/security/policy", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/4.0.1" }, "funding": [ { @@ -1222,29 +1472,32 @@ "type": "github" } ], - "time": "2024-03-01T14:07:30+00:00" + "time": "2024-07-03T05:01:32+00:00" }, { - "name": "sebastian/resource-operations", - "version": "2.0.3", + "name": "sebastian/recursion-context", + "version": "6.0.3", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/resource-operations.git", - "reference": "72a7f7674d053d548003b16ff5a106e7e0e06eee" + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "f6458abbf32a6c8174f8f26261475dc133b3d9dc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/72a7f7674d053d548003b16ff5a106e7e0e06eee", - "reference": "72a7f7674d053d548003b16ff5a106e7e0e06eee", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/f6458abbf32a6c8174f8f26261475dc133b3d9dc", + "reference": "f6458abbf32a6c8174f8f26261475dc133b3d9dc", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=8.2" + }, + "require-dev": { + "phpunit/phpunit": "^11.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -1260,45 +1513,67 @@ { "name": "Sebastian Bergmann", "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" } ], - "description": "Provides a list of PHP built-in functions that operate on resources", - "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "description": "Provides functionality to recursively process PHP variables", + "homepage": "https://github.com/sebastianbergmann/recursion-context", "support": { - "source": "https://github.com/sebastianbergmann/resource-operations/tree/2.0.3" + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "security": "https://github.com/sebastianbergmann/recursion-context/security/policy", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/6.0.3" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/recursion-context", + "type": "tidelift" } ], - "time": "2024-03-01T13:59:09+00:00" + "time": "2025-08-13T04:42:22+00:00" }, { "name": "sebastian/type", - "version": "1.1.5", + "version": "5.1.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/type.git", - "reference": "18f071c3a29892b037d35e6b20ddf3ea39b42874" + "reference": "f77d2d4e78738c98d9a68d2596fe5e8fa380f449" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/18f071c3a29892b037d35e6b20ddf3ea39b42874", - "reference": "18f071c3a29892b037d35e6b20ddf3ea39b42874", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/f77d2d4e78738c98d9a68d2596fe5e8fa380f449", + "reference": "f77d2d4e78738c98d9a68d2596fe5e8fa380f449", "shasum": "" }, "require": { - "php": ">=7.2" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^8.2" + "phpunit/phpunit": "^11.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1-dev" + "dev-main": "5.1-dev" } }, "autoload": { @@ -1321,37 +1596,50 @@ "homepage": "https://github.com/sebastianbergmann/type", "support": { "issues": "https://github.com/sebastianbergmann/type/issues", - "source": "https://github.com/sebastianbergmann/type/tree/1.1.5" + "security": "https://github.com/sebastianbergmann/type/security/policy", + "source": "https://github.com/sebastianbergmann/type/tree/5.1.3" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/type", + "type": "tidelift" } ], - "time": "2024-03-01T14:04:07+00:00" + "time": "2025-08-09T06:55:48+00:00" }, { "name": "sebastian/version", - "version": "2.0.1", + "version": "5.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/version.git", - "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019" + "reference": "c687e3387b99f5b03b6caa64c74b63e2936ff874" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019", - "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c687e3387b99f5b03b6caa64c74b63e2936ff874", + "reference": "c687e3387b99f5b03b6caa64c74b63e2936ff874", "shasum": "" }, "require": { - "php": ">=5.6" + "php": ">=8.2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0.x-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -1374,9 +1662,68 @@ "homepage": "https://github.com/sebastianbergmann/version", "support": { "issues": "https://github.com/sebastianbergmann/version/issues", - "source": "https://github.com/sebastianbergmann/version/tree/master" + "security": "https://github.com/sebastianbergmann/version/security/policy", + "source": "https://github.com/sebastianbergmann/version/tree/5.0.2" }, - "time": "2016-10-03T07:35:21+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-10-09T05:16:32+00:00" + }, + { + "name": "staabm/side-effects-detector", + "version": "1.0.5", + "source": { + "type": "git", + "url": "https://github.com/staabm/side-effects-detector.git", + "reference": "d8334211a140ce329c13726d4a715adbddd0a163" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/staabm/side-effects-detector/zipball/d8334211a140ce329c13726d4a715adbddd0a163", + "reference": "d8334211a140ce329c13726d4a715adbddd0a163", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^1.12.6", + "phpunit/phpunit": "^9.6.21", + "symfony/var-dumper": "^5.4.43", + "tomasvotruba/type-coverage": "1.0.0", + "tomasvotruba/unused-public": "1.0.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "lib/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A static analysis tool to detect side effects in PHP code", + "keywords": [ + "static analysis" + ], + "support": { + "issues": "https://github.com/staabm/side-effects-detector/issues", + "source": "https://github.com/staabm/side-effects-detector/tree/1.0.5" + }, + "funding": [ + { + "url": "https://github.com/staabm", + "type": "github" + } + ], + "time": "2024-10-20T05:08:20+00:00" }, { "name": "theseer/tokenizer", @@ -1434,7 +1781,9 @@ "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": {}, + "platform": { + "php": "^8.2" + }, "platform-dev": {}, "plugin-api-version": "2.6.0" } diff --git a/tools/psalm/composer.json b/tools/psalm/composer.json index 31528313..91e5bd9e 100644 --- a/tools/psalm/composer.json +++ b/tools/psalm/composer.json @@ -1,5 +1,8 @@ { + "require": { + "php": "^8.2" + }, "require-dev": { - "vimeo/psalm": "^4.6.1" + "vimeo/psalm": "^6.0" } } diff --git a/tools/psalm/composer.lock b/tools/psalm/composer.lock index a572f8b5..0f3cadc6 100644 --- a/tools/psalm/composer.lock +++ b/tools/psalm/composer.lock @@ -4,48 +4,41 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "9ea293dd70204512564b17dacf4c670f", + "content-hash": "11a12fbc254c5d9d334a1c6e6602602e", "packages": [], "packages-dev": [ { "name": "amphp/amp", - "version": "v2.6.4", + "version": "v3.1.1", "source": { "type": "git", "url": "https://github.com/amphp/amp.git", - "reference": "ded3d9be08f526089eb7ee8d9f16a9768f9dec2d" + "reference": "fa0ab33a6f47a82929c38d03ca47ebb71086a93f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/amphp/amp/zipball/ded3d9be08f526089eb7ee8d9f16a9768f9dec2d", - "reference": "ded3d9be08f526089eb7ee8d9f16a9768f9dec2d", + "url": "https://api.github.com/repos/amphp/amp/zipball/fa0ab33a6f47a82929c38d03ca47ebb71086a93f", + "reference": "fa0ab33a6f47a82929c38d03ca47ebb71086a93f", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=8.1", + "revolt/event-loop": "^1 || ^0.2" }, "require-dev": { - "amphp/php-cs-fixer-config": "dev-master", - "amphp/phpunit-util": "^1", - "ext-json": "*", - "jetbrains/phpstorm-stubs": "^2019.3", - "phpunit/phpunit": "^7 | ^8 | ^9", - "react/promise": "^2", - "vimeo/psalm": "^3.12" + "amphp/php-cs-fixer-config": "^2", + "phpunit/phpunit": "^9", + "psalm/phar": "5.23.1" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.x-dev" - } - }, "autoload": { "files": [ - "lib/functions.php", - "lib/Internal/functions.php" + "src/functions.php", + "src/Future/functions.php", + "src/Internal/functions.php" ], "psr-4": { - "Amp\\": "lib" + "Amp\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -53,10 +46,6 @@ "MIT" ], "authors": [ - { - "name": "Daniel Lowrey", - "email": "rdlowrey@php.net" - }, { "name": "Aaron Piotrowski", "email": "aaron@trowski.com" @@ -68,6 +57,10 @@ { "name": "Niklas Keller", "email": "me@kelunik.com" + }, + { + "name": "Daniel Lowrey", + "email": "rdlowrey@php.net" } ], "description": "A non-blocking concurrency framework for PHP applications.", @@ -84,9 +77,8 @@ "promise" ], "support": { - "irc": "irc://irc.freenode.org/amphp", "issues": "https://github.com/amphp/amp/issues", - "source": "https://github.com/amphp/amp/tree/v2.6.4" + "source": "https://github.com/amphp/amp/tree/v3.1.1" }, "funding": [ { @@ -94,41 +86,45 @@ "type": "github" } ], - "time": "2024-03-21T18:52:26+00:00" + "time": "2025-08-27T21:42:00+00:00" }, { "name": "amphp/byte-stream", - "version": "v1.8.2", + "version": "v2.1.2", "source": { "type": "git", "url": "https://github.com/amphp/byte-stream.git", - "reference": "4f0e968ba3798a423730f567b1b50d3441c16ddc" + "reference": "55a6bd071aec26fa2a3e002618c20c35e3df1b46" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/amphp/byte-stream/zipball/4f0e968ba3798a423730f567b1b50d3441c16ddc", - "reference": "4f0e968ba3798a423730f567b1b50d3441c16ddc", + "url": "https://api.github.com/repos/amphp/byte-stream/zipball/55a6bd071aec26fa2a3e002618c20c35e3df1b46", + "reference": "55a6bd071aec26fa2a3e002618c20c35e3df1b46", "shasum": "" }, "require": { - "amphp/amp": "^2", - "php": ">=7.1" + "amphp/amp": "^3", + "amphp/parser": "^1.1", + "amphp/pipeline": "^1", + "amphp/serialization": "^1", + "amphp/sync": "^2", + "php": ">=8.1", + "revolt/event-loop": "^1 || ^0.2.3" }, "require-dev": { - "amphp/php-cs-fixer-config": "dev-master", - "amphp/phpunit-util": "^1.4", - "friendsofphp/php-cs-fixer": "^2.3", - "jetbrains/phpstorm-stubs": "^2019.3", - "phpunit/phpunit": "^6 || ^7 || ^8", - "psalm/phar": "^3.11.4" + "amphp/php-cs-fixer-config": "^2", + "amphp/phpunit-util": "^3", + "phpunit/phpunit": "^9", + "psalm/phar": "5.22.1" }, "type": "library", "autoload": { "files": [ - "lib/functions.php" + "src/functions.php", + "src/Internal/functions.php" ], "psr-4": { - "Amp\\ByteStream\\": "lib" + "Amp\\ByteStream\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -157,7 +153,7 @@ ], "support": { "issues": "https://github.com/amphp/byte-stream/issues", - "source": "https://github.com/amphp/byte-stream/tree/v1.8.2" + "source": "https://github.com/amphp/byte-stream/tree/v2.1.2" }, "funding": [ { @@ -165,44 +161,39 @@ "type": "github" } ], - "time": "2024-04-13T18:00:56+00:00" + "time": "2025-03-16T17:10:27+00:00" }, { - "name": "composer/package-versions-deprecated", - "version": "1.11.99.5", + "name": "amphp/cache", + "version": "v2.0.1", "source": { "type": "git", - "url": "https://github.com/composer/package-versions-deprecated.git", - "reference": "b4f54f74ef3453349c24a845d22392cd31e65f1d" + "url": "https://github.com/amphp/cache.git", + "reference": "46912e387e6aa94933b61ea1ead9cf7540b7797c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/package-versions-deprecated/zipball/b4f54f74ef3453349c24a845d22392cd31e65f1d", - "reference": "b4f54f74ef3453349c24a845d22392cd31e65f1d", + "url": "https://api.github.com/repos/amphp/cache/zipball/46912e387e6aa94933b61ea1ead9cf7540b7797c", + "reference": "46912e387e6aa94933b61ea1ead9cf7540b7797c", "shasum": "" }, "require": { - "composer-plugin-api": "^1.1.0 || ^2.0", - "php": "^7 || ^8" - }, - "replace": { - "ocramius/package-versions": "1.11.99" + "amphp/amp": "^3", + "amphp/serialization": "^1", + "amphp/sync": "^2", + "php": ">=8.1", + "revolt/event-loop": "^1 || ^0.2" }, "require-dev": { - "composer/composer": "^1.9.3 || ^2.0@dev", - "ext-zip": "^1.13", - "phpunit/phpunit": "^6.5 || ^7" - }, - "type": "composer-plugin", - "extra": { - "class": "PackageVersions\\Installer", - "branch-alias": { - "dev-master": "1.x-dev" - } + "amphp/php-cs-fixer-config": "^2", + "amphp/phpunit-util": "^3", + "phpunit/phpunit": "^9", + "psalm/phar": "^5.4" }, + "type": "library", "autoload": { "psr-4": { - "PackageVersions\\": "src/PackageVersions" + "Amp\\Cache\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -211,74 +202,71 @@ ], "authors": [ { - "name": "Marco Pivetta", - "email": "ocramius@gmail.com" + "name": "Niklas Keller", + "email": "me@kelunik.com" }, { - "name": "Jordi Boggiano", - "email": "j.boggiano@seld.be" + "name": "Aaron Piotrowski", + "email": "aaron@trowski.com" + }, + { + "name": "Daniel Lowrey", + "email": "rdlowrey@php.net" } ], - "description": "Composer plugin that provides efficient querying for installed package versions (no runtime IO)", + "description": "A fiber-aware cache API based on Amp and Revolt.", + "homepage": "https://amphp.org/cache", "support": { - "issues": "https://github.com/composer/package-versions-deprecated/issues", - "source": "https://github.com/composer/package-versions-deprecated/tree/1.11.99.5" + "issues": "https://github.com/amphp/cache/issues", + "source": "https://github.com/amphp/cache/tree/v2.0.1" }, "funding": [ { - "url": "https://packagist.com", - "type": "custom" - }, - { - "url": "https://github.com/composer", + "url": "https://github.com/amphp", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", - "type": "tidelift" } ], - "time": "2022-01-17T14:14:24+00:00" + "time": "2024-04-19T03:38:06+00:00" }, { - "name": "composer/pcre", - "version": "3.3.1", + "name": "amphp/dns", + "version": "v2.4.0", "source": { "type": "git", - "url": "https://github.com/composer/pcre.git", - "reference": "63aaeac21d7e775ff9bc9d45021e1745c97521c4" + "url": "https://github.com/amphp/dns.git", + "reference": "78eb3db5fc69bf2fc0cb503c4fcba667bc223c71" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/pcre/zipball/63aaeac21d7e775ff9bc9d45021e1745c97521c4", - "reference": "63aaeac21d7e775ff9bc9d45021e1745c97521c4", + "url": "https://api.github.com/repos/amphp/dns/zipball/78eb3db5fc69bf2fc0cb503c4fcba667bc223c71", + "reference": "78eb3db5fc69bf2fc0cb503c4fcba667bc223c71", "shasum": "" }, "require": { - "php": "^7.4 || ^8.0" - }, - "conflict": { - "phpstan/phpstan": "<1.11.10" + "amphp/amp": "^3", + "amphp/byte-stream": "^2", + "amphp/cache": "^2", + "amphp/parser": "^1", + "amphp/process": "^2", + "daverandom/libdns": "^2.0.2", + "ext-filter": "*", + "ext-json": "*", + "php": ">=8.1", + "revolt/event-loop": "^1 || ^0.2" }, "require-dev": { - "phpstan/phpstan": "^1.11.10", - "phpstan/phpstan-strict-rules": "^1.1", - "phpunit/phpunit": "^8 || ^9" + "amphp/php-cs-fixer-config": "^2", + "amphp/phpunit-util": "^3", + "phpunit/phpunit": "^9", + "psalm/phar": "5.20" }, "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.x-dev" - }, - "phpstan": { - "includes": [ - "extension.neon" - ] - } - }, "autoload": { + "files": [ + "src/functions.php" + ], "psr-4": { - "Composer\\Pcre\\": "src" + "Amp\\Dns\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -287,68 +275,91 @@ ], "authors": [ { - "name": "Jordi Boggiano", - "email": "j.boggiano@seld.be", - "homepage": "http://seld.be" + "name": "Chris Wright", + "email": "addr@daverandom.com" + }, + { + "name": "Daniel Lowrey", + "email": "rdlowrey@php.net" + }, + { + "name": "Bob Weinand", + "email": "bobwei9@hotmail.com" + }, + { + "name": "Niklas Keller", + "email": "me@kelunik.com" + }, + { + "name": "Aaron Piotrowski", + "email": "aaron@trowski.com" } ], - "description": "PCRE wrapping library that offers type-safe preg_* replacements.", + "description": "Async DNS resolution for Amp.", + "homepage": "https://github.com/amphp/dns", "keywords": [ - "PCRE", - "preg", - "regex", - "regular expression" + "amp", + "amphp", + "async", + "client", + "dns", + "resolve" ], "support": { - "issues": "https://github.com/composer/pcre/issues", - "source": "https://github.com/composer/pcre/tree/3.3.1" + "issues": "https://github.com/amphp/dns/issues", + "source": "https://github.com/amphp/dns/tree/v2.4.0" }, "funding": [ { - "url": "https://packagist.com", - "type": "custom" - }, - { - "url": "https://github.com/composer", + "url": "https://github.com/amphp", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", - "type": "tidelift" } ], - "time": "2024-08-27T18:44:43+00:00" + "time": "2025-01-19T15:43:40+00:00" }, { - "name": "composer/semver", - "version": "3.4.3", + "name": "amphp/parallel", + "version": "v2.3.2", "source": { "type": "git", - "url": "https://github.com/composer/semver.git", - "reference": "4313d26ada5e0c4edfbd1dc481a92ff7bff91f12" + "url": "https://github.com/amphp/parallel.git", + "reference": "321b45ae771d9c33a068186b24117e3cd1c48dce" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/4313d26ada5e0c4edfbd1dc481a92ff7bff91f12", - "reference": "4313d26ada5e0c4edfbd1dc481a92ff7bff91f12", + "url": "https://api.github.com/repos/amphp/parallel/zipball/321b45ae771d9c33a068186b24117e3cd1c48dce", + "reference": "321b45ae771d9c33a068186b24117e3cd1c48dce", "shasum": "" }, "require": { - "php": "^5.3.2 || ^7.0 || ^8.0" + "amphp/amp": "^3", + "amphp/byte-stream": "^2", + "amphp/cache": "^2", + "amphp/parser": "^1", + "amphp/pipeline": "^1", + "amphp/process": "^2", + "amphp/serialization": "^1", + "amphp/socket": "^2", + "amphp/sync": "^2", + "php": ">=8.1", + "revolt/event-loop": "^1" }, "require-dev": { - "phpstan/phpstan": "^1.11", - "symfony/phpunit-bridge": "^3 || ^7" + "amphp/php-cs-fixer-config": "^2", + "amphp/phpunit-util": "^3", + "phpunit/phpunit": "^9", + "psalm/phar": "^5.18" }, "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.x-dev" - } - }, "autoload": { + "files": [ + "src/Context/functions.php", + "src/Context/Internal/functions.php", + "src/Ipc/functions.php", + "src/Worker/functions.php" + ], "psr-4": { - "Composer\\Semver\\": "src" + "Amp\\Parallel\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -357,77 +368,944 @@ ], "authors": [ { - "name": "Nils Adermann", - "email": "naderman@naderman.de", - "homepage": "http://www.naderman.de" + "name": "Aaron Piotrowski", + "email": "aaron@trowski.com" }, { - "name": "Jordi Boggiano", - "email": "j.boggiano@seld.be", - "homepage": "http://seld.be" + "name": "Niklas Keller", + "email": "me@kelunik.com" }, { - "name": "Rob Bast", - "email": "rob.bast@gmail.com", - "homepage": "http://robbast.nl" + "name": "Stephen Coakley", + "email": "me@stephencoakley.com" } ], - "description": "Semver library that offers utilities, version constraint parsing and validation.", + "description": "Parallel processing component for Amp.", + "homepage": "https://github.com/amphp/parallel", "keywords": [ - "semantic", - "semver", - "validation", - "versioning" + "async", + "asynchronous", + "concurrent", + "multi-processing", + "multi-threading" ], "support": { - "irc": "ircs://irc.libera.chat:6697/composer", - "issues": "https://github.com/composer/semver/issues", - "source": "https://github.com/composer/semver/tree/3.4.3" + "issues": "https://github.com/amphp/parallel/issues", + "source": "https://github.com/amphp/parallel/tree/v2.3.2" }, "funding": [ { - "url": "https://packagist.com", - "type": "custom" + "url": "https://github.com/amphp", + "type": "github" + } + ], + "time": "2025-08-27T21:55:40+00:00" + }, + { + "name": "amphp/parser", + "version": "v1.1.1", + "source": { + "type": "git", + "url": "https://github.com/amphp/parser.git", + "reference": "3cf1f8b32a0171d4b1bed93d25617637a77cded7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/amphp/parser/zipball/3cf1f8b32a0171d4b1bed93d25617637a77cded7", + "reference": "3cf1f8b32a0171d4b1bed93d25617637a77cded7", + "shasum": "" + }, + "require": { + "php": ">=7.4" + }, + "require-dev": { + "amphp/php-cs-fixer-config": "^2", + "phpunit/phpunit": "^9", + "psalm/phar": "^5.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "Amp\\Parser\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Aaron Piotrowski", + "email": "aaron@trowski.com" }, { - "url": "https://github.com/composer", + "name": "Niklas Keller", + "email": "me@kelunik.com" + } + ], + "description": "A generator parser to make streaming parsers simple.", + "homepage": "https://github.com/amphp/parser", + "keywords": [ + "async", + "non-blocking", + "parser", + "stream" + ], + "support": { + "issues": "https://github.com/amphp/parser/issues", + "source": "https://github.com/amphp/parser/tree/v1.1.1" + }, + "funding": [ + { + "url": "https://github.com/amphp", "type": "github" + } + ], + "time": "2024-03-21T19:16:53+00:00" + }, + { + "name": "amphp/pipeline", + "version": "v1.2.3", + "source": { + "type": "git", + "url": "https://github.com/amphp/pipeline.git", + "reference": "7b52598c2e9105ebcddf247fc523161581930367" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/amphp/pipeline/zipball/7b52598c2e9105ebcddf247fc523161581930367", + "reference": "7b52598c2e9105ebcddf247fc523161581930367", + "shasum": "" + }, + "require": { + "amphp/amp": "^3", + "php": ">=8.1", + "revolt/event-loop": "^1" + }, + "require-dev": { + "amphp/php-cs-fixer-config": "^2", + "amphp/phpunit-util": "^3", + "phpunit/phpunit": "^9", + "psalm/phar": "^5.18" + }, + "type": "library", + "autoload": { + "psr-4": { + "Amp\\Pipeline\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Aaron Piotrowski", + "email": "aaron@trowski.com" }, { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", - "type": "tidelift" + "name": "Niklas Keller", + "email": "me@kelunik.com" + } + ], + "description": "Asynchronous iterators and operators.", + "homepage": "https://amphp.org/pipeline", + "keywords": [ + "amp", + "amphp", + "async", + "io", + "iterator", + "non-blocking" + ], + "support": { + "issues": "https://github.com/amphp/pipeline/issues", + "source": "https://github.com/amphp/pipeline/tree/v1.2.3" + }, + "funding": [ + { + "url": "https://github.com/amphp", + "type": "github" } ], - "time": "2024-09-19T14:15:21+00:00" + "time": "2025-03-16T16:33:53+00:00" }, { - "name": "composer/xdebug-handler", - "version": "3.0.5", + "name": "amphp/process", + "version": "v2.0.3", "source": { "type": "git", - "url": "https://github.com/composer/xdebug-handler.git", - "reference": "6c1925561632e83d60a44492e0b344cf48ab85ef" + "url": "https://github.com/amphp/process.git", + "reference": "52e08c09dec7511d5fbc1fb00d3e4e79fc77d58d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/amphp/process/zipball/52e08c09dec7511d5fbc1fb00d3e4e79fc77d58d", + "reference": "52e08c09dec7511d5fbc1fb00d3e4e79fc77d58d", + "shasum": "" + }, + "require": { + "amphp/amp": "^3", + "amphp/byte-stream": "^2", + "amphp/sync": "^2", + "php": ">=8.1", + "revolt/event-loop": "^1 || ^0.2" + }, + "require-dev": { + "amphp/php-cs-fixer-config": "^2", + "amphp/phpunit-util": "^3", + "phpunit/phpunit": "^9", + "psalm/phar": "^5.4" + }, + "type": "library", + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Amp\\Process\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bob Weinand", + "email": "bobwei9@hotmail.com" + }, + { + "name": "Aaron Piotrowski", + "email": "aaron@trowski.com" + }, + { + "name": "Niklas Keller", + "email": "me@kelunik.com" + } + ], + "description": "A fiber-aware process manager based on Amp and Revolt.", + "homepage": "https://amphp.org/process", + "support": { + "issues": "https://github.com/amphp/process/issues", + "source": "https://github.com/amphp/process/tree/v2.0.3" + }, + "funding": [ + { + "url": "https://github.com/amphp", + "type": "github" + } + ], + "time": "2024-04-19T03:13:44+00:00" + }, + { + "name": "amphp/serialization", + "version": "v1.0.0", + "source": { + "type": "git", + "url": "https://github.com/amphp/serialization.git", + "reference": "693e77b2fb0b266c3c7d622317f881de44ae94a1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/amphp/serialization/zipball/693e77b2fb0b266c3c7d622317f881de44ae94a1", + "reference": "693e77b2fb0b266c3c7d622317f881de44ae94a1", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "amphp/php-cs-fixer-config": "dev-master", + "phpunit/phpunit": "^9 || ^8 || ^7" + }, + "type": "library", + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Amp\\Serialization\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Aaron Piotrowski", + "email": "aaron@trowski.com" + }, + { + "name": "Niklas Keller", + "email": "me@kelunik.com" + } + ], + "description": "Serialization tools for IPC and data storage in PHP.", + "homepage": "https://github.com/amphp/serialization", + "keywords": [ + "async", + "asynchronous", + "serialization", + "serialize" + ], + "support": { + "issues": "https://github.com/amphp/serialization/issues", + "source": "https://github.com/amphp/serialization/tree/master" + }, + "time": "2020-03-25T21:39:07+00:00" + }, + { + "name": "amphp/socket", + "version": "v2.3.1", + "source": { + "type": "git", + "url": "https://github.com/amphp/socket.git", + "reference": "58e0422221825b79681b72c50c47a930be7bf1e1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/amphp/socket/zipball/58e0422221825b79681b72c50c47a930be7bf1e1", + "reference": "58e0422221825b79681b72c50c47a930be7bf1e1", + "shasum": "" + }, + "require": { + "amphp/amp": "^3", + "amphp/byte-stream": "^2", + "amphp/dns": "^2", + "ext-openssl": "*", + "kelunik/certificate": "^1.1", + "league/uri": "^6.5 | ^7", + "league/uri-interfaces": "^2.3 | ^7", + "php": ">=8.1", + "revolt/event-loop": "^1 || ^0.2" + }, + "require-dev": { + "amphp/php-cs-fixer-config": "^2", + "amphp/phpunit-util": "^3", + "amphp/process": "^2", + "phpunit/phpunit": "^9", + "psalm/phar": "5.20" + }, + "type": "library", + "autoload": { + "files": [ + "src/functions.php", + "src/Internal/functions.php", + "src/SocketAddress/functions.php" + ], + "psr-4": { + "Amp\\Socket\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniel Lowrey", + "email": "rdlowrey@gmail.com" + }, + { + "name": "Aaron Piotrowski", + "email": "aaron@trowski.com" + }, + { + "name": "Niklas Keller", + "email": "me@kelunik.com" + } + ], + "description": "Non-blocking socket connection / server implementations based on Amp and Revolt.", + "homepage": "https://github.com/amphp/socket", + "keywords": [ + "amp", + "async", + "encryption", + "non-blocking", + "sockets", + "tcp", + "tls" + ], + "support": { + "issues": "https://github.com/amphp/socket/issues", + "source": "https://github.com/amphp/socket/tree/v2.3.1" + }, + "funding": [ + { + "url": "https://github.com/amphp", + "type": "github" + } + ], + "time": "2024-04-21T14:33:03+00:00" + }, + { + "name": "amphp/sync", + "version": "v2.3.0", + "source": { + "type": "git", + "url": "https://github.com/amphp/sync.git", + "reference": "217097b785130d77cfcc58ff583cf26cd1770bf1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/amphp/sync/zipball/217097b785130d77cfcc58ff583cf26cd1770bf1", + "reference": "217097b785130d77cfcc58ff583cf26cd1770bf1", + "shasum": "" + }, + "require": { + "amphp/amp": "^3", + "amphp/pipeline": "^1", + "amphp/serialization": "^1", + "php": ">=8.1", + "revolt/event-loop": "^1 || ^0.2" + }, + "require-dev": { + "amphp/php-cs-fixer-config": "^2", + "amphp/phpunit-util": "^3", + "phpunit/phpunit": "^9", + "psalm/phar": "5.23" + }, + "type": "library", + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Amp\\Sync\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Aaron Piotrowski", + "email": "aaron@trowski.com" + }, + { + "name": "Niklas Keller", + "email": "me@kelunik.com" + }, + { + "name": "Stephen Coakley", + "email": "me@stephencoakley.com" + } + ], + "description": "Non-blocking synchronization primitives for PHP based on Amp and Revolt.", + "homepage": "https://github.com/amphp/sync", + "keywords": [ + "async", + "asynchronous", + "mutex", + "semaphore", + "synchronization" + ], + "support": { + "issues": "https://github.com/amphp/sync/issues", + "source": "https://github.com/amphp/sync/tree/v2.3.0" + }, + "funding": [ + { + "url": "https://github.com/amphp", + "type": "github" + } + ], + "time": "2024-08-03T19:31:26+00:00" + }, + { + "name": "composer/pcre", + "version": "3.3.2", + "source": { + "type": "git", + "url": "https://github.com/composer/pcre.git", + "reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/pcre/zipball/b2bed4734f0cc156ee1fe9c0da2550420d99a21e", + "reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0" + }, + "conflict": { + "phpstan/phpstan": "<1.11.10" + }, + "require-dev": { + "phpstan/phpstan": "^1.12 || ^2", + "phpstan/phpstan-strict-rules": "^1 || ^2", + "phpunit/phpunit": "^8 || ^9" + }, + "type": "library", + "extra": { + "phpstan": { + "includes": [ + "extension.neon" + ] + }, + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Pcre\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "PCRE wrapping library that offers type-safe preg_* replacements.", + "keywords": [ + "PCRE", + "preg", + "regex", + "regular expression" + ], + "support": { + "issues": "https://github.com/composer/pcre/issues", + "source": "https://github.com/composer/pcre/tree/3.3.2" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2024-11-12T16:29:46+00:00" + }, + { + "name": "composer/semver", + "version": "3.4.4", + "source": { + "type": "git", + "url": "https://github.com/composer/semver.git", + "reference": "198166618906cb2de69b95d7d47e5fa8aa1b2b95" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/semver/zipball/198166618906cb2de69b95d7d47e5fa8aa1b2b95", + "reference": "198166618906cb2de69b95d7d47e5fa8aa1b2b95", + "shasum": "" + }, + "require": { + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.11", + "symfony/phpunit-bridge": "^3 || ^7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Semver\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "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" + } + ], + "description": "Semver library that offers utilities, version constraint parsing and validation.", + "keywords": [ + "semantic", + "semver", + "validation", + "versioning" + ], + "support": { + "irc": "ircs://irc.libera.chat:6697/composer", + "issues": "https://github.com/composer/semver/issues", + "source": "https://github.com/composer/semver/tree/3.4.4" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + } + ], + "time": "2025-08-20T19:15:30+00:00" + }, + { + "name": "composer/xdebug-handler", + "version": "3.0.5", + "source": { + "type": "git", + "url": "https://github.com/composer/xdebug-handler.git", + "reference": "6c1925561632e83d60a44492e0b344cf48ab85ef" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/6c1925561632e83d60a44492e0b344cf48ab85ef", + "reference": "6c1925561632e83d60a44492e0b344cf48ab85ef", + "shasum": "" + }, + "require": { + "composer/pcre": "^1 || ^2 || ^3", + "php": "^7.2.5 || ^8.0", + "psr/log": "^1 || ^2 || ^3" + }, + "require-dev": { + "phpstan/phpstan": "^1.0", + "phpstan/phpstan-strict-rules": "^1.1", + "phpunit/phpunit": "^8.5 || ^9.6 || ^10.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "Composer\\XdebugHandler\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "John Stevenson", + "email": "john-stevenson@blueyonder.co.uk" + } + ], + "description": "Restarts a process without Xdebug.", + "keywords": [ + "Xdebug", + "performance" + ], + "support": { + "irc": "ircs://irc.libera.chat:6697/composer", + "issues": "https://github.com/composer/xdebug-handler/issues", + "source": "https://github.com/composer/xdebug-handler/tree/3.0.5" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2024-05-06T16:37:16+00:00" + }, + { + "name": "danog/advanced-json-rpc", + "version": "v3.2.2", + "source": { + "type": "git", + "url": "https://github.com/danog/php-advanced-json-rpc.git", + "reference": "aadb1c4068a88c3d0530cfe324b067920661efcb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/danog/php-advanced-json-rpc/zipball/aadb1c4068a88c3d0530cfe324b067920661efcb", + "reference": "aadb1c4068a88c3d0530cfe324b067920661efcb", + "shasum": "" + }, + "require": { + "netresearch/jsonmapper": "^5", + "php": ">=8.1", + "phpdocumentor/reflection-docblock": "^4.3.4 || ^5.0.0" + }, + "replace": { + "felixfbecker/php-advanced-json-rpc": "^3" + }, + "require-dev": { + "phpunit/phpunit": "^9" + }, + "type": "library", + "autoload": { + "psr-4": { + "AdvancedJsonRpc\\": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "ISC" + ], + "authors": [ + { + "name": "Felix Becker", + "email": "felix.b@outlook.com" + }, + { + "name": "Daniil Gentili", + "email": "daniil@daniil.it" + } + ], + "description": "A more advanced JSONRPC implementation", + "support": { + "issues": "https://github.com/danog/php-advanced-json-rpc/issues", + "source": "https://github.com/danog/php-advanced-json-rpc/tree/v3.2.2" + }, + "time": "2025-02-14T10:55:15+00:00" + }, + { + "name": "daverandom/libdns", + "version": "v2.1.0", + "source": { + "type": "git", + "url": "https://github.com/DaveRandom/LibDNS.git", + "reference": "b84c94e8fe6b7ee4aecfe121bfe3b6177d303c8a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/DaveRandom/LibDNS/zipball/b84c94e8fe6b7ee4aecfe121bfe3b6177d303c8a", + "reference": "b84c94e8fe6b7ee4aecfe121bfe3b6177d303c8a", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "php": ">=7.1" + }, + "suggest": { + "ext-intl": "Required for IDN support" + }, + "type": "library", + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "LibDNS\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "DNS protocol implementation written in pure PHP", + "keywords": [ + "dns" + ], + "support": { + "issues": "https://github.com/DaveRandom/LibDNS/issues", + "source": "https://github.com/DaveRandom/LibDNS/tree/v2.1.0" + }, + "time": "2024-04-12T12:12:48+00:00" + }, + { + "name": "dnoegel/php-xdg-base-dir", + "version": "v0.1.1", + "source": { + "type": "git", + "url": "https://github.com/dnoegel/php-xdg-base-dir.git", + "reference": "8f8a6e48c5ecb0f991c2fdcf5f154a47d85f9ffd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dnoegel/php-xdg-base-dir/zipball/8f8a6e48c5ecb0f991c2fdcf5f154a47d85f9ffd", + "reference": "8f8a6e48c5ecb0f991c2fdcf5f154a47d85f9ffd", + "shasum": "" + }, + "require": { + "php": ">=5.3.2" + }, + "require-dev": { + "phpunit/phpunit": "~7.0|~6.0|~5.0|~4.8.35" + }, + "type": "library", + "autoload": { + "psr-4": { + "XdgBaseDir\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "implementation of xdg base directory specification for php", + "support": { + "issues": "https://github.com/dnoegel/php-xdg-base-dir/issues", + "source": "https://github.com/dnoegel/php-xdg-base-dir/tree/v0.1.1" + }, + "time": "2019-12-04T15:06:13+00:00" + }, + { + "name": "doctrine/deprecations", + "version": "1.1.5", + "source": { + "type": "git", + "url": "https://github.com/doctrine/deprecations.git", + "reference": "459c2f5dd3d6a4633d3b5f46ee2b1c40f57d3f38" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/deprecations/zipball/459c2f5dd3d6a4633d3b5f46ee2b1c40f57d3f38", + "reference": "459c2f5dd3d6a4633d3b5f46ee2b1c40f57d3f38", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "conflict": { + "phpunit/phpunit": "<=7.5 || >=13" + }, + "require-dev": { + "doctrine/coding-standard": "^9 || ^12 || ^13", + "phpstan/phpstan": "1.4.10 || 2.1.11", + "phpstan/phpstan-phpunit": "^1.0 || ^2", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.6 || ^10.5 || ^11.5 || ^12", + "psr/log": "^1 || ^2 || ^3" + }, + "suggest": { + "psr/log": "Allows logging deprecations via PSR-3 logger implementation" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Deprecations\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", + "homepage": "https://www.doctrine-project.org/", + "support": { + "issues": "https://github.com/doctrine/deprecations/issues", + "source": "https://github.com/doctrine/deprecations/tree/1.1.5" + }, + "time": "2025-04-07T20:06:18+00:00" + }, + { + "name": "felixfbecker/language-server-protocol", + "version": "v1.5.3", + "source": { + "type": "git", + "url": "https://github.com/felixfbecker/php-language-server-protocol.git", + "reference": "a9e113dbc7d849e35b8776da39edaf4313b7b6c9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/felixfbecker/php-language-server-protocol/zipball/a9e113dbc7d849e35b8776da39edaf4313b7b6c9", + "reference": "a9e113dbc7d849e35b8776da39edaf4313b7b6c9", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "phpstan/phpstan": "*", + "squizlabs/php_codesniffer": "^3.1", + "vimeo/psalm": "^4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "LanguageServerProtocol\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "ISC" + ], + "authors": [ + { + "name": "Felix Becker", + "email": "felix.b@outlook.com" + } + ], + "description": "PHP classes for the Language Server Protocol", + "keywords": [ + "language", + "microsoft", + "php", + "server" + ], + "support": { + "issues": "https://github.com/felixfbecker/php-language-server-protocol/issues", + "source": "https://github.com/felixfbecker/php-language-server-protocol/tree/v1.5.3" + }, + "time": "2024-04-30T00:40:11+00:00" + }, + { + "name": "fidry/cpu-core-counter", + "version": "1.3.0", + "source": { + "type": "git", + "url": "https://github.com/theofidry/cpu-core-counter.git", + "reference": "db9508f7b1474469d9d3c53b86f817e344732678" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/6c1925561632e83d60a44492e0b344cf48ab85ef", - "reference": "6c1925561632e83d60a44492e0b344cf48ab85ef", + "url": "https://api.github.com/repos/theofidry/cpu-core-counter/zipball/db9508f7b1474469d9d3c53b86f817e344732678", + "reference": "db9508f7b1474469d9d3c53b86f817e344732678", "shasum": "" }, "require": { - "composer/pcre": "^1 || ^2 || ^3", - "php": "^7.2.5 || ^8.0", - "psr/log": "^1 || ^2 || ^3" + "php": "^7.2 || ^8.0" }, "require-dev": { - "phpstan/phpstan": "^1.0", - "phpstan/phpstan-strict-rules": "^1.1", - "phpunit/phpunit": "^8.5 || ^9.6 || ^10.5" + "fidry/makefile": "^0.2.0", + "fidry/php-cs-fixer-config": "^1.1.2", + "phpstan/extension-installer": "^1.2.0", + "phpstan/phpstan": "^2.0", + "phpstan/phpstan-deprecation-rules": "^2.0.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpstan/phpstan-strict-rules": "^2.0", + "phpunit/phpunit": "^8.5.31 || ^9.5.26", + "webmozarts/strict-phpunit": "^7.5" }, "type": "library", "autoload": { "psr-4": { - "Composer\\XdebugHandler\\": "src" + "Fidry\\CpuCoreCounter\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -436,233 +1314,271 @@ ], "authors": [ { - "name": "John Stevenson", - "email": "john-stevenson@blueyonder.co.uk" + "name": "Théo FIDRY", + "email": "theo.fidry@gmail.com" } ], - "description": "Restarts a process without Xdebug.", + "description": "Tiny utility to get the number of CPU cores.", "keywords": [ - "Xdebug", - "performance" + "CPU", + "core" ], "support": { - "irc": "ircs://irc.libera.chat:6697/composer", - "issues": "https://github.com/composer/xdebug-handler/issues", - "source": "https://github.com/composer/xdebug-handler/tree/3.0.5" + "issues": "https://github.com/theofidry/cpu-core-counter/issues", + "source": "https://github.com/theofidry/cpu-core-counter/tree/1.3.0" }, "funding": [ { - "url": "https://packagist.com", - "type": "custom" - }, - { - "url": "https://github.com/composer", + "url": "https://github.com/theofidry", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", - "type": "tidelift" } ], - "time": "2024-05-06T16:37:16+00:00" + "time": "2025-08-14T07:29:31+00:00" }, { - "name": "dnoegel/php-xdg-base-dir", - "version": "v0.1.1", + "name": "kelunik/certificate", + "version": "v1.1.3", "source": { "type": "git", - "url": "https://github.com/dnoegel/php-xdg-base-dir.git", - "reference": "8f8a6e48c5ecb0f991c2fdcf5f154a47d85f9ffd" + "url": "https://github.com/kelunik/certificate.git", + "reference": "7e00d498c264d5eb4f78c69f41c8bd6719c0199e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/dnoegel/php-xdg-base-dir/zipball/8f8a6e48c5ecb0f991c2fdcf5f154a47d85f9ffd", - "reference": "8f8a6e48c5ecb0f991c2fdcf5f154a47d85f9ffd", + "url": "https://api.github.com/repos/kelunik/certificate/zipball/7e00d498c264d5eb4f78c69f41c8bd6719c0199e", + "reference": "7e00d498c264d5eb4f78c69f41c8bd6719c0199e", "shasum": "" }, "require": { - "php": ">=5.3.2" + "ext-openssl": "*", + "php": ">=7.0" }, "require-dev": { - "phpunit/phpunit": "~7.0|~6.0|~5.0|~4.8.35" + "amphp/php-cs-fixer-config": "^2", + "phpunit/phpunit": "^6 | 7 | ^8 | ^9" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, "autoload": { "psr-4": { - "XdgBaseDir\\": "src/" + "Kelunik\\Certificate\\": "src" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "description": "implementation of xdg base directory specification for php", + "authors": [ + { + "name": "Niklas Keller", + "email": "me@kelunik.com" + } + ], + "description": "Access certificate details and transform between different formats.", + "keywords": [ + "DER", + "certificate", + "certificates", + "openssl", + "pem", + "x509" + ], "support": { - "issues": "https://github.com/dnoegel/php-xdg-base-dir/issues", - "source": "https://github.com/dnoegel/php-xdg-base-dir/tree/v0.1.1" + "issues": "https://github.com/kelunik/certificate/issues", + "source": "https://github.com/kelunik/certificate/tree/v1.1.3" }, - "time": "2019-12-04T15:06:13+00:00" + "time": "2023-02-03T21:26:53+00:00" }, { - "name": "doctrine/deprecations", - "version": "1.1.3", + "name": "league/uri", + "version": "7.5.1", "source": { "type": "git", - "url": "https://github.com/doctrine/deprecations.git", - "reference": "dfbaa3c2d2e9a9df1118213f3b8b0c597bb99fab" + "url": "https://github.com/thephpleague/uri.git", + "reference": "81fb5145d2644324614cc532b28efd0215bda430" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/deprecations/zipball/dfbaa3c2d2e9a9df1118213f3b8b0c597bb99fab", - "reference": "dfbaa3c2d2e9a9df1118213f3b8b0c597bb99fab", + "url": "https://api.github.com/repos/thephpleague/uri/zipball/81fb5145d2644324614cc532b28efd0215bda430", + "reference": "81fb5145d2644324614cc532b28efd0215bda430", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "league/uri-interfaces": "^7.5", + "php": "^8.1" }, - "require-dev": { - "doctrine/coding-standard": "^9", - "phpstan/phpstan": "1.4.10 || 1.10.15", - "phpstan/phpstan-phpunit": "^1.0", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "psalm/plugin-phpunit": "0.18.4", - "psr/log": "^1 || ^2 || ^3", - "vimeo/psalm": "4.30.0 || 5.12.0" + "conflict": { + "league/uri-schemes": "^1.0" }, "suggest": { - "psr/log": "Allows logging deprecations via PSR-3 logger implementation" + "ext-bcmath": "to improve IPV4 host parsing", + "ext-fileinfo": "to create Data URI from file contennts", + "ext-gmp": "to improve IPV4 host parsing", + "ext-intl": "to handle IDN host with the best performance", + "jeremykendall/php-domain-parser": "to resolve Public Suffix and Top Level Domain", + "league/uri-components": "Needed to easily manipulate URI objects components", + "php-64bit": "to improve IPV4 host parsing", + "symfony/polyfill-intl-idn": "to handle IDN host via the Symfony polyfill if ext-intl is not present" }, "type": "library", - "autoload": { - "psr-4": { - "Doctrine\\Deprecations\\": "lib/Doctrine/Deprecations" + "extra": { + "branch-alias": { + "dev-master": "7.x-dev" } }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", - "homepage": "https://www.doctrine-project.org/", - "support": { - "issues": "https://github.com/doctrine/deprecations/issues", - "source": "https://github.com/doctrine/deprecations/tree/1.1.3" - }, - "time": "2024-01-30T19:34:25+00:00" - }, - { - "name": "felixfbecker/advanced-json-rpc", - "version": "v3.2.1", - "source": { - "type": "git", - "url": "https://github.com/felixfbecker/php-advanced-json-rpc.git", - "reference": "b5f37dbff9a8ad360ca341f3240dc1c168b45447" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/felixfbecker/php-advanced-json-rpc/zipball/b5f37dbff9a8ad360ca341f3240dc1c168b45447", - "reference": "b5f37dbff9a8ad360ca341f3240dc1c168b45447", - "shasum": "" - }, - "require": { - "netresearch/jsonmapper": "^1.0 || ^2.0 || ^3.0 || ^4.0", - "php": "^7.1 || ^8.0", - "phpdocumentor/reflection-docblock": "^4.3.4 || ^5.0.0" - }, - "require-dev": { - "phpunit/phpunit": "^7.0 || ^8.0" - }, - "type": "library", "autoload": { "psr-4": { - "AdvancedJsonRpc\\": "lib/" + "League\\Uri\\": "" } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "ISC" + "MIT" ], "authors": [ { - "name": "Felix Becker", - "email": "felix.b@outlook.com" + "name": "Ignace Nyamagana Butera", + "email": "nyamsprod@gmail.com", + "homepage": "https://nyamsprod.com" } ], - "description": "A more advanced JSONRPC implementation", + "description": "URI manipulation library", + "homepage": "https://uri.thephpleague.com", + "keywords": [ + "data-uri", + "file-uri", + "ftp", + "hostname", + "http", + "https", + "middleware", + "parse_str", + "parse_url", + "psr-7", + "query-string", + "querystring", + "rfc3986", + "rfc3987", + "rfc6570", + "uri", + "uri-template", + "url", + "ws" + ], "support": { - "issues": "https://github.com/felixfbecker/php-advanced-json-rpc/issues", - "source": "https://github.com/felixfbecker/php-advanced-json-rpc/tree/v3.2.1" + "docs": "https://uri.thephpleague.com", + "forum": "https://thephpleague.slack.com", + "issues": "https://github.com/thephpleague/uri-src/issues", + "source": "https://github.com/thephpleague/uri/tree/7.5.1" }, - "time": "2021-06-11T22:34:44+00:00" + "funding": [ + { + "url": "https://github.com/sponsors/nyamsprod", + "type": "github" + } + ], + "time": "2024-12-08T08:40:02+00:00" }, { - "name": "felixfbecker/language-server-protocol", - "version": "v1.5.3", + "name": "league/uri-interfaces", + "version": "7.5.0", "source": { "type": "git", - "url": "https://github.com/felixfbecker/php-language-server-protocol.git", - "reference": "a9e113dbc7d849e35b8776da39edaf4313b7b6c9" + "url": "https://github.com/thephpleague/uri-interfaces.git", + "reference": "08cfc6c4f3d811584fb09c37e2849e6a7f9b0742" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/felixfbecker/php-language-server-protocol/zipball/a9e113dbc7d849e35b8776da39edaf4313b7b6c9", - "reference": "a9e113dbc7d849e35b8776da39edaf4313b7b6c9", + "url": "https://api.github.com/repos/thephpleague/uri-interfaces/zipball/08cfc6c4f3d811584fb09c37e2849e6a7f9b0742", + "reference": "08cfc6c4f3d811584fb09c37e2849e6a7f9b0742", "shasum": "" }, "require": { - "php": ">=7.1" + "ext-filter": "*", + "php": "^8.1", + "psr/http-factory": "^1", + "psr/http-message": "^1.1 || ^2.0" }, - "require-dev": { - "phpstan/phpstan": "*", - "squizlabs/php_codesniffer": "^3.1", - "vimeo/psalm": "^4.0" + "suggest": { + "ext-bcmath": "to improve IPV4 host parsing", + "ext-gmp": "to improve IPV4 host parsing", + "ext-intl": "to handle IDN host with the best performance", + "php-64bit": "to improve IPV4 host parsing", + "symfony/polyfill-intl-idn": "to handle IDN host via the Symfony polyfill if ext-intl is not present" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.x-dev" + "dev-master": "7.x-dev" } }, "autoload": { "psr-4": { - "LanguageServerProtocol\\": "src/" + "League\\Uri\\": "" } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "ISC" + "MIT" ], "authors": [ { - "name": "Felix Becker", - "email": "felix.b@outlook.com" + "name": "Ignace Nyamagana Butera", + "email": "nyamsprod@gmail.com", + "homepage": "https://nyamsprod.com" } ], - "description": "PHP classes for the Language Server Protocol", + "description": "Common interfaces and classes for URI representation and interaction", + "homepage": "https://uri.thephpleague.com", "keywords": [ - "language", - "microsoft", - "php", - "server" + "data-uri", + "file-uri", + "ftp", + "hostname", + "http", + "https", + "parse_str", + "parse_url", + "psr-7", + "query-string", + "querystring", + "rfc3986", + "rfc3987", + "rfc6570", + "uri", + "url", + "ws" ], "support": { - "issues": "https://github.com/felixfbecker/php-language-server-protocol/issues", - "source": "https://github.com/felixfbecker/php-language-server-protocol/tree/v1.5.3" + "docs": "https://uri.thephpleague.com", + "forum": "https://thephpleague.slack.com", + "issues": "https://github.com/thephpleague/uri-src/issues", + "source": "https://github.com/thephpleague/uri-interfaces/tree/7.5.0" }, - "time": "2024-04-30T00:40:11+00:00" + "funding": [ + { + "url": "https://github.com/sponsors/nyamsprod", + "type": "github" + } + ], + "time": "2024-12-08T08:18:47+00:00" }, { "name": "netresearch/jsonmapper", - "version": "v4.5.0", + "version": "v5.0.0", "source": { "type": "git", "url": "https://github.com/cweiske/jsonmapper.git", - "reference": "8e76efb98ee8b6afc54687045e1b8dba55ac76e5" + "reference": "8c64d8d444a5d764c641ebe97e0e3bc72b25bf6c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/cweiske/jsonmapper/zipball/8e76efb98ee8b6afc54687045e1b8dba55ac76e5", - "reference": "8e76efb98ee8b6afc54687045e1b8dba55ac76e5", + "url": "https://api.github.com/repos/cweiske/jsonmapper/zipball/8c64d8d444a5d764c641ebe97e0e3bc72b25bf6c", + "reference": "8c64d8d444a5d764c641ebe97e0e3bc72b25bf6c", "shasum": "" }, "require": { @@ -698,31 +1614,33 @@ "support": { "email": "cweiske@cweiske.de", "issues": "https://github.com/cweiske/jsonmapper/issues", - "source": "https://github.com/cweiske/jsonmapper/tree/v4.5.0" + "source": "https://github.com/cweiske/jsonmapper/tree/v5.0.0" }, - "time": "2024-09-08T10:13:13+00:00" + "time": "2024-09-08T10:20:00+00:00" }, { "name": "nikic/php-parser", - "version": "v4.19.4", + "version": "v5.6.1", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "715f4d25e225bc47b293a8b997fe6ce99bf987d2" + "reference": "f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/715f4d25e225bc47b293a8b997fe6ce99bf987d2", - "reference": "715f4d25e225bc47b293a8b997fe6ce99bf987d2", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2", + "reference": "f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2", "shasum": "" }, "require": { + "ext-ctype": "*", + "ext-json": "*", "ext-tokenizer": "*", - "php": ">=7.1" + "php": ">=7.4" }, "require-dev": { "ircmaxell/php-yacc": "^0.0.7", - "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" + "phpunit/phpunit": "^9.0" }, "bin": [ "bin/php-parse" @@ -730,7 +1648,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.9-dev" + "dev-master": "5.x-dev" } }, "autoload": { @@ -754,62 +1672,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.19.4" - }, - "time": "2024-09-29T15:01:53+00:00" - }, - { - "name": "openlss/lib-array2xml", - "version": "1.0.0", - "source": { - "type": "git", - "url": "https://github.com/nullivex/lib-array2xml.git", - "reference": "a91f18a8dfc69ffabe5f9b068bc39bb202c81d90" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nullivex/lib-array2xml/zipball/a91f18a8dfc69ffabe5f9b068bc39bb202c81d90", - "reference": "a91f18a8dfc69ffabe5f9b068bc39bb202c81d90", - "shasum": "" - }, - "require": { - "php": ">=5.3.2" - }, - "type": "library", - "autoload": { - "psr-0": { - "LSS": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "Apache-2.0" - ], - "authors": [ - { - "name": "Bryan Tong", - "email": "bryan@nullivex.com", - "homepage": "https://www.nullivex.com" - }, - { - "name": "Tony Butler", - "email": "spudz76@gmail.com", - "homepage": "https://www.nullivex.com" - } - ], - "description": "Array2XML conversion library credit to lalit.org", - "homepage": "https://www.nullivex.com", - "keywords": [ - "array", - "array conversion", - "xml", - "xml conversion" - ], - "support": { - "issues": "https://github.com/nullivex/lib-array2xml/issues", - "source": "https://github.com/nullivex/lib-array2xml/tree/master" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.6.1" }, - "time": "2019-03-29T20:06:56+00:00" + "time": "2025-08-13T20:13:15+00:00" }, { "name": "phpdocumentor/reflection-common", @@ -866,16 +1731,16 @@ }, { "name": "phpdocumentor/reflection-docblock", - "version": "5.4.1", + "version": "5.6.3", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "9d07b3f7fdcf5efec5d1609cba3c19c5ea2bdc9c" + "reference": "94f8051919d1b0369a6bcc7931d679a511c03fe9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/9d07b3f7fdcf5efec5d1609cba3c19c5ea2bdc9c", - "reference": "9d07b3f7fdcf5efec5d1609cba3c19c5ea2bdc9c", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/94f8051919d1b0369a6bcc7931d679a511c03fe9", + "reference": "94f8051919d1b0369a6bcc7931d679a511c03fe9", "shasum": "" }, "require": { @@ -884,17 +1749,17 @@ "php": "^7.4 || ^8.0", "phpdocumentor/reflection-common": "^2.2", "phpdocumentor/type-resolver": "^1.7", - "phpstan/phpdoc-parser": "^1.7", + "phpstan/phpdoc-parser": "^1.7|^2.0", "webmozart/assert": "^1.9.1" }, "require-dev": { - "mockery/mockery": "~1.3.5", + "mockery/mockery": "~1.3.5 || ~1.6.0", "phpstan/extension-installer": "^1.1", "phpstan/phpstan": "^1.8", "phpstan/phpstan-mockery": "^1.1", "phpstan/phpstan-webmozart-assert": "^1.2", "phpunit/phpunit": "^9.5", - "vimeo/psalm": "^5.13" + "psalm/phar": "^5.26" }, "type": "library", "extra": { @@ -924,29 +1789,29 @@ "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", "support": { "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", - "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.4.1" + "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.6.3" }, - "time": "2024-05-21T05:55:05+00:00" + "time": "2025-08-01T19:43:32+00:00" }, { "name": "phpdocumentor/type-resolver", - "version": "1.8.2", + "version": "1.10.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "153ae662783729388a584b4361f2545e4d841e3c" + "reference": "679e3ce485b99e84c775d28e2e96fade9a7fb50a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/153ae662783729388a584b4361f2545e4d841e3c", - "reference": "153ae662783729388a584b4361f2545e4d841e3c", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/679e3ce485b99e84c775d28e2e96fade9a7fb50a", + "reference": "679e3ce485b99e84c775d28e2e96fade9a7fb50a", "shasum": "" }, "require": { "doctrine/deprecations": "^1.0", "php": "^7.3 || ^8.0", "phpdocumentor/reflection-common": "^2.0", - "phpstan/phpdoc-parser": "^1.13" + "phpstan/phpdoc-parser": "^1.18|^2.0" }, "require-dev": { "ext-tokenizer": "*", @@ -982,36 +1847,36 @@ "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", "support": { "issues": "https://github.com/phpDocumentor/TypeResolver/issues", - "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.8.2" + "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.10.0" }, - "time": "2024-02-23T11:10:43+00:00" + "time": "2024-11-09T15:12:26+00:00" }, { "name": "phpstan/phpdoc-parser", - "version": "1.33.0", + "version": "2.3.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "82a311fd3690fb2bf7b64d5c98f912b3dd746140" + "reference": "1e0cd5370df5dd2e556a36b9c62f62e555870495" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/82a311fd3690fb2bf7b64d5c98f912b3dd746140", - "reference": "82a311fd3690fb2bf7b64d5c98f912b3dd746140", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/1e0cd5370df5dd2e556a36b9c62f62e555870495", + "reference": "1e0cd5370df5dd2e556a36b9c62f62e555870495", "shasum": "" }, "require": { - "php": "^7.2 || ^8.0" + "php": "^7.4 || ^8.0" }, "require-dev": { "doctrine/annotations": "^2.0", - "nikic/php-parser": "^4.15", + "nikic/php-parser": "^5.3.0", "php-parallel-lint/php-parallel-lint": "^1.2", "phpstan/extension-installer": "^1.0", - "phpstan/phpstan": "^1.5", - "phpstan/phpstan-phpunit": "^1.1", - "phpstan/phpstan-strict-rules": "^1.0", - "phpunit/phpunit": "^9.5", + "phpstan/phpstan": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpstan/phpstan-strict-rules": "^2.0", + "phpunit/phpunit": "^9.6", "symfony/process": "^5.2" }, "type": "library", @@ -1029,9 +1894,9 @@ "description": "PHPDoc parser with support for nullable, intersection and generic types", "support": { "issues": "https://github.com/phpstan/phpdoc-parser/issues", - "source": "https://github.com/phpstan/phpdoc-parser/tree/1.33.0" + "source": "https://github.com/phpstan/phpdoc-parser/tree/2.3.0" }, - "time": "2024-10-13T11:25:22+00:00" + "time": "2025-08-30T15:50:23+00:00" }, { "name": "psr/container", @@ -1058,7 +1923,115 @@ }, "autoload": { "psr-4": { - "Psr\\Container\\": "src/" + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], + "support": { + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/2.0.2" + }, + "time": "2021-11-05T16:47:00+00:00" + }, + { + "name": "psr/http-factory", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories", + "keywords": [ + "factory", + "http", + "message", + "psr", + "psr-17", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-factory" + }, + "time": "2024-04-15T12:06:14+00:00" + }, + { + "name": "psr/http-message", + "version": "2.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -1071,20 +2044,20 @@ "homepage": "https://www.php-fig.org/" } ], - "description": "Common Container Interface (PHP FIG PSR-11)", - "homepage": "https://github.com/php-fig/container", + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", "keywords": [ - "PSR-11", - "container", - "container-interface", - "container-interop", - "psr" + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" ], "support": { - "issues": "https://github.com/php-fig/container/issues", - "source": "https://github.com/php-fig/container/tree/2.0.2" + "source": "https://github.com/php-fig/http-message/tree/2.0" }, - "time": "2021-11-05T16:47:00+00:00" + "time": "2023-04-04T09:54:51+00:00" }, { "name": "psr/log", @@ -1136,31 +2109,103 @@ }, "time": "2024-09-11T13:17:53+00:00" }, + { + "name": "revolt/event-loop", + "version": "v1.0.7", + "source": { + "type": "git", + "url": "https://github.com/revoltphp/event-loop.git", + "reference": "09bf1bf7f7f574453efe43044b06fafe12216eb3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/revoltphp/event-loop/zipball/09bf1bf7f7f574453efe43044b06fafe12216eb3", + "reference": "09bf1bf7f7f574453efe43044b06fafe12216eb3", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "ext-json": "*", + "jetbrains/phpstorm-stubs": "^2019.3", + "phpunit/phpunit": "^9", + "psalm/phar": "^5.15" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Revolt\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Aaron Piotrowski", + "email": "aaron@trowski.com" + }, + { + "name": "Cees-Jan Kiewiet", + "email": "ceesjank@gmail.com" + }, + { + "name": "Christian Lück", + "email": "christian@clue.engineering" + }, + { + "name": "Niklas Keller", + "email": "me@kelunik.com" + } + ], + "description": "Rock-solid event loop for concurrent PHP applications.", + "keywords": [ + "async", + "asynchronous", + "concurrency", + "event", + "event-loop", + "non-blocking", + "scheduler" + ], + "support": { + "issues": "https://github.com/revoltphp/event-loop/issues", + "source": "https://github.com/revoltphp/event-loop/tree/v1.0.7" + }, + "time": "2025-01-25T19:27:39+00:00" + }, { "name": "sebastian/diff", - "version": "4.0.6", + "version": "7.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "ba01945089c3a293b01ba9badc29ad55b106b0bc" + "reference": "7ab1ea946c012266ca32390913653d844ecd085f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/ba01945089c3a293b01ba9badc29ad55b106b0bc", - "reference": "ba01945089c3a293b01ba9badc29ad55b106b0bc", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7ab1ea946c012266ca32390913653d844ecd085f", + "reference": "7ab1ea946c012266ca32390913653d844ecd085f", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^9.3", - "symfony/process": "^4.2 || ^5" + "phpunit/phpunit": "^12.0", + "symfony/process": "^7.2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "7.0-dev" } }, "autoload": { @@ -1192,7 +2237,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/diff/issues", - "source": "https://github.com/sebastianbergmann/diff/tree/4.0.6" + "security": "https://github.com/sebastianbergmann/diff/security/policy", + "source": "https://github.com/sebastianbergmann/diff/tree/7.0.0" }, "funding": [ { @@ -1200,51 +2246,119 @@ "type": "github" } ], - "time": "2024-03-02T06:30:58+00:00" + "time": "2025-02-07T04:55:46+00:00" + }, + { + "name": "spatie/array-to-xml", + "version": "3.4.0", + "source": { + "type": "git", + "url": "https://github.com/spatie/array-to-xml.git", + "reference": "7dcfc67d60b0272926dabad1ec01f6b8a5fb5e67" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/array-to-xml/zipball/7dcfc67d60b0272926dabad1ec01f6b8a5fb5e67", + "reference": "7dcfc67d60b0272926dabad1ec01f6b8a5fb5e67", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "php": "^8.0" + }, + "require-dev": { + "mockery/mockery": "^1.2", + "pestphp/pest": "^1.21", + "spatie/pest-plugin-snapshots": "^1.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Spatie\\ArrayToXml\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://freek.dev", + "role": "Developer" + } + ], + "description": "Convert an array to xml", + "homepage": "https://github.com/spatie/array-to-xml", + "keywords": [ + "array", + "convert", + "xml" + ], + "support": { + "source": "https://github.com/spatie/array-to-xml/tree/3.4.0" + }, + "funding": [ + { + "url": "https://spatie.be/open-source/support-us", + "type": "custom" + }, + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2024-12-16T12:45:15+00:00" }, { "name": "symfony/console", - "version": "v6.4.12", + "version": "v7.3.4", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "72d080eb9edf80e36c19be61f72c98ed8273b765" + "reference": "2b9c5fafbac0399a20a2e82429e2bd735dcfb7db" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/72d080eb9edf80e36c19be61f72c98ed8273b765", - "reference": "72d080eb9edf80e36c19be61f72c98ed8273b765", + "url": "https://api.github.com/repos/symfony/console/zipball/2b9c5fafbac0399a20a2e82429e2bd735dcfb7db", + "reference": "2b9c5fafbac0399a20a2e82429e2bd735dcfb7db", "shasum": "" }, "require": { - "php": ">=8.1", + "php": ">=8.2", "symfony/deprecation-contracts": "^2.5|^3", "symfony/polyfill-mbstring": "~1.0", "symfony/service-contracts": "^2.5|^3", - "symfony/string": "^5.4|^6.0|^7.0" + "symfony/string": "^7.2" }, "conflict": { - "symfony/dependency-injection": "<5.4", - "symfony/dotenv": "<5.4", - "symfony/event-dispatcher": "<5.4", - "symfony/lock": "<5.4", - "symfony/process": "<5.4" + "symfony/dependency-injection": "<6.4", + "symfony/dotenv": "<6.4", + "symfony/event-dispatcher": "<6.4", + "symfony/lock": "<6.4", + "symfony/process": "<6.4" }, "provide": { "psr/log-implementation": "1.0|2.0|3.0" }, "require-dev": { "psr/log": "^1|^2|^3", - "symfony/config": "^5.4|^6.0|^7.0", - "symfony/dependency-injection": "^5.4|^6.0|^7.0", - "symfony/event-dispatcher": "^5.4|^6.0|^7.0", + "symfony/config": "^6.4|^7.0", + "symfony/dependency-injection": "^6.4|^7.0", + "symfony/event-dispatcher": "^6.4|^7.0", "symfony/http-foundation": "^6.4|^7.0", "symfony/http-kernel": "^6.4|^7.0", - "symfony/lock": "^5.4|^6.0|^7.0", - "symfony/messenger": "^5.4|^6.0|^7.0", - "symfony/process": "^5.4|^6.0|^7.0", - "symfony/stopwatch": "^5.4|^6.0|^7.0", - "symfony/var-dumper": "^5.4|^6.0|^7.0" + "symfony/lock": "^6.4|^7.0", + "symfony/messenger": "^6.4|^7.0", + "symfony/process": "^6.4|^7.0", + "symfony/stopwatch": "^6.4|^7.0", + "symfony/var-dumper": "^6.4|^7.0" }, "type": "library", "autoload": { @@ -1278,7 +2392,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v6.4.12" + "source": "https://github.com/symfony/console/tree/v7.3.4" }, "funding": [ { @@ -1289,25 +2403,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-20T08:15:52+00:00" + "time": "2025-09-22T15:31:00+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v3.5.0", + "version": "v3.6.0", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1" + "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", - "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/63afe740e99a13ba87ec199bb07bbdee937a5b62", + "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62", "shasum": "" }, "require": { @@ -1315,12 +2433,12 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "3.5-dev" - }, "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.6-dev" } }, "autoload": { @@ -1345,7 +2463,73 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.6.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-25T14:21:43+00:00" + }, + { + "name": "symfony/filesystem", + "version": "v7.3.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/filesystem.git", + "reference": "edcbb768a186b5c3f25d0643159a787d3e63b7fd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/edcbb768a186b5c3f25d0643159a787d3e63b7fd", + "reference": "edcbb768a186b5c3f25d0643159a787d3e63b7fd", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-mbstring": "~1.8" + }, + "require-dev": { + "symfony/process": "^6.4|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Filesystem\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides basic utilities for the filesystem", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/filesystem/tree/v7.3.2" }, "funding": [ { @@ -1356,16 +2540,20 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-04-18T09:32:20+00:00" + "time": "2025-07-07T08:17:47+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.31.0", + "version": "v1.33.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", @@ -1389,8 +2577,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -1424,7 +2612,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.33.0" }, "funding": [ { @@ -1435,6 +2623,10 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" @@ -1444,16 +2636,16 @@ }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.31.0", + "version": "v1.33.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe" + "reference": "380872130d3a5dd3ace2f4010d95125fde5d5c70" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe", - "reference": "b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/380872130d3a5dd3ace2f4010d95125fde5d5c70", + "reference": "380872130d3a5dd3ace2f4010d95125fde5d5c70", "shasum": "" }, "require": { @@ -1465,8 +2657,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -1502,7 +2694,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.33.0" }, "funding": [ { @@ -1513,16 +2705,20 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2025-06-27T09:58:17+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.31.0", + "version": "v1.33.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", @@ -1543,8 +2739,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -1583,7 +2779,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.33.0" }, "funding": [ { @@ -1594,6 +2790,10 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" @@ -1603,19 +2803,20 @@ }, { "name": "symfony/polyfill-mbstring", - "version": "v1.31.0", + "version": "v1.33.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341" + "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/85181ba99b2345b0ef10ce42ecac37612d9fd341", - "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493", + "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493", "shasum": "" }, "require": { + "ext-iconv": "*", "php": ">=7.2" }, "provide": { @@ -1627,8 +2828,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -1663,7 +2864,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.33.0" }, "funding": [ { @@ -1674,25 +2875,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2024-12-23T08:48:59+00:00" }, { - "name": "symfony/polyfill-php80", - "version": "v1.31.0", + "name": "symfony/polyfill-php84", + "version": "v1.33.0", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8" + "url": "https://github.com/symfony/polyfill-php84.git", + "reference": "d8ced4d875142b6a7426000426b8abc631d6b191" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", - "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", + "url": "https://api.github.com/repos/symfony/polyfill-php84/zipball/d8ced4d875142b6a7426000426b8abc631d6b191", + "reference": "d8ced4d875142b6a7426000426b8abc631d6b191", "shasum": "" }, "require": { @@ -1701,8 +2906,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -1710,7 +2915,7 @@ "bootstrap.php" ], "psr-4": { - "Symfony\\Polyfill\\Php80\\": "" + "Symfony\\Polyfill\\Php84\\": "" }, "classmap": [ "Resources/stubs" @@ -1721,10 +2926,6 @@ "MIT" ], "authors": [ - { - "name": "Ion Bazan", - "email": "ion.bazan@gmail.com" - }, { "name": "Nicolas Grekas", "email": "p@tchwork.com" @@ -1734,7 +2935,7 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "description": "Symfony polyfill backporting some PHP 8.4+ features to lower PHP versions", "homepage": "https://symfony.com", "keywords": [ "compatibility", @@ -1743,7 +2944,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-php84/tree/v1.33.0" }, "funding": [ { @@ -1754,25 +2955,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2025-06-24T13:30:11+00:00" }, { "name": "symfony/service-contracts", - "version": "v3.5.0", + "version": "v3.6.0", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f" + "reference": "f021b05a130d35510bd6b25fe9053c2a8a15d5d4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/bd1d9e59a81d8fa4acdcea3f617c581f7475a80f", - "reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/f021b05a130d35510bd6b25fe9053c2a8a15d5d4", + "reference": "f021b05a130d35510bd6b25fe9053c2a8a15d5d4", "shasum": "" }, "require": { @@ -1785,12 +2990,12 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "3.5-dev" - }, "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.6-dev" } }, "autoload": { @@ -1826,7 +3031,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.5.0" + "source": "https://github.com/symfony/service-contracts/tree/v3.6.0" }, "funding": [ { @@ -1842,20 +3047,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:32:20+00:00" + "time": "2025-04-25T09:37:31+00:00" }, { "name": "symfony/string", - "version": "v7.1.5", + "version": "v7.3.4", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "d66f9c343fa894ec2037cc928381df90a7ad4306" + "reference": "f96476035142921000338bad71e5247fbc138872" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/d66f9c343fa894ec2037cc928381df90a7ad4306", - "reference": "d66f9c343fa894ec2037cc928381df90a7ad4306", + "url": "https://api.github.com/repos/symfony/string/zipball/f96476035142921000338bad71e5247fbc138872", + "reference": "f96476035142921000338bad71e5247fbc138872", "shasum": "" }, "require": { @@ -1870,7 +3075,6 @@ }, "require-dev": { "symfony/emoji": "^7.1", - "symfony/error-handler": "^6.4|^7.0", "symfony/http-client": "^6.4|^7.0", "symfony/intl": "^6.4|^7.0", "symfony/translation-contracts": "^2.5|^3.0", @@ -1913,7 +3117,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v7.1.5" + "source": "https://github.com/symfony/string/tree/v7.3.4" }, "funding": [ { @@ -1924,33 +3128,39 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-20T08:28:38+00:00" + "time": "2025-09-11T14:36:48+00:00" }, { "name": "vimeo/psalm", - "version": "4.30.0", + "version": "6.13.1", "source": { "type": "git", "url": "https://github.com/vimeo/psalm.git", - "reference": "d0bc6e25d89f649e4f36a534f330f8bb4643dd69" + "reference": "1e3b7f0a8ab32b23197b91107adc0a7ed8a05b51" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vimeo/psalm/zipball/d0bc6e25d89f649e4f36a534f330f8bb4643dd69", - "reference": "d0bc6e25d89f649e4f36a534f330f8bb4643dd69", + "url": "https://api.github.com/repos/vimeo/psalm/zipball/1e3b7f0a8ab32b23197b91107adc0a7ed8a05b51", + "reference": "1e3b7f0a8ab32b23197b91107adc0a7ed8a05b51", "shasum": "" }, "require": { - "amphp/amp": "^2.4.2", - "amphp/byte-stream": "^1.5", - "composer/package-versions-deprecated": "^1.8.0", + "amphp/amp": "^3", + "amphp/byte-stream": "^2", + "amphp/parallel": "^2.3", + "composer-runtime-api": "^2", "composer/semver": "^1.4 || ^2.0 || ^3.0", - "composer/xdebug-handler": "^1.1 || ^2.0 || ^3.0", + "composer/xdebug-handler": "^2.0 || ^3.0", + "danog/advanced-json-rpc": "^3.1", "dnoegel/php-xdg-base-dir": "^0.1.1", "ext-ctype": "*", "ext-dom": "*", @@ -1959,35 +3169,37 @@ "ext-mbstring": "*", "ext-simplexml": "*", "ext-tokenizer": "*", - "felixfbecker/advanced-json-rpc": "^3.0.3", - "felixfbecker/language-server-protocol": "^1.5", - "netresearch/jsonmapper": "^1.0 || ^2.0 || ^3.0 || ^4.0", - "nikic/php-parser": "^4.13", - "openlss/lib-array2xml": "^1.0", - "php": "^7.1|^8", - "sebastian/diff": "^3.0 || ^4.0", - "symfony/console": "^3.4.17 || ^4.1.6 || ^5.0 || ^6.0", - "symfony/polyfill-php80": "^1.25", - "webmozart/path-util": "^2.3" + "felixfbecker/language-server-protocol": "^1.5.3", + "fidry/cpu-core-counter": "^0.4.1 || ^0.5.1 || ^1.0.0", + "netresearch/jsonmapper": "^5.0", + "nikic/php-parser": "^5.0.0", + "php": "~8.1.31 || ~8.2.27 || ~8.3.16 || ~8.4.3", + "sebastian/diff": "^4.0 || ^5.0 || ^6.0 || ^7.0", + "spatie/array-to-xml": "^2.17.0 || ^3.0", + "symfony/console": "^6.0 || ^7.0", + "symfony/filesystem": "~6.3.12 || ~6.4.3 || ^7.0.3", + "symfony/polyfill-php84": "^1.31.0" }, "provide": { "psalm/psalm": "self.version" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.2", - "brianium/paratest": "^4.0||^6.0", + "amphp/phpunit-util": "^3", + "bamarni/composer-bin-plugin": "^1.4", + "brianium/paratest": "^6.9", + "danog/class-finder": "^0.4.8", + "dg/bypass-finals": "^1.5", "ext-curl": "*", + "mockery/mockery": "^1.5", + "nunomaduro/mock-final-classes": "^1.1", "php-parallel-lint/php-parallel-lint": "^1.2", - "phpdocumentor/reflection-docblock": "^5", - "phpmyadmin/sql-parser": "5.1.0||dev-master", - "phpspec/prophecy": ">=1.9.0", - "phpstan/phpdoc-parser": "1.2.* || 1.6.4", - "phpunit/phpunit": "^9.0", - "psalm/plugin-phpunit": "^0.16", - "slevomat/coding-standard": "^7.0", - "squizlabs/php_codesniffer": "^3.5", - "symfony/process": "^4.3 || ^5.0 || ^6.0", - "weirdan/prophecy-shim": "^1.0 || ^2.0" + "phpstan/phpdoc-parser": "^1.6", + "phpunit/phpunit": "^9.6", + "psalm/plugin-mockery": "^1.1", + "psalm/plugin-phpunit": "^0.19", + "slevomat/coding-standard": "^8.4", + "squizlabs/php_codesniffer": "^3.6", + "symfony/process": "^6.0 || ^7.0" }, "suggest": { "ext-curl": "In order to send data to shepherd", @@ -1998,22 +3210,22 @@ "psalm-language-server", "psalm-plugin", "psalm-refactor", + "psalm-review", "psalter" ], - "type": "library", + "type": "project", "extra": { "branch-alias": { - "dev-master": "4.x-dev", - "dev-3.x": "3.x-dev", + "dev-1.x": "1.x-dev", "dev-2.x": "2.x-dev", - "dev-1.x": "1.x-dev" + "dev-3.x": "3.x-dev", + "dev-4.x": "4.x-dev", + "dev-5.x": "5.x-dev", + "dev-6.x": "6.x-dev", + "dev-master": "7.x-dev" } }, "autoload": { - "files": [ - "src/functions.php", - "src/spl_object_id.php" - ], "psr-4": { "Psalm\\": "src/Psalm/" } @@ -2025,44 +3237,50 @@ "authors": [ { "name": "Matthew Brown" + }, + { + "name": "Daniil Gentili", + "email": "daniil@daniil.it" } ], "description": "A static analysis tool for finding errors in PHP applications", "keywords": [ "code", "inspection", - "php" + "php", + "static analysis" ], "support": { + "docs": "https://psalm.dev/docs", "issues": "https://github.com/vimeo/psalm/issues", - "source": "https://github.com/vimeo/psalm/tree/4.30.0" + "source": "https://github.com/vimeo/psalm" }, - "time": "2022-11-06T20:37:08+00:00" + "time": "2025-08-06T10:10:28+00:00" }, { "name": "webmozart/assert", - "version": "1.11.0", + "version": "1.12.0", "source": { "type": "git", "url": "https://github.com/webmozarts/assert.git", - "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991" + "reference": "541057574806f942c94662b817a50f63f7345360" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozarts/assert/zipball/11cb2199493b2f8a3b53e7f19068fc6aac760991", - "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/541057574806f942c94662b817a50f63f7345360", + "reference": "541057574806f942c94662b817a50f63f7345360", "shasum": "" }, "require": { "ext-ctype": "*", + "ext-date": "*", + "ext-filter": "*", "php": "^7.2 || ^8.0" }, - "conflict": { - "phpstan/phpstan": "<0.12.20", - "vimeo/psalm": "<4.6.1 || 4.6.2" - }, - "require-dev": { - "phpunit/phpunit": "^8.5.13" + "suggest": { + "ext-intl": "", + "ext-simplexml": "", + "ext-spl": "" }, "type": "library", "extra": { @@ -2093,60 +3311,9 @@ ], "support": { "issues": "https://github.com/webmozarts/assert/issues", - "source": "https://github.com/webmozarts/assert/tree/1.11.0" - }, - "time": "2022-06-03T18:03:27+00:00" - }, - { - "name": "webmozart/path-util", - "version": "2.3.0", - "source": { - "type": "git", - "url": "https://github.com/webmozart/path-util.git", - "reference": "d939f7edc24c9a1bb9c0dee5cb05d8e859490725" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/webmozart/path-util/zipball/d939f7edc24c9a1bb9c0dee5cb05d8e859490725", - "reference": "d939f7edc24c9a1bb9c0dee5cb05d8e859490725", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "webmozart/assert": "~1.0" - }, - "require-dev": { - "phpunit/phpunit": "^4.6", - "sebastian/version": "^1.0.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.3-dev" - } - }, - "autoload": { - "psr-4": { - "Webmozart\\PathUtil\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Bernhard Schussek", - "email": "bschussek@gmail.com" - } - ], - "description": "A robust cross-platform utility for normalizing, comparing and modifying file paths.", - "support": { - "issues": "https://github.com/webmozart/path-util/issues", - "source": "https://github.com/webmozart/path-util/tree/2.3.0" + "source": "https://github.com/webmozarts/assert/tree/1.12.0" }, - "abandoned": "symfony/filesystem", - "time": "2015-12-17T08:42:14+00:00" + "time": "2025-10-20T12:43:39+00:00" } ], "aliases": [], @@ -2154,7 +3321,9 @@ "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": {}, + "platform": { + "php": "^8.2" + }, "platform-dev": {}, "plugin-api-version": "2.6.0" } diff --git a/tools/roave-bc-check/composer.json b/tools/roave-bc-check/composer.json index bdbe8a9a..3c261054 100644 --- a/tools/roave-bc-check/composer.json +++ b/tools/roave-bc-check/composer.json @@ -1,4 +1,7 @@ { + "require": { + "php": "^8.2" + }, "require-dev": { "roave/backward-compatibility-check": "^8.10" } diff --git a/tools/roave-bc-check/composer.lock b/tools/roave-bc-check/composer.lock index 90efb136..96119f89 100644 --- a/tools/roave-bc-check/composer.lock +++ b/tools/roave-bc-check/composer.lock @@ -4,21 +4,21 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "2d19c63baad41ea376c162772616a2f8", + "content-hash": "8d58a2bdf759a215da85cd96c542c1a5", "packages": [], "packages-dev": [ { "name": "azjezz/psl", - "version": "3.0.2", + "version": "4.0.1", "source": { "type": "git", "url": "https://github.com/azjezz/psl.git", - "reference": "6683d60ba4d3abf8b4a4a9d94c39d0d08caa0214" + "reference": "a06f6c7effa31552082710d90bdf07ec8f55fafe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/azjezz/psl/zipball/6683d60ba4d3abf8b4a4a9d94c39d0d08caa0214", - "reference": "6683d60ba4d3abf8b4a4a9d94c39d0d08caa0214", + "url": "https://api.github.com/repos/azjezz/psl/zipball/a06f6c7effa31552082710d90bdf07ec8f55fafe", + "reference": "a06f6c7effa31552082710d90bdf07ec8f55fafe", "shasum": "" }, "require": { @@ -27,18 +27,15 @@ "ext-json": "*", "ext-mbstring": "*", "ext-sodium": "*", - "php": "~8.2.0 || ~8.3.0", - "revolt/event-loop": "^1.0.6" + "php": "~8.3.0 || ~8.4.0", + "revolt/event-loop": "^1.0.7" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.52.1", + "carthage-software/mago": "^1.0.0-beta.27", + "infection/infection": "^0.31.2", "php-coveralls/php-coveralls": "^2.7.0", - "php-standard-library/psalm-plugin": "^2.3.0", - "phpbench/phpbench": "^1.2.15", - "phpunit/phpunit": "^9.6.18", - "roave/infection-static-analysis-plugin": "^1.35.0", - "squizlabs/php_codesniffer": "^3.9.0", - "vimeo/psalm": "^5.23.1" + "phpbench/phpbench": "^1.4.0", + "phpunit/phpunit": "^9.6.22" }, "suggest": { "php-standard-library/phpstan-extension": "PHPStan integration", @@ -47,8 +44,8 @@ "type": "library", "extra": { "thanks": { - "name": "hhvm/hsl", - "url": "https://github.com/hhvm/hsl" + "url": "https://github.com/hhvm/hsl", + "name": "hhvm/hsl" } }, "autoload": { @@ -72,7 +69,7 @@ "description": "PHP Standard Library", "support": { "issues": "https://github.com/azjezz/psl/issues", - "source": "https://github.com/azjezz/psl/tree/3.0.2" + "source": "https://github.com/azjezz/psl/tree/4.0.1" }, "funding": [ { @@ -80,20 +77,20 @@ "type": "github" } ], - "time": "2024-09-13T10:34:56+00:00" + "time": "2025-10-09T11:33:21+00:00" }, { "name": "beberlei/assert", - "version": "v3.3.2", + "version": "v3.3.3", "source": { "type": "git", "url": "https://github.com/beberlei/assert.git", - "reference": "cb70015c04be1baee6f5f5c953703347c0ac1655" + "reference": "b5fd8eacd8915a1b627b8bfc027803f1939734dd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/beberlei/assert/zipball/cb70015c04be1baee6f5f5c953703347c0ac1655", - "reference": "cb70015c04be1baee6f5f5c953703347c0ac1655", + "url": "https://api.github.com/repos/beberlei/assert/zipball/b5fd8eacd8915a1b627b8bfc027803f1939734dd", + "reference": "b5fd8eacd8915a1b627b8bfc027803f1939734dd", "shasum": "" }, "require": { @@ -101,7 +98,7 @@ "ext-json": "*", "ext-mbstring": "*", "ext-simplexml": "*", - "php": "^7.0 || ^8.0" + "php": "^7.1 || ^8.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "*", @@ -145,22 +142,22 @@ ], "support": { "issues": "https://github.com/beberlei/assert/issues", - "source": "https://github.com/beberlei/assert/tree/v3.3.2" + "source": "https://github.com/beberlei/assert/tree/v3.3.3" }, - "time": "2021-12-16T21:41:27+00:00" + "time": "2024-07-15T13:18:35+00:00" }, { "name": "composer/ca-bundle", - "version": "1.5.2", + "version": "1.5.8", "source": { "type": "git", "url": "https://github.com/composer/ca-bundle.git", - "reference": "48a792895a2b7a6ee65dd5442c299d7b835b6137" + "reference": "719026bb30813accb68271fee7e39552a58e9f65" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/ca-bundle/zipball/48a792895a2b7a6ee65dd5442c299d7b835b6137", - "reference": "48a792895a2b7a6ee65dd5442c299d7b835b6137", + "url": "https://api.github.com/repos/composer/ca-bundle/zipball/719026bb30813accb68271fee7e39552a58e9f65", + "reference": "719026bb30813accb68271fee7e39552a58e9f65", "shasum": "" }, "require": { @@ -207,7 +204,7 @@ "support": { "irc": "irc://irc.freenode.org/composer", "issues": "https://github.com/composer/ca-bundle/issues", - "source": "https://github.com/composer/ca-bundle/tree/1.5.2" + "source": "https://github.com/composer/ca-bundle/tree/1.5.8" }, "funding": [ { @@ -217,26 +214,22 @@ { "url": "https://github.com/composer", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", - "type": "tidelift" } ], - "time": "2024-09-25T07:49:53+00:00" + "time": "2025-08-20T18:49:47+00:00" }, { "name": "composer/class-map-generator", - "version": "1.4.0", + "version": "1.6.2", "source": { "type": "git", "url": "https://github.com/composer/class-map-generator.git", - "reference": "98bbf6780e56e0fd2404fe4b82eb665a0f93b783" + "reference": "ba9f089655d4cdd64e762a6044f411ccdaec0076" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/class-map-generator/zipball/98bbf6780e56e0fd2404fe4b82eb665a0f93b783", - "reference": "98bbf6780e56e0fd2404fe4b82eb665a0f93b783", + "url": "https://api.github.com/repos/composer/class-map-generator/zipball/ba9f089655d4cdd64e762a6044f411ccdaec0076", + "reference": "ba9f089655d4cdd64e762a6044f411ccdaec0076", "shasum": "" }, "require": { @@ -245,10 +238,10 @@ "symfony/finder": "^4.4 || ^5.3 || ^6 || ^7" }, "require-dev": { - "phpstan/phpstan": "^1.6", - "phpstan/phpstan-deprecation-rules": "^1", - "phpstan/phpstan-phpunit": "^1", - "phpstan/phpstan-strict-rules": "^1.1", + "phpstan/phpstan": "^1.12 || ^2", + "phpstan/phpstan-deprecation-rules": "^1 || ^2", + "phpstan/phpstan-phpunit": "^1 || ^2", + "phpstan/phpstan-strict-rules": "^1.1 || ^2", "phpunit/phpunit": "^8", "symfony/filesystem": "^5.4 || ^6" }, @@ -280,7 +273,7 @@ ], "support": { "issues": "https://github.com/composer/class-map-generator/issues", - "source": "https://github.com/composer/class-map-generator/tree/1.4.0" + "source": "https://github.com/composer/class-map-generator/tree/1.6.2" }, "funding": [ { @@ -290,26 +283,22 @@ { "url": "https://github.com/composer", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", - "type": "tidelift" } ], - "time": "2024-10-03T18:14:00+00:00" + "time": "2025-08-20T18:52:43+00:00" }, { "name": "composer/composer", - "version": "2.8.1", + "version": "2.8.12", "source": { "type": "git", "url": "https://github.com/composer/composer.git", - "reference": "e52b8672276cf436670cdd6bd5de4353740e83b2" + "reference": "3e38919bc9a2c3c026f2151b5e56d04084ce8f0b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/composer/zipball/e52b8672276cf436670cdd6bd5de4353740e83b2", - "reference": "e52b8672276cf436670cdd6bd5de4353740e83b2", + "url": "https://api.github.com/repos/composer/composer/zipball/3e38919bc9a2c3c026f2151b5e56d04084ce8f0b", + "reference": "3e38919bc9a2c3c026f2151b5e56d04084ce8f0b", "shasum": "" }, "require": { @@ -320,20 +309,20 @@ "composer/semver": "^3.3", "composer/spdx-licenses": "^1.5.7", "composer/xdebug-handler": "^2.0.2 || ^3.0.3", - "justinrainbow/json-schema": "^5.3", + "justinrainbow/json-schema": "^6.5.1", "php": "^7.2.5 || ^8.0", "psr/log": "^1.0 || ^2.0 || ^3.0", - "react/promise": "^3.2", + "react/promise": "^3.3", "seld/jsonlint": "^1.4", "seld/phar-utils": "^1.2", "seld/signal-handler": "^2.0", - "symfony/console": "^5.4.35 || ^6.3.12 || ^7.0.3", - "symfony/filesystem": "^5.4.35 || ^6.3.12 || ^7.0.3", - "symfony/finder": "^5.4.35 || ^6.3.12 || ^7.0.3", + "symfony/console": "^5.4.47 || ^6.4.25 || ^7.1.10", + "symfony/filesystem": "^5.4.45 || ^6.4.24 || ^7.1.10", + "symfony/finder": "^5.4.45 || ^6.4.24 || ^7.1.10", "symfony/polyfill-php73": "^1.24", "symfony/polyfill-php80": "^1.24", "symfony/polyfill-php81": "^1.24", - "symfony/process": "^5.4.35 || ^6.3.12 || ^7.0.3" + "symfony/process": "^5.4.47 || ^6.4.25 || ^7.1.10" }, "require-dev": { "phpstan/phpstan": "^1.11.8", @@ -341,7 +330,7 @@ "phpstan/phpstan-phpunit": "^1.4.0", "phpstan/phpstan-strict-rules": "^1.6.0", "phpstan/phpstan-symfony": "^1.4.0", - "symfony/phpunit-bridge": "^6.4.3 || ^7.0.1" + "symfony/phpunit-bridge": "^6.4.25 || ^7.3.3" }, "suggest": { "ext-openssl": "Enabling the openssl extension allows you to access https URLs for repositories and packages", @@ -353,13 +342,13 @@ ], "type": "library", "extra": { - "branch-alias": { - "dev-main": "2.8-dev" - }, "phpstan": { "includes": [ "phpstan/rules.neon" ] + }, + "branch-alias": { + "dev-main": "2.8-dev" } }, "autoload": { @@ -394,7 +383,7 @@ "irc": "ircs://irc.libera.chat:6697/composer", "issues": "https://github.com/composer/composer/issues", "security": "https://github.com/composer/composer/security/policy", - "source": "https://github.com/composer/composer/tree/2.8.1" + "source": "https://github.com/composer/composer/tree/2.8.12" }, "funding": [ { @@ -404,13 +393,9 @@ { "url": "https://github.com/composer", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", - "type": "tidelift" } ], - "time": "2024-10-04T09:31:01+00:00" + "time": "2025-09-19T11:41:59+00:00" }, { "name": "composer/metadata-minifier", @@ -483,16 +468,16 @@ }, { "name": "composer/pcre", - "version": "3.3.1", + "version": "3.3.2", "source": { "type": "git", "url": "https://github.com/composer/pcre.git", - "reference": "63aaeac21d7e775ff9bc9d45021e1745c97521c4" + "reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/pcre/zipball/63aaeac21d7e775ff9bc9d45021e1745c97521c4", - "reference": "63aaeac21d7e775ff9bc9d45021e1745c97521c4", + "url": "https://api.github.com/repos/composer/pcre/zipball/b2bed4734f0cc156ee1fe9c0da2550420d99a21e", + "reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e", "shasum": "" }, "require": { @@ -502,19 +487,19 @@ "phpstan/phpstan": "<1.11.10" }, "require-dev": { - "phpstan/phpstan": "^1.11.10", - "phpstan/phpstan-strict-rules": "^1.1", + "phpstan/phpstan": "^1.12 || ^2", + "phpstan/phpstan-strict-rules": "^1 || ^2", "phpunit/phpunit": "^8 || ^9" }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "3.x-dev" - }, "phpstan": { "includes": [ "extension.neon" ] + }, + "branch-alias": { + "dev-main": "3.x-dev" } }, "autoload": { @@ -542,7 +527,7 @@ ], "support": { "issues": "https://github.com/composer/pcre/issues", - "source": "https://github.com/composer/pcre/tree/3.3.1" + "source": "https://github.com/composer/pcre/tree/3.3.2" }, "funding": [ { @@ -558,20 +543,20 @@ "type": "tidelift" } ], - "time": "2024-08-27T18:44:43+00:00" + "time": "2024-11-12T16:29:46+00:00" }, { "name": "composer/semver", - "version": "3.4.3", + "version": "3.4.4", "source": { "type": "git", "url": "https://github.com/composer/semver.git", - "reference": "4313d26ada5e0c4edfbd1dc481a92ff7bff91f12" + "reference": "198166618906cb2de69b95d7d47e5fa8aa1b2b95" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/4313d26ada5e0c4edfbd1dc481a92ff7bff91f12", - "reference": "4313d26ada5e0c4edfbd1dc481a92ff7bff91f12", + "url": "https://api.github.com/repos/composer/semver/zipball/198166618906cb2de69b95d7d47e5fa8aa1b2b95", + "reference": "198166618906cb2de69b95d7d47e5fa8aa1b2b95", "shasum": "" }, "require": { @@ -623,7 +608,7 @@ "support": { "irc": "ircs://irc.libera.chat:6697/composer", "issues": "https://github.com/composer/semver/issues", - "source": "https://github.com/composer/semver/tree/3.4.3" + "source": "https://github.com/composer/semver/tree/3.4.4" }, "funding": [ { @@ -633,34 +618,30 @@ { "url": "https://github.com/composer", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", - "type": "tidelift" } ], - "time": "2024-09-19T14:15:21+00:00" + "time": "2025-08-20T19:15:30+00:00" }, { "name": "composer/spdx-licenses", - "version": "1.5.8", + "version": "1.5.9", "source": { "type": "git", "url": "https://github.com/composer/spdx-licenses.git", - "reference": "560bdcf8deb88ae5d611c80a2de8ea9d0358cc0a" + "reference": "edf364cefe8c43501e21e88110aac10b284c3c9f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/spdx-licenses/zipball/560bdcf8deb88ae5d611c80a2de8ea9d0358cc0a", - "reference": "560bdcf8deb88ae5d611c80a2de8ea9d0358cc0a", + "url": "https://api.github.com/repos/composer/spdx-licenses/zipball/edf364cefe8c43501e21e88110aac10b284c3c9f", + "reference": "edf364cefe8c43501e21e88110aac10b284c3c9f", "shasum": "" }, "require": { "php": "^5.3.2 || ^7.0 || ^8.0" }, "require-dev": { - "phpstan/phpstan": "^0.12.55", - "symfony/phpunit-bridge": "^4.2 || ^5" + "phpstan/phpstan": "^1.11", + "symfony/phpunit-bridge": "^3 || ^7" }, "type": "library", "extra": { @@ -703,7 +684,7 @@ "support": { "irc": "ircs://irc.libera.chat:6697/composer", "issues": "https://github.com/composer/spdx-licenses/issues", - "source": "https://github.com/composer/spdx-licenses/tree/1.5.8" + "source": "https://github.com/composer/spdx-licenses/tree/1.5.9" }, "funding": [ { @@ -719,7 +700,7 @@ "type": "tidelift" } ], - "time": "2023-11-20T07:44:33+00:00" + "time": "2025-05-12T21:07:07+00:00" }, { "name": "composer/xdebug-handler", @@ -789,24 +770,23 @@ }, { "name": "jetbrains/phpstorm-stubs", - "version": "v2023.3", + "version": "v2024.3", "source": { "type": "git", "url": "https://github.com/JetBrains/phpstorm-stubs.git", - "reference": "99d8bcab934ae5362f33660b1cd4b8c4d617c40b" + "reference": "0e82bdfe850c71857ee4ee3501ed82a9fc5d043c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/JetBrains/phpstorm-stubs/zipball/99d8bcab934ae5362f33660b1cd4b8c4d617c40b", - "reference": "99d8bcab934ae5362f33660b1cd4b8c4d617c40b", + "url": "https://api.github.com/repos/JetBrains/phpstorm-stubs/zipball/0e82bdfe850c71857ee4ee3501ed82a9fc5d043c", + "reference": "0e82bdfe850c71857ee4ee3501ed82a9fc5d043c", "shasum": "" }, "require-dev": { - "friendsofphp/php-cs-fixer": "@stable", - "nikic/php-parser": "@stable", - "php": "^8.0", - "phpdocumentor/reflection-docblock": "@stable", - "phpunit/phpunit": "^9.6" + "friendsofphp/php-cs-fixer": "v3.64.0", + "nikic/php-parser": "v5.3.1", + "phpdocumentor/reflection-docblock": "5.6.0", + "phpunit/phpunit": "11.4.3" }, "type": "library", "autoload": { @@ -831,36 +811,46 @@ "type" ], "support": { - "source": "https://github.com/JetBrains/phpstorm-stubs/tree/v2023.3" + "source": "https://github.com/JetBrains/phpstorm-stubs/tree/v2024.3" }, - "time": "2023-11-01T18:52:29+00:00" + "time": "2024-12-14T08:03:12+00:00" }, { "name": "justinrainbow/json-schema", - "version": "5.3.0", + "version": "6.6.0", "source": { "type": "git", "url": "https://github.com/jsonrainbow/json-schema.git", - "reference": "feb2ca6dd1cebdaf1ed60a4c8de2e53ce11c4fd8" + "reference": "68ba7677532803cc0c5900dd5a4d730537f2b2f3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/jsonrainbow/json-schema/zipball/feb2ca6dd1cebdaf1ed60a4c8de2e53ce11c4fd8", - "reference": "feb2ca6dd1cebdaf1ed60a4c8de2e53ce11c4fd8", + "url": "https://api.github.com/repos/jsonrainbow/json-schema/zipball/68ba7677532803cc0c5900dd5a4d730537f2b2f3", + "reference": "68ba7677532803cc0c5900dd5a4d730537f2b2f3", "shasum": "" }, "require": { - "php": ">=7.1" + "ext-json": "*", + "marc-mabe/php-enum": "^4.0", + "php": "^7.2 || ^8.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "~2.2.20||~2.15.1", - "json-schema/json-schema-test-suite": "1.2.0", - "phpunit/phpunit": "^4.8.35" + "friendsofphp/php-cs-fixer": "3.3.0", + "json-schema/json-schema-test-suite": "^23.2", + "marc-mabe/php-enum-phpstan": "^2.0", + "phpspec/prophecy": "^1.19", + "phpstan/phpstan": "^1.12", + "phpunit/phpunit": "^8.5" }, "bin": [ "bin/validate-json" ], "type": "library", + "extra": { + "branch-alias": { + "dev-master": "6.x-dev" + } + }, "autoload": { "psr-4": { "JsonSchema\\": "src/JsonSchema/" @@ -889,38 +879,113 @@ } ], "description": "A library to validate a json schema.", - "homepage": "https://github.com/justinrainbow/json-schema", + "homepage": "https://github.com/jsonrainbow/json-schema", "keywords": [ "json", "schema" ], "support": { "issues": "https://github.com/jsonrainbow/json-schema/issues", - "source": "https://github.com/jsonrainbow/json-schema/tree/5.3.0" + "source": "https://github.com/jsonrainbow/json-schema/tree/6.6.0" + }, + "time": "2025-10-10T11:34:09+00:00" + }, + { + "name": "marc-mabe/php-enum", + "version": "v4.7.2", + "source": { + "type": "git", + "url": "https://github.com/marc-mabe/php-enum.git", + "reference": "bb426fcdd65c60fb3638ef741e8782508fda7eef" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/marc-mabe/php-enum/zipball/bb426fcdd65c60fb3638ef741e8782508fda7eef", + "reference": "bb426fcdd65c60fb3638ef741e8782508fda7eef", + "shasum": "" + }, + "require": { + "ext-reflection": "*", + "php": "^7.1 | ^8.0" + }, + "require-dev": { + "phpbench/phpbench": "^0.16.10 || ^1.0.4", + "phpstan/phpstan": "^1.3.1", + "phpunit/phpunit": "^7.5.20 | ^8.5.22 | ^9.5.11", + "vimeo/psalm": "^4.17.0 | ^5.26.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-3.x": "3.2-dev", + "dev-master": "4.7-dev" + } + }, + "autoload": { + "psr-4": { + "MabeEnum\\": "src/" + }, + "classmap": [ + "stubs/Stringable.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Marc Bennewitz", + "email": "dev@mabe.berlin", + "homepage": "https://mabe.berlin/", + "role": "Lead" + } + ], + "description": "Simple and fast implementation of enumerations with native PHP", + "homepage": "https://github.com/marc-mabe/php-enum", + "keywords": [ + "enum", + "enum-map", + "enum-set", + "enumeration", + "enumerator", + "enummap", + "enumset", + "map", + "set", + "type", + "type-hint", + "typehint" + ], + "support": { + "issues": "https://github.com/marc-mabe/php-enum/issues", + "source": "https://github.com/marc-mabe/php-enum/tree/v4.7.2" }, - "time": "2024-07-06T21:00:26+00:00" + "time": "2025-09-14T11:18:39+00:00" }, { "name": "nikic/php-parser", - "version": "v4.19.4", + "version": "v5.6.1", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "715f4d25e225bc47b293a8b997fe6ce99bf987d2" + "reference": "f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/715f4d25e225bc47b293a8b997fe6ce99bf987d2", - "reference": "715f4d25e225bc47b293a8b997fe6ce99bf987d2", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2", + "reference": "f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2", "shasum": "" }, "require": { + "ext-ctype": "*", + "ext-json": "*", "ext-tokenizer": "*", - "php": ">=7.1" + "php": ">=7.4" }, "require-dev": { "ircmaxell/php-yacc": "^0.0.7", - "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" + "phpunit/phpunit": "^9.0" }, "bin": [ "bin/php-parse" @@ -928,7 +993,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.9-dev" + "dev-master": "5.x-dev" } }, "autoload": { @@ -952,22 +1017,22 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.19.4" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.6.1" }, - "time": "2024-09-29T15:01:53+00:00" + "time": "2025-08-13T20:13:15+00:00" }, { "name": "nikolaposa/version", - "version": "4.2.0", + "version": "4.2.1", "source": { "type": "git", "url": "https://github.com/nikolaposa/version.git", - "reference": "003fefa14f47cd44917546285e39d196af062a95" + "reference": "2b9ee2f0b09333b6ce00bd6b63132cdf1d7a1428" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikolaposa/version/zipball/003fefa14f47cd44917546285e39d196af062a95", - "reference": "003fefa14f47cd44917546285e39d196af062a95", + "url": "https://api.github.com/repos/nikolaposa/version/zipball/2b9ee2f0b09333b6ce00bd6b63132cdf1d7a1428", + "reference": "2b9ee2f0b09333b6ce00bd6b63132cdf1d7a1428", "shasum": "" }, "require": { @@ -1013,38 +1078,39 @@ ], "support": { "issues": "https://github.com/nikolaposa/version/issues", - "source": "https://github.com/nikolaposa/version/tree/4.2.0" + "source": "https://github.com/nikolaposa/version/tree/4.2.1" }, - "time": "2023-12-29T22:07:54+00:00" + "time": "2025-03-24T19:12:02+00:00" }, { "name": "ocramius/package-versions", - "version": "2.9.0", + "version": "2.10.0", "source": { "type": "git", "url": "https://github.com/Ocramius/PackageVersions.git", - "reference": "b3397b9b4578989929d3bc2602c26fe19f035095" + "reference": "b2181b8f0e2adeef0db76a209e1a69369d8abe6f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Ocramius/PackageVersions/zipball/b3397b9b4578989929d3bc2602c26fe19f035095", - "reference": "b3397b9b4578989929d3bc2602c26fe19f035095", + "url": "https://api.github.com/repos/Ocramius/PackageVersions/zipball/b2181b8f0e2adeef0db76a209e1a69369d8abe6f", + "reference": "b2181b8f0e2adeef0db76a209e1a69369d8abe6f", "shasum": "" }, "require": { "composer-runtime-api": "^2.2.0", - "php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0" + "php": "~8.2.0 || ~8.3.0 || ~8.4.0" }, "replace": { "composer/package-versions-deprecated": "*" }, "require-dev": { - "composer/composer": "^2.7.7", + "composer/composer": "^2.8.5", "doctrine/coding-standard": "^12.0.0", "ext-zip": "^1.15.0", - "phpunit/phpunit": "^9.6.20", - "roave/infection-static-analysis-plugin": "^1.35.0", - "vimeo/psalm": "^5.25.0" + "phpunit/phpunit": "^11.5.6", + "psalm/plugin-phpunit": "^0.19.2", + "roave/infection-static-analysis-plugin": "^1.36.0", + "vimeo/psalm": "^6.3.0" }, "type": "library", "autoload": { @@ -1065,7 +1131,7 @@ "description": "Provides efficient querying for installed package versions (no runtime IO)", "support": { "issues": "https://github.com/Ocramius/PackageVersions/issues", - "source": "https://github.com/Ocramius/PackageVersions/tree/2.9.0" + "source": "https://github.com/Ocramius/PackageVersions/tree/2.10.0" }, "funding": [ { @@ -1077,7 +1143,7 @@ "type": "tidelift" } ], - "time": "2024-08-04T10:04:51+00:00" + "time": "2025-02-05T12:31:16+00:00" }, { "name": "psr/container", @@ -1184,23 +1250,23 @@ }, { "name": "react/promise", - "version": "v3.2.0", + "version": "v3.3.0", "source": { "type": "git", "url": "https://github.com/reactphp/promise.git", - "reference": "8a164643313c71354582dc850b42b33fa12a4b63" + "reference": "23444f53a813a3296c1368bb104793ce8d88f04a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/promise/zipball/8a164643313c71354582dc850b42b33fa12a4b63", - "reference": "8a164643313c71354582dc850b42b33fa12a4b63", + "url": "https://api.github.com/repos/reactphp/promise/zipball/23444f53a813a3296c1368bb104793ce8d88f04a", + "reference": "23444f53a813a3296c1368bb104793ce8d88f04a", "shasum": "" }, "require": { "php": ">=7.1.0" }, "require-dev": { - "phpstan/phpstan": "1.10.39 || 1.4.10", + "phpstan/phpstan": "1.12.28 || 1.4.10", "phpunit/phpunit": "^9.6 || ^7.5" }, "type": "library", @@ -1245,7 +1311,7 @@ ], "support": { "issues": "https://github.com/reactphp/promise/issues", - "source": "https://github.com/reactphp/promise/tree/v3.2.0" + "source": "https://github.com/reactphp/promise/tree/v3.3.0" }, "funding": [ { @@ -1253,20 +1319,20 @@ "type": "open_collective" } ], - "time": "2024-05-24T10:39:05+00:00" + "time": "2025-08-19T18:57:03+00:00" }, { "name": "revolt/event-loop", - "version": "v1.0.6", + "version": "v1.0.7", "source": { "type": "git", "url": "https://github.com/revoltphp/event-loop.git", - "reference": "25de49af7223ba039f64da4ae9a28ec2d10d0254" + "reference": "09bf1bf7f7f574453efe43044b06fafe12216eb3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/revoltphp/event-loop/zipball/25de49af7223ba039f64da4ae9a28ec2d10d0254", - "reference": "25de49af7223ba039f64da4ae9a28ec2d10d0254", + "url": "https://api.github.com/repos/revoltphp/event-loop/zipball/09bf1bf7f7f574453efe43044b06fafe12216eb3", + "reference": "09bf1bf7f7f574453efe43044b06fafe12216eb3", "shasum": "" }, "require": { @@ -1323,48 +1389,53 @@ ], "support": { "issues": "https://github.com/revoltphp/event-loop/issues", - "source": "https://github.com/revoltphp/event-loop/tree/v1.0.6" + "source": "https://github.com/revoltphp/event-loop/tree/v1.0.7" }, - "time": "2023-11-30T05:34:44+00:00" + "time": "2025-01-25T19:27:39+00:00" }, { "name": "roave/backward-compatibility-check", - "version": "8.10.0", + "version": "8.15.0", "source": { "type": "git", "url": "https://github.com/Roave/BackwardCompatibilityCheck.git", - "reference": "52bcebf0edad5f216c0d0816972f19799bf11802" + "reference": "8fa5863142c04febd76ad45758e6e8c929b15260" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Roave/BackwardCompatibilityCheck/zipball/52bcebf0edad5f216c0d0816972f19799bf11802", - "reference": "52bcebf0edad5f216c0d0816972f19799bf11802", + "url": "https://api.github.com/repos/Roave/BackwardCompatibilityCheck/zipball/8fa5863142c04febd76ad45758e6e8c929b15260", + "reference": "8fa5863142c04febd76ad45758e6e8c929b15260", "shasum": "" }, "require": { - "azjezz/psl": "^3.0.2", - "composer/composer": "^2.7.6", - "nikic/php-parser": "^4.19.1", - "nikolaposa/version": "^4.2.0", - "ocramius/package-versions": "^2.8.0", - "php": "~8.2.0 || ~8.3.0", - "roave/better-reflection": "^6.26.0", - "symfony/console": "^7.0.7" + "azjezz/psl": "^4.0.1", + "composer/composer": "^2.8.12", + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-simplexml": "*", + "nikic/php-parser": "^5.6.1", + "nikolaposa/version": "^4.2.1", + "ocramius/package-versions": "^2.10.0", + "php": "~8.3.0 || ~8.4.0", + "roave/better-reflection": "^6.65.0", + "symfony/console": "^7.3.4" }, "conflict": { + "marc-mabe/php-enum": "<4.7.2", "revolt/event-loop": "<0.2.5", "symfony/process": "<5.3.7" }, "require-dev": { - "doctrine/coding-standard": "^12.0.0", - "estahn/phpunit-json-assertions": "^4.0", + "doctrine/coding-standard": "^14.0.0", + "justinrainbow/json-schema": "^6.6.0", "php-standard-library/psalm-plugin": "^2.3.0", - "phpunit/phpunit": "^9.6.19", - "psalm/plugin-phpunit": "^0.19.0", - "roave/infection-static-analysis-plugin": "^1.35.0", + "phpunit/phpunit": "^12.4.1", + "psalm/plugin-phpunit": "^0.19.5", + "roave/infection-static-analysis-plugin": "^1.39.0", "roave/security-advisories": "dev-master", - "squizlabs/php_codesniffer": "^3.10.0", - "vimeo/psalm": "^5.24.0" + "squizlabs/php_codesniffer": "^4.0.0", + "vimeo/psalm": "^6.13.1" }, "bin": [ "bin/roave-backward-compatibility-check" @@ -1392,34 +1463,37 @@ "description": "Tool to compare two revisions of a public API to check for BC breaks", "support": { "issues": "https://github.com/Roave/BackwardCompatibilityCheck/issues", - "source": "https://github.com/Roave/BackwardCompatibilityCheck/tree/8.10.0" + "source": "https://github.com/Roave/BackwardCompatibilityCheck/tree/8.15.0" }, - "time": "2024-10-08T20:10:06+00:00" + "time": "2025-10-20T16:24:13+00:00" }, { "name": "roave/better-reflection", - "version": "6.26.0", + "version": "6.65.0", "source": { "type": "git", "url": "https://github.com/Roave/BetterReflection.git", - "reference": "658309b70c5afd7b9cfaad20c18aff3943cce23a" + "reference": "fa1906fd72991d7ac7ff9e8169eb4bcd4c51bdba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Roave/BetterReflection/zipball/658309b70c5afd7b9cfaad20c18aff3943cce23a", - "reference": "658309b70c5afd7b9cfaad20c18aff3943cce23a", + "url": "https://api.github.com/repos/Roave/BetterReflection/zipball/fa1906fd72991d7ac7ff9e8169eb4bcd4c51bdba", + "reference": "fa1906fd72991d7ac7ff9e8169eb4bcd4c51bdba", "shasum": "" }, "require": { "ext-json": "*", - "jetbrains/phpstorm-stubs": "2023.3", - "nikic/php-parser": "^4.18.0", - "php": "~8.2.0 || ~8.3.2", - "roave/signature": "^1.8.0" + "jetbrains/phpstorm-stubs": "2024.3", + "nikic/php-parser": "^5.6.1", + "php": "~8.2.0 || ~8.3.2 || ~8.4.1 || ~8.5.0" }, "conflict": { "thecodingmachine/safe": "<1.1.3" }, + "require-dev": { + "phpbench/phpbench": "^1.4.1", + "phpunit/phpunit": "^11.5.42" + }, "suggest": { "composer/composer": "Required to use the ComposerSourceLocator" }, @@ -1458,49 +1532,9 @@ "description": "Better Reflection - an improved code reflection API", "support": { "issues": "https://github.com/Roave/BetterReflection/issues", - "source": "https://github.com/Roave/BetterReflection/tree/6.26.0" - }, - "time": "2024-03-11T17:43:07+00:00" - }, - { - "name": "roave/signature", - "version": "1.8.0", - "source": { - "type": "git", - "url": "https://github.com/Roave/Signature.git", - "reference": "f92ce20f82c9a1df3b50fc56fbdaeb82cf4c9c5b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/Roave/Signature/zipball/f92ce20f82c9a1df3b50fc56fbdaeb82cf4c9c5b", - "reference": "f92ce20f82c9a1df3b50fc56fbdaeb82cf4c9c5b", - "shasum": "" - }, - "require": { - "php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" - }, - "require-dev": { - "doctrine/coding-standard": "^12.0.0", - "infection/infection": "^0.26.19", - "phpunit/phpunit": "^9.6.7", - "vimeo/psalm": "^5.9.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Roave\\Signature\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Sign and verify stuff", - "support": { - "issues": "https://github.com/Roave/Signature/issues", - "source": "https://github.com/Roave/Signature/tree/1.8.0" + "source": "https://github.com/Roave/BetterReflection/tree/6.65.0" }, - "time": "2023-11-25T00:11:29+00:00" + "time": "2025-09-29T09:52:03+00:00" }, { "name": "seld/jsonlint", @@ -1677,23 +1711,24 @@ }, { "name": "symfony/console", - "version": "v7.1.5", + "version": "v7.3.4", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "0fa539d12b3ccf068a722bbbffa07ca7079af9ee" + "reference": "2b9c5fafbac0399a20a2e82429e2bd735dcfb7db" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/0fa539d12b3ccf068a722bbbffa07ca7079af9ee", - "reference": "0fa539d12b3ccf068a722bbbffa07ca7079af9ee", + "url": "https://api.github.com/repos/symfony/console/zipball/2b9c5fafbac0399a20a2e82429e2bd735dcfb7db", + "reference": "2b9c5fafbac0399a20a2e82429e2bd735dcfb7db", "shasum": "" }, "require": { "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3", "symfony/polyfill-mbstring": "~1.0", "symfony/service-contracts": "^2.5|^3", - "symfony/string": "^6.4|^7.0" + "symfony/string": "^7.2" }, "conflict": { "symfony/dependency-injection": "<6.4", @@ -1750,7 +1785,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v7.1.5" + "source": "https://github.com/symfony/console/tree/v7.3.4" }, "funding": [ { @@ -1761,25 +1796,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-20T08:28:38+00:00" + "time": "2025-09-22T15:31:00+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v3.5.0", + "version": "v3.6.0", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1" + "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", - "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/63afe740e99a13ba87ec199bb07bbdee937a5b62", + "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62", "shasum": "" }, "require": { @@ -1787,12 +1826,12 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "3.5-dev" - }, "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.6-dev" } }, "autoload": { @@ -1817,7 +1856,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.6.0" }, "funding": [ { @@ -1833,20 +1872,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:32:20+00:00" + "time": "2024-09-25T14:21:43+00:00" }, { "name": "symfony/filesystem", - "version": "v7.1.5", + "version": "v7.3.2", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "61fe0566189bf32e8cfee78335d8776f64a66f5a" + "reference": "edcbb768a186b5c3f25d0643159a787d3e63b7fd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/61fe0566189bf32e8cfee78335d8776f64a66f5a", - "reference": "61fe0566189bf32e8cfee78335d8776f64a66f5a", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/edcbb768a186b5c3f25d0643159a787d3e63b7fd", + "reference": "edcbb768a186b5c3f25d0643159a787d3e63b7fd", "shasum": "" }, "require": { @@ -1883,7 +1922,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v7.1.5" + "source": "https://github.com/symfony/filesystem/tree/v7.3.2" }, "funding": [ { @@ -1894,25 +1933,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-17T09:16:35+00:00" + "time": "2025-07-07T08:17:47+00:00" }, { "name": "symfony/finder", - "version": "v7.1.4", + "version": "v7.3.2", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "d95bbf319f7d052082fb7af147e0f835a695e823" + "reference": "2a6614966ba1074fa93dae0bc804227422df4dfe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/d95bbf319f7d052082fb7af147e0f835a695e823", - "reference": "d95bbf319f7d052082fb7af147e0f835a695e823", + "url": "https://api.github.com/repos/symfony/finder/zipball/2a6614966ba1074fa93dae0bc804227422df4dfe", + "reference": "2a6614966ba1074fa93dae0bc804227422df4dfe", "shasum": "" }, "require": { @@ -1947,7 +1990,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v7.1.4" + "source": "https://github.com/symfony/finder/tree/v7.3.2" }, "funding": [ { @@ -1958,16 +2001,20 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-08-13T14:28:19+00:00" + "time": "2025-07-15T13:41:35+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.31.0", + "version": "v1.33.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", @@ -1991,8 +2038,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -2026,7 +2073,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.33.0" }, "funding": [ { @@ -2037,6 +2084,10 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" @@ -2046,16 +2097,16 @@ }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.31.0", + "version": "v1.33.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe" + "reference": "380872130d3a5dd3ace2f4010d95125fde5d5c70" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe", - "reference": "b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/380872130d3a5dd3ace2f4010d95125fde5d5c70", + "reference": "380872130d3a5dd3ace2f4010d95125fde5d5c70", "shasum": "" }, "require": { @@ -2067,8 +2118,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -2104,7 +2155,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.33.0" }, "funding": [ { @@ -2115,16 +2166,20 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2025-06-27T09:58:17+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.31.0", + "version": "v1.33.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", @@ -2145,8 +2200,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -2185,7 +2240,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.33.0" }, "funding": [ { @@ -2196,6 +2251,10 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" @@ -2205,19 +2264,20 @@ }, { "name": "symfony/polyfill-mbstring", - "version": "v1.31.0", + "version": "v1.33.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341" + "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/85181ba99b2345b0ef10ce42ecac37612d9fd341", - "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493", + "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493", "shasum": "" }, "require": { + "ext-iconv": "*", "php": ">=7.2" }, "provide": { @@ -2229,8 +2289,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -2265,7 +2325,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.33.0" }, "funding": [ { @@ -2276,16 +2336,20 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2024-12-23T08:48:59+00:00" }, { "name": "symfony/polyfill-php73", - "version": "v1.31.0", + "version": "v1.33.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php73.git", @@ -2303,8 +2367,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -2341,7 +2405,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php73/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-php73/tree/v1.33.0" }, "funding": [ { @@ -2352,6 +2416,10 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" @@ -2361,16 +2429,16 @@ }, { "name": "symfony/polyfill-php80", - "version": "v1.31.0", + "version": "v1.33.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8" + "reference": "0cc9dd0f17f61d8131e7df6b84bd344899fe2608" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", - "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/0cc9dd0f17f61d8131e7df6b84bd344899fe2608", + "reference": "0cc9dd0f17f61d8131e7df6b84bd344899fe2608", "shasum": "" }, "require": { @@ -2379,8 +2447,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -2421,7 +2489,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.33.0" }, "funding": [ { @@ -2432,16 +2500,20 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2025-01-02T08:10:11+00:00" }, { "name": "symfony/polyfill-php81", - "version": "v1.31.0", + "version": "v1.33.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php81.git", @@ -2459,8 +2531,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -2497,7 +2569,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php81/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-php81/tree/v1.33.0" }, "funding": [ { @@ -2508,6 +2580,10 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" @@ -2517,16 +2593,16 @@ }, { "name": "symfony/process", - "version": "v7.1.5", + "version": "v7.3.4", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "5c03ee6369281177f07f7c68252a280beccba847" + "reference": "f24f8f316367b30810810d4eb30c543d7003ff3b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/5c03ee6369281177f07f7c68252a280beccba847", - "reference": "5c03ee6369281177f07f7c68252a280beccba847", + "url": "https://api.github.com/repos/symfony/process/zipball/f24f8f316367b30810810d4eb30c543d7003ff3b", + "reference": "f24f8f316367b30810810d4eb30c543d7003ff3b", "shasum": "" }, "require": { @@ -2558,7 +2634,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v7.1.5" + "source": "https://github.com/symfony/process/tree/v7.3.4" }, "funding": [ { @@ -2569,25 +2645,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-19T21:48:23+00:00" + "time": "2025-09-11T10:12:26+00:00" }, { "name": "symfony/service-contracts", - "version": "v3.5.0", + "version": "v3.6.0", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f" + "reference": "f021b05a130d35510bd6b25fe9053c2a8a15d5d4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/bd1d9e59a81d8fa4acdcea3f617c581f7475a80f", - "reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/f021b05a130d35510bd6b25fe9053c2a8a15d5d4", + "reference": "f021b05a130d35510bd6b25fe9053c2a8a15d5d4", "shasum": "" }, "require": { @@ -2600,12 +2680,12 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "3.5-dev" - }, "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.6-dev" } }, "autoload": { @@ -2641,7 +2721,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.5.0" + "source": "https://github.com/symfony/service-contracts/tree/v3.6.0" }, "funding": [ { @@ -2657,20 +2737,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:32:20+00:00" + "time": "2025-04-25T09:37:31+00:00" }, { "name": "symfony/string", - "version": "v7.1.5", + "version": "v7.3.4", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "d66f9c343fa894ec2037cc928381df90a7ad4306" + "reference": "f96476035142921000338bad71e5247fbc138872" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/d66f9c343fa894ec2037cc928381df90a7ad4306", - "reference": "d66f9c343fa894ec2037cc928381df90a7ad4306", + "url": "https://api.github.com/repos/symfony/string/zipball/f96476035142921000338bad71e5247fbc138872", + "reference": "f96476035142921000338bad71e5247fbc138872", "shasum": "" }, "require": { @@ -2685,7 +2765,6 @@ }, "require-dev": { "symfony/emoji": "^7.1", - "symfony/error-handler": "^6.4|^7.0", "symfony/http-client": "^6.4|^7.0", "symfony/intl": "^6.4|^7.0", "symfony/translation-contracts": "^2.5|^3.0", @@ -2728,7 +2807,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v7.1.5" + "source": "https://github.com/symfony/string/tree/v7.3.4" }, "funding": [ { @@ -2739,20 +2818,26 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-20T08:28:38+00:00" + "time": "2025-09-11T14:36:48+00:00" } ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [], + "platform": { + "php": "^8.2" + }, + "platform-dev": {}, "plugin-api-version": "2.6.0" }