Minor cleaning up #22
Annotations
8 errors and 2 warnings
ArgumentTypeCoercion:
src/Parser/DocBlockAstTraverser.php#L79
src/Parser/DocBlockAstTraverser.php:79:40: ArgumentTypeCoercion: Argument 1 of Hamlet\Type\Types\UnionType::__construct expects list<Hamlet\Type\Type<mixed>>, but parent type array<array-key, Hamlet\Type\Type> provided (see https://psalm.dev/193)
|
InvalidArgument:
src/Parser/DocBlockAstTraverser.php#L95
src/Parser/DocBlockAstTraverser.php:95:40: InvalidArgument: Argument 1 of Hamlet\Type\Types\UnionType::__construct expects list<Hamlet\Type\Type<mixed>>, but list{Hamlet\Type\Type, Hamlet\Type\Types\NullType} provided (see https://psalm.dev/004)
|
PossiblyNullPropertyFetch:
src/Parser/DocBlockAstTraverser.php#L128
src/Parser/DocBlockAstTraverser.php:128:17: PossiblyNullPropertyFetch: Cannot get property on possibly null variable $item->keyName of type PHPStan\PhpDocParser\Ast\ConstExpr\ConstExprIntegerNode|PHPStan\PhpDocParser\Ast\ConstExpr\ConstExprStringNode|PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode|null (see https://psalm.dev/082)
|
UndefinedPropertyFetch:
src/Parser/DocBlockAstTraverser.php#L128
src/Parser/DocBlockAstTraverser.php:128:17: UndefinedPropertyFetch: Instance property PHPStan\PhpDocParser\Ast\ConstExpr\ConstExprIntegerNode::$name is not defined (see https://psalm.dev/039)
|
UndefinedPropertyFetch:
src/Parser/DocBlockAstTraverser.php#L128
src/Parser/DocBlockAstTraverser.php:128:17: UndefinedPropertyFetch: Instance property PHPStan\PhpDocParser\Ast\ConstExpr\ConstExprStringNode::$name is not defined (see https://psalm.dev/039)
|
RiskyTruthyFalsyComparison:
src/Parser/DocBlockAstTraverser.php#L128
src/Parser/DocBlockAstTraverser.php:128:17: RiskyTruthyFalsyComparison: Operand of type mixed|null|string contains types mixed|string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
InvalidReturnStatement:
src/Types/ClassType.php#L91
src/Types/ClassType.php:91:16: InvalidReturnStatement: The inferred type '(T:Hamlet\Type\Types\ClassType as object)|array<array-key, mixed>|object' does not match the declared return type 'T:Hamlet\Type\Types\ClassType as object' for Hamlet\Type\Types\ClassType::resolveAndCast (see https://psalm.dev/128)
|
build
Process completed with exit code 2.
|
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|