Skip to content

Allow to Assert::isInstanceOf() to work with generic and anonymous class strings #404

Allow to Assert::isInstanceOf() to work with generic and anonymous class strings

Allow to Assert::isInstanceOf() to work with generic and anonymous class strings #404

Triggered via pull request July 4, 2024 21:32
Status Failure
Total duration 30s
Artifacts

build.yml

on: pull_request
Coding Standard
11s
Coding Standard
Matrix: Lint
Matrix: PHPStan
Matrix: Tests
Fit to window
Zoom out
Zoom in

Annotations

37 errors
Coding Standard
Process completed with exit code 2.
PHPStan (8.0, highest): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L413
Anonymous function should return PhpParser\Node\Expr but returns PhpParser\Node\Expr|null.
PHPStan (8.0, highest): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L431
Parameter #1 $expr of class PhpParser\Node\Expr\BooleanNot constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan (8.0, highest)
Process completed with exit code 2.
PHPStan (8.1, lowest): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L413
Anonymous function should return PhpParser\Node\Expr but returns PhpParser\Node\Expr|null.
PHPStan (8.1, lowest): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L431
Parameter #1 $expr of class PhpParser\Node\Expr\BooleanNot constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan (8.1, lowest)
Process completed with exit code 2.
PHPStan (7.4, lowest): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L413
Anonymous function should return PhpParser\Node\Expr but returns PhpParser\Node\Expr|null.
PHPStan (7.4, lowest): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L431
Parameter #1 $expr of class PhpParser\Node\Expr\BooleanNot constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan (7.4, lowest)
Process completed with exit code 2.
PHPStan (8.2, lowest): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L413
Anonymous function should return PhpParser\Node\Expr but returns PhpParser\Node\Expr|null.
PHPStan (8.2, lowest): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L431
Parameter #1 $expr of class PhpParser\Node\Expr\BooleanNot constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan (8.2, lowest)
Process completed with exit code 2.
PHPStan (7.4, highest): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L413
Anonymous function should return PhpParser\Node\Expr but returns PhpParser\Node\Expr|null.
PHPStan (7.4, highest): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L431
Parameter #1 $expr of class PhpParser\Node\Expr\BooleanNot constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan (7.4, highest)
Process completed with exit code 2.
PHPStan (7.3, highest): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L413
Anonymous function should return PhpParser\Node\Expr but returns PhpParser\Node\Expr|null.
PHPStan (7.3, lowest): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L413
Anonymous function should return PhpParser\Node\Expr but returns PhpParser\Node\Expr|null.
PHPStan (7.3, highest): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L431
Parameter #1 $expr of class PhpParser\Node\Expr\BooleanNot constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan (7.3, lowest): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L431
Parameter #1 $expr of class PhpParser\Node\Expr\BooleanNot constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan (7.3, highest)
Process completed with exit code 2.
PHPStan (7.3, lowest)
Process completed with exit code 2.
PHPStan (8.0, lowest): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L413
Anonymous function should return PhpParser\Node\Expr but returns PhpParser\Node\Expr|null.
PHPStan (8.0, lowest): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L431
Parameter #1 $expr of class PhpParser\Node\Expr\BooleanNot constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan (8.0, lowest)
Process completed with exit code 2.
PHPStan (8.1, highest): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L413
Anonymous function should return PhpParser\Node\Expr but returns PhpParser\Node\Expr|null.
PHPStan (8.1, highest): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L431
Parameter #1 $expr of class PhpParser\Node\Expr\BooleanNot constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan (8.1, highest)
Process completed with exit code 2.
PHPStan (7.2, highest): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L413
Anonymous function should return PhpParser\Node\Expr but returns PhpParser\Node\Expr|null.
PHPStan (7.2, highest): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L431
Parameter #1 $expr of class PhpParser\Node\Expr\BooleanNot constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan (7.2, highest)
Process completed with exit code 2.
PHPStan (8.2, highest): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L413
Anonymous function should return PhpParser\Node\Expr but returns PhpParser\Node\Expr|null.
PHPStan (8.2, highest): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L431
Parameter #1 $expr of class PhpParser\Node\Expr\BooleanNot constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan (8.2, highest)
Process completed with exit code 2.
PHPStan (7.2, lowest): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L413
Anonymous function should return PhpParser\Node\Expr but returns PhpParser\Node\Expr|null.
PHPStan (7.2, lowest): src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php#L431
Parameter #1 $expr of class PhpParser\Node\Expr\BooleanNot constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan (7.2, lowest)
Process completed with exit code 2.