Be compatible with Symfony/ObjectMapper #1379
Annotations
14 errors
|
tests (8.4)
Process completed with exit code 255.
|
|
tests-lowest
Process completed with exit code 255.
|
|
tests (8.5)
Process completed with exit code 255.
|
|
cs-check
Process completed with exit code 1.
|
|
phpstan:
src/Transformer/ServiceLocatorTransformer.php#L28
Method AutoMapper\Transformer\ServiceLocatorTransformer::transform() should return array{PhpParser\Node\Expr, array<PhpParser\Node\Stmt>} but returns array{PhpParser\Node\Expr\MethodCall}.
|
|
phpstan:
src/Transformer/ServiceLocatorTransformer.php#L25
Parameter #5 $source (PhpParser\Node\Expr\Variable) of method AutoMapper\Transformer\ServiceLocatorTransformer::transform() is not contravariant with parameter #5 $source (PhpParser\Node\Expr) of method AutoMapper\Transformer\TransformerInterface::transform().
|
|
phpstan:
src/Transformer/ObjectMapper/TransformCallableTransformer.php#L10
Method AutoMapper\Transformer\ObjectMapper\TransformCallableTransformer::__construct() has parameter $transformCallable with generic interface Symfony\Component\ObjectMapper\TransformCallableInterface but does not specify its types: T, T2
|
|
phpstan:
src/ObjectMapper/ObjectMapper.php#L86
Method AutoMapper\ObjectMapper\ObjectMapper::getCallable() should return (callable(): mixed)|null but returns mixed.
|
|
phpstan:
src/ObjectMapper/ObjectMapper.php#L66
Parameter #1 $fn of method AutoMapper\ObjectMapper\ObjectMapper::getCallable() expects (callable(mixed, object): mixed)|string, (callable(mixed, object): bool)|non-falsy-string|true given.
|
|
phpstan:
src/ObjectMapper/ObjectMapper.php#L56
Callable callable(): mixed invoked with 3 parameters, 0 required.
|
|
phpstan:
src/ObjectMapper/ObjectMapper.php#L44
Method AutoMapper\ObjectMapper\ObjectMapper::map() should return T of object but returns object|null.
|
|
phpstan:
src/Generator/PropertyConditionsGenerator.php#L318
Parameter #1 $value of class PhpParser\Node\Arg constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|PhpParser\Node\Name given.
|
|
phpstan:
src/Generator/PropertyConditionsGenerator.php#L307
Parameter #1 $value of class PhpParser\Node\Arg constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
|
|
phpstan:
src/Generator/PropertyConditionsGenerator.php#L292
Parameter #1 $value of class PhpParser\Node\Arg constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
|