Added tests for the array mapper and the conditional mapper #70
Annotations
10 errors
phpstan8:
src/Builder/ArrayMapper.php#L21
PHPDoc tag @var for variable $compilableMapper contains generic interface Kiboko\Contract\Mapping\CompilableMapperInterface but does not specify its types: InputType, OutputType, ReturnType
|
phpstan8:
src/Builder/ConditionalMapper.php#L14
Property Kiboko\Plugin\FastMap\Builder\ConditionalMapper::$alternatives type has no value type specified in iterable type iterable.
|
phpstan8:
src/Builder/ConditionalMapper.php#L22
Cannot access an offset on iterable.
|
phpstan8:
src/Builder/ConditionalMapper.php#L29
Parameter #1 $alternatives of method Kiboko\Plugin\FastMap\Builder\ConditionalMapper::compileConditions() expects array, iterable given.
|
phpstan8:
src/Builder/ConditionalMapper.php#L32
Method Kiboko\Plugin\FastMap\Builder\ConditionalMapper::compileConditions() has parameter $alternatives with no value type specified in iterable type array.
|
phpstan8:
src/Builder/ConditionalMapper.php#L51
Parameter $name of class PhpParser\Node\Stmt\PropertyProperty constructor expects PhpParser\Node\VarLikeIdentifier|string, PhpParser\Node\Name given.
|
phpstan8:
src/Builder/ConditionalMapper.php#L70
Parameter #1 $value of class PhpParser\Node\Expr\ArrayItem constructor expects PhpParser\Node\Expr, PhpParser\Node given.
|
phpstan8:
src/Builder/ObjectMapper.php#L21
PHPDoc tag @var for variable $compilableMapper contains generic interface Kiboko\Contract\Mapping\CompilableMapperInterface but does not specify its types: InputType, OutputType, ReturnType
|
phpstan8:
src/Builder/Transformer.php#L132
Parameter #1 $value of class PhpParser\Node\Arg constructor expects PhpParser\Node\Expr, PhpParser\Node given.
|
phpstan8:
src/Configuration.php#L83
Method Kiboko\Plugin\FastMap\Configuration::evaluateMap() has no return type specified.
|