Minor cleaning up #22
Annotations
8 errors and 2 warnings
Run vendor/bin/psalm --threads=2 --output-format=github --shepherd:
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)
|
Run vendor/bin/psalm --threads=2 --output-format=github --shepherd:
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)
|
Run vendor/bin/psalm --threads=2 --output-format=github --shepherd:
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)
|
Run vendor/bin/psalm --threads=2 --output-format=github --shepherd:
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)
|
Run vendor/bin/psalm --threads=2 --output-format=github --shepherd:
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)
|
Run vendor/bin/psalm --threads=2 --output-format=github --shepherd:
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)
|
Run vendor/bin/psalm --threads=2 --output-format=github --shepherd:
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)
|
Run vendor/bin/psalm --threads=2 --output-format=github --shepherd
Process completed with exit code 2.
|
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/.
|
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/
|
The logs for this run have expired and are no longer available.
Loading