Skip to content

Add support for createMockForIntersectionOfInterfaces #537

Add support for createMockForIntersectionOfInterfaces

Add support for createMockForIntersectionOfInterfaces #537

Triggered via pull request December 16, 2025 14:28
Status Failure
Total duration 38s
Artifacts

build.yml

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

Annotations

101 errors
PHPStan (8.5, highest, ^10.5)
Process completed with exit code 2.
PHPStan (8.5, highest, ^10.5): tests/Rules/PHPUnit/MockMethodCallRuleTest.php#L38
Call to function method_exists() with 'PHPUnit\\Framework\\TestCase' and 'createMockForInters…' will always evaluate to true.
PHPStan (8.5, highest, ^10.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.4, highest, ^11.5)
Process completed with exit code 2.
PHPStan (8.4, highest, ^11.5): tests/Rules/PHPUnit/MockMethodCallRuleTest.php#L38
Call to function method_exists() with 'PHPUnit\\Framework\\TestCase' and 'createMockForInters…' will always evaluate to true.
PHPStan (8.4, highest, ^11.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.5, highest, ^12.0.9)
Process completed with exit code 2.
PHPStan (8.5, highest, ^12.0.9): tests/Rules/PHPUnit/MockMethodCallRuleTest.php#L38
Call to function method_exists() with 'PHPUnit\\Framework\\TestCase' and 'createMockForInters…' will always evaluate to true.
PHPStan (8.5, highest, ^12.0.9): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.0, highest, ^9.5)
Process completed with exit code 2.
PHPStan (8.0, highest, ^9.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.2, lowest, ^11.5)
Process completed with exit code 2.
PHPStan (8.2, lowest, ^11.5): tests/Rules/PHPUnit/MockMethodCallRuleTest.php#L38
Call to function method_exists() with 'PHPUnit\\Framework\\TestCase' and 'createMockForInters…' will always evaluate to true.
PHPStan (8.2, lowest, ^11.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.3, lowest, ^12.0.9)
Process completed with exit code 2.
PHPStan (8.3, lowest, ^12.0.9): tests/Rules/PHPUnit/MockMethodCallRuleTest.php#L38
Call to function method_exists() with 'PHPUnit\\Framework\\TestCase' and 'createMockForInters…' will always evaluate to true.
PHPStan (8.3, lowest, ^12.0.9): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.4, lowest, ^10.5)
Process completed with exit code 2.
PHPStan (8.4, lowest, ^10.5): tests/Rules/PHPUnit/MockMethodCallRuleTest.php#L38
Call to function method_exists() with 'PHPUnit\\Framework\\TestCase' and 'createMockForInters…' will always evaluate to true.
PHPStan (8.4, lowest, ^10.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (7.4, highest, ^9.5)
Process completed with exit code 2.
PHPStan (7.4, highest, ^9.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.3, highest, ^11.5)
Process completed with exit code 2.
PHPStan (8.3, highest, ^11.5): tests/Rules/PHPUnit/MockMethodCallRuleTest.php#L38
Call to function method_exists() with 'PHPUnit\\Framework\\TestCase' and 'createMockForInters…' will always evaluate to true.
PHPStan (8.3, highest, ^11.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.1, highest, ^10.5)
Process completed with exit code 2.
PHPStan (8.1, highest, ^10.5): tests/Rules/PHPUnit/MockMethodCallRuleTest.php#L38
Call to function method_exists() with 'PHPUnit\\Framework\\TestCase' and 'createMockForInters…' will always evaluate to true.
PHPStan (8.1, highest, ^10.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.5, highest, ^11.5)
Process completed with exit code 2.
PHPStan (8.5, highest, ^11.5): tests/Rules/PHPUnit/MockMethodCallRuleTest.php#L38
Call to function method_exists() with 'PHPUnit\\Framework\\TestCase' and 'createMockForInters…' will always evaluate to true.
PHPStan (8.5, highest, ^11.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.4, highest, ^12.0.9)
Process completed with exit code 2.
PHPStan (8.4, highest, ^12.0.9): tests/Rules/PHPUnit/MockMethodCallRuleTest.php#L38
Call to function method_exists() with 'PHPUnit\\Framework\\TestCase' and 'createMockForInters…' will always evaluate to true.
PHPStan (8.4, highest, ^12.0.9): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.4, lowest, ^12.0.9)
Process completed with exit code 2.
PHPStan (8.4, lowest, ^12.0.9): tests/Rules/PHPUnit/MockMethodCallRuleTest.php#L38
Call to function method_exists() with 'PHPUnit\\Framework\\TestCase' and 'createMockForInters…' will always evaluate to true.
PHPStan (8.4, lowest, ^12.0.9): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.1, highest, ^9.5)
Process completed with exit code 2.
PHPStan (8.1, highest, ^9.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.4, highest, ^9.5)
Process completed with exit code 2.
PHPStan (8.4, highest, ^9.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.2, highest, ^10.5)
Process completed with exit code 2.
PHPStan (8.2, highest, ^10.5): tests/Rules/PHPUnit/MockMethodCallRuleTest.php#L38
Call to function method_exists() with 'PHPUnit\\Framework\\TestCase' and 'createMockForInters…' will always evaluate to true.
PHPStan (8.2, highest, ^10.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.5, lowest, ^10.5)
Process completed with exit code 2.
PHPStan (8.5, lowest, ^10.5): tests/Rules/PHPUnit/MockMethodCallRuleTest.php#L38
Call to function method_exists() with 'PHPUnit\\Framework\\TestCase' and 'createMockForInters…' will always evaluate to true.
PHPStan (8.5, lowest, ^10.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.5, lowest, ^12.0.9)
Process completed with exit code 2.
PHPStan (8.5, lowest, ^12.0.9): tests/Rules/PHPUnit/MockMethodCallRuleTest.php#L38
Call to function method_exists() with 'PHPUnit\\Framework\\TestCase' and 'createMockForInters…' will always evaluate to true.
PHPStan (8.5, lowest, ^12.0.9): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
Coding Standard
Process completed with exit code 2.
PHPStan (8.4, lowest, ^11.5)
Process completed with exit code 2.
PHPStan (8.4, lowest, ^11.5): tests/Rules/PHPUnit/MockMethodCallRuleTest.php#L38
Call to function method_exists() with 'PHPUnit\\Framework\\TestCase' and 'createMockForInters…' will always evaluate to true.
PHPStan (8.4, lowest, ^11.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.3, lowest, ^11.5)
Process completed with exit code 2.
PHPStan (8.3, lowest, ^11.5): tests/Rules/PHPUnit/MockMethodCallRuleTest.php#L38
Call to function method_exists() with 'PHPUnit\\Framework\\TestCase' and 'createMockForInters…' will always evaluate to true.
PHPStan (8.3, lowest, ^11.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.1, lowest, ^10.5)
Process completed with exit code 2.
PHPStan (8.1, lowest, ^10.5): tests/Rules/PHPUnit/MockMethodCallRuleTest.php#L38
Call to function method_exists() with 'PHPUnit\\Framework\\TestCase' and 'createMockForInters…' will always evaluate to true.
PHPStan (8.1, lowest, ^10.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.1, lowest, ^9.5)
Process completed with exit code 2.
PHPStan (8.1, lowest, ^9.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.0, lowest, ^9.5)
Process completed with exit code 2.
PHPStan (8.0, lowest, ^9.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.3, highest, ^10.5)
Process completed with exit code 2.
PHPStan (8.3, highest, ^10.5): tests/Rules/PHPUnit/MockMethodCallRuleTest.php#L38
Call to function method_exists() with 'PHPUnit\\Framework\\TestCase' and 'createMockForInters…' will always evaluate to true.
PHPStan (8.2, highest, ^11.5)
Process completed with exit code 2.
PHPStan (8.3, highest, ^10.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.2, highest, ^11.5): tests/Rules/PHPUnit/MockMethodCallRuleTest.php#L38
Call to function method_exists() with 'PHPUnit\\Framework\\TestCase' and 'createMockForInters…' will always evaluate to true.
PHPStan (8.2, highest, ^11.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.5, lowest, ^9.5)
Process completed with exit code 2.
PHPStan (8.5, lowest, ^9.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.5, highest, ^9.5)
Process completed with exit code 2.
PHPStan (8.5, highest, ^9.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.3, lowest, ^9.5)
Process completed with exit code 2.
PHPStan (8.3, lowest, ^9.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.3, highest, ^12.0.9)
Process completed with exit code 2.
PHPStan (8.3, highest, ^12.0.9): tests/Rules/PHPUnit/MockMethodCallRuleTest.php#L38
Call to function method_exists() with 'PHPUnit\\Framework\\TestCase' and 'createMockForInters…' will always evaluate to true.
PHPStan (8.3, highest, ^12.0.9): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.4, highest, ^10.5)
Process completed with exit code 2.
PHPStan (8.4, highest, ^10.5): tests/Rules/PHPUnit/MockMethodCallRuleTest.php#L38
Call to function method_exists() with 'PHPUnit\\Framework\\TestCase' and 'createMockForInters…' will always evaluate to true.
PHPStan (8.4, highest, ^10.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.5, lowest, ^11.5)
Process completed with exit code 2.
PHPStan (8.5, lowest, ^11.5): tests/Rules/PHPUnit/MockMethodCallRuleTest.php#L38
Call to function method_exists() with 'PHPUnit\\Framework\\TestCase' and 'createMockForInters…' will always evaluate to true.
PHPStan (8.5, lowest, ^11.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.3, lowest, ^10.5)
Process completed with exit code 2.
PHPStan (8.3, lowest, ^10.5): tests/Rules/PHPUnit/MockMethodCallRuleTest.php#L38
Call to function method_exists() with 'PHPUnit\\Framework\\TestCase' and 'createMockForInters…' will always evaluate to true.
PHPStan (8.3, lowest, ^10.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.2, lowest, ^10.5)
Process completed with exit code 2.
PHPStan (8.2, lowest, ^10.5): tests/Rules/PHPUnit/MockMethodCallRuleTest.php#L38
Call to function method_exists() with 'PHPUnit\\Framework\\TestCase' and 'createMockForInters…' will always evaluate to true.
PHPStan (8.2, lowest, ^10.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (7.4, lowest, ^9.5)
Process completed with exit code 2.
PHPStan (7.4, lowest, ^9.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.4, lowest, ^9.5)
Process completed with exit code 2.
PHPStan (8.4, lowest, ^9.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.3, highest, ^9.5)
Process completed with exit code 2.
PHPStan (8.3, highest, ^9.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.2, lowest, ^9.5)
Process completed with exit code 2.
PHPStan (8.2, lowest, ^9.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.
PHPStan (8.2, highest, ^9.5)
Process completed with exit code 2.
PHPStan (8.2, highest, ^9.5): src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php#L73
Parameter #1 $className of class PHPStan\Type\ObjectType constructor expects string, bool|float|int|string|null given.