misc: update dependencies

This commit is contained in:
Romain Canon 2022-10-19 13:19:16 +02:00
parent 4492ef73dc
commit bd5123390f
7 changed files with 233 additions and 349 deletions

569
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -22,9 +22,6 @@ parameters:
- '#Method [\w\\:]+_data_provider\(\) return type has no value type specified in iterable type#' - '#Method [\w\\:]+_data_provider\(\) return type has no value type specified in iterable type#'
- message: '#Template type T of method CuyZ\\Valinor\\Mapper\\TreeMapper::map\(\) is not referenced in a parameter#'
path: src/Mapper/TreeMapper.php
- message: '#Method CuyZ\\Valinor\\MapperBuilder::withCache\(\) has parameter \$cache with generic interface Psr\\SimpleCache\\\CacheInterface but does not specify its types: EntryType#' - message: '#Method CuyZ\\Valinor\\MapperBuilder::withCache\(\) has parameter \$cache with generic interface Psr\\SimpleCache\\\CacheInterface but does not specify its types: EntryType#'
path: src/MapperBuilder.php path: src/MapperBuilder.php

View File

@ -109,7 +109,7 @@ final class ClassStringType implements StringType, CompositeType
return (is_string($value) return (is_string($value)
// @PHP8.0 `$value instanceof Stringable` // @PHP8.0 `$value instanceof Stringable`
|| (is_object($value) && method_exists($value, '__toString')) || (is_object($value) && method_exists($value, '__toString'))
) && $this->accepts((string)$value); ) && $this->accepts((string)$value);
} }
public function cast($value): string public function cast($value): string

View File

@ -26,7 +26,7 @@ final class ClassType implements ObjectType, CompositeType
*/ */
public function __construct(string $className, array $generics = []) public function __construct(string $className, array $generics = [])
{ {
$this->className = ltrim($className, '\\'); // @phpstan-ignore-line $this->className = ltrim($className, '\\');
$this->generics = $generics; $this->generics = $generics;
} }

View File

@ -43,7 +43,7 @@ final class NonEmptyStringType implements StringType
|| is_numeric($value) || is_numeric($value)
// @PHP8.0 `$value instanceof Stringable` // @PHP8.0 `$value instanceof Stringable`
|| (is_object($value) && method_exists($value, '__toString')) || (is_object($value) && method_exists($value, '__toString'))
) && (string)$value !== ''; ) && (string)$value !== '';
} }
public function cast($value): string public function cast($value): string

View File

@ -73,7 +73,7 @@ final class StringValueType implements StringType, FixedType
|| is_numeric($value) || is_numeric($value)
// @PHP8.0 `$value instanceof Stringable` // @PHP8.0 `$value instanceof Stringable`
|| (is_object($value) && method_exists($value, '__toString')) || (is_object($value) && method_exists($value, '__toString'))
) && (string)$value === $this->value; ) && (string)$value === $this->value;
} }
public function cast($value): string public function cast($value): string

View File

@ -146,7 +146,7 @@ final class Reflection
if (PHP_VERSION_ID >= 8_00_00 && $reflection->isPromoted()) { if (PHP_VERSION_ID >= 8_00_00 && $reflection->isPromoted()) {
$type = self::parseDocBlock( $type = self::parseDocBlock(
// @phpstan-ignore-next-line / parameter is promoted so class exists for sure // @phpstan-ignore-next-line / parameter is promoted so class exists for sure
self::sanitizeDocComment($reflection->getDeclaringClass()->getProperty($reflection->name)), self::sanitizeDocComment($reflection->getDeclaringClass()->getProperty($reflection->name)),
sprintf('@%s?var\s+%s', self::TOOL_EXPRESSION, self::TYPE_EXPRESSION) sprintf('@%s?var\s+%s', self::TOOL_EXPRESSION, self::TYPE_EXPRESSION)
); );