Reorganize runtime exceptions #97
Annotations
10 errors and 1 warning
|
Linter (8.3, ubuntu-latest):
src/Exception/Mapping/InvalidObjectValueException.php#L28
Parameter $field of class TypeLang\Mapper\Exception\Mapping\InvalidObjectValueException constructor expects non-empty-string, mixed given.
|
|
Linter (8.3, ubuntu-latest):
src/Exception/Mapping/IterableException.php#L39
Method TypeLang\Mapper\Exception\Mapping\IterableException::getValue() should return iterable but returns mixed.
|
|
Linter (8.3, ubuntu-latest):
src/Exception/Mapping/MissingRequiredObjectFieldException.php#L28
Parameter $value of class TypeLang\Mapper\Exception\Mapping\MissingRequiredObjectFieldException constructor expects iterable, array<mixed>|object given.
|
|
Linter (8.3, ubuntu-latest):
src/Exception/Mapping/ObjectException.php#L42
Method TypeLang\Mapper\Exception\Mapping\ObjectException::getValue() should return array<mixed>|object but returns mixed.
|
|
Linter (8.3, ubuntu-latest):
src/Exception/Mapping/ObjectValueException.php#L29
Parameter $value of method TypeLang\Mapper\Exception\Mapping\ObjectFieldException::__construct() expects iterable, array<mixed>|object given.
|
|
Linter (8.3, ubuntu-latest):
src/Exception/Mapping/ObjectValueException.php#L45
Method TypeLang\Mapper\Exception\Mapping\ObjectValueException::getField() should return non-empty-string but returns mixed.
|
|
Linter (8.3, ubuntu-latest):
src/Mapper.php#L117
PHPDoc tag @throws with type Throwable|TypeLang\Mapper\Exception\Mapping\RuntimeExceptionInterface is not subtype of Throwable
|
|
Linter (8.3, ubuntu-latest):
src/Mapper.php#L150
PHPDoc tag @throws with type Throwable|TypeLang\Mapper\Exception\Mapping\RuntimeExceptionInterface is not subtype of Throwable
|
|
Linter (8.3, ubuntu-latest):
src/Mapping/Driver/AttributeDriver.php#L201
Method TypeLang\Mapper\Mapping\Driver\AttributeDriver::createDiscriminatorType() has parameter $class with generic class ReflectionClass but does not specify its types: T
|
|
Linter (8.3, ubuntu-latest):
src/Mapping/Metadata/DiscriminatorMapMetadata.php#L25
Default value of the parameter #2 $map (array{}) of method TypeLang\Mapper\Mapping\Metadata\DiscriminatorMapMetadata::__construct() is incompatible with type non-empty-array<non-empty-string, TypeLang\Mapper\Mapping\Metadata\TypeMetadata>.
|
|
Linter (8.3, ubuntu-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: nick-invision/retry@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|