Skip to content

Fix get_debug_type produces wrong type for anonymous classes with parent #17062

Fix get_debug_type produces wrong type for anonymous classes with parent

Fix get_debug_type produces wrong type for anonymous classes with parent #17062

Triggered via pull request August 30, 2024 17:30
Status Failure
Total duration 3m 40s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

static-analysis.yml

on: pull_request
Generate baseline
1m 29s
Generate baseline
Generate PHP baseline
1m 24s
Generate PHP baseline
Matrix: PHPStan with result cache
Matrix: PHPStan
Fit to window
Zoom out
Zoom in

Annotations

61 errors
PHPStan with result cache (8.3): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L91
Method PHPStan\Type\Php\GetDebugTypeFunctionReturnTypeExtension::resolveOneType() should return PHPStan\Type\Type but returns PHPStan\Type\Constant\ConstantStringType|string.
PHPStan with result cache (8.3): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L93
Parameter #1 $types of class PHPStan\Type\UnionType constructor expects array<PHPStan\Type\Type>, array<int, PHPStan\Type\Constant\ConstantStringType|string> given.
PHPStan with result cache (8.3)
Process completed with exit code 2.
PHPStan with result cache (8.4): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L91
Method PHPStan\Type\Php\GetDebugTypeFunctionReturnTypeExtension::resolveOneType() should return PHPStan\Type\Type but returns PHPStan\Type\Constant\ConstantStringType|string.
PHPStan with result cache (8.4): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L93
Parameter #1 $types of class PHPStan\Type\UnionType constructor expects array<PHPStan\Type\Type>, array<int, PHPStan\Type\Constant\ConstantStringType|string> given.
PHPStan with result cache (8.4)
Process completed with exit code 2.
PHPStan with result cache (8.2): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L91
Method PHPStan\Type\Php\GetDebugTypeFunctionReturnTypeExtension::resolveOneType() should return PHPStan\Type\Type but returns PHPStan\Type\Constant\ConstantStringType|string.
PHPStan with result cache (8.2): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L93
Parameter #1 $types of class PHPStan\Type\UnionType constructor expects array<PHPStan\Type\Type>, array<int, PHPStan\Type\Constant\ConstantStringType|string> given.
PHPStan with result cache (8.2)
Process completed with exit code 2.
PHPStan with result cache (8.1): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L91
Method PHPStan\Type\Php\GetDebugTypeFunctionReturnTypeExtension::resolveOneType() should return PHPStan\Type\Type but returns PHPStan\Type\Constant\ConstantStringType|string.
PHPStan with result cache (8.1): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L93
Parameter #1 $types of class PHPStan\Type\UnionType constructor expects array<PHPStan\Type\Type>, array<int, PHPStan\Type\Constant\ConstantStringType|string> given.
PHPStan with result cache (8.1)
Process completed with exit code 2.
Generate baseline
Process completed with exit code 1.
PHPStan (8.1, ubuntu-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L91
Method PHPStan\Type\Php\GetDebugTypeFunctionReturnTypeExtension::resolveOneType() should return PHPStan\Type\Type but returns PHPStan\Type\Constant\ConstantStringType|string.
PHPStan (8.1, ubuntu-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L93
Parameter #1 $types of class PHPStan\Type\UnionType constructor expects array<PHPStan\Type\Type>, array<int, PHPStan\Type\Constant\ConstantStringType|string> given.
PHPStan (8.1, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.2, ubuntu-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L91
Method PHPStan\Type\Php\GetDebugTypeFunctionReturnTypeExtension::resolveOneType() should return PHPStan\Type\Type but returns PHPStan\Type\Constant\ConstantStringType|string.
PHPStan (8.2, ubuntu-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L93
Parameter #1 $types of class PHPStan\Type\UnionType constructor expects array<PHPStan\Type\Type>, array<int, PHPStan\Type\Constant\ConstantStringType|string> given.
PHPStan (8.2, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.3, ubuntu-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L91
Method PHPStan\Type\Php\GetDebugTypeFunctionReturnTypeExtension::resolveOneType() should return PHPStan\Type\Type but returns PHPStan\Type\Constant\ConstantStringType|string.
PHPStan (8.3, ubuntu-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L93
Parameter #1 $types of class PHPStan\Type\UnionType constructor expects array<PHPStan\Type\Type>, array<int, PHPStan\Type\Constant\ConstantStringType|string> given.
PHPStan (8.3, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.4, ubuntu-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L91
Method PHPStan\Type\Php\GetDebugTypeFunctionReturnTypeExtension::resolveOneType() should return PHPStan\Type\Type but returns PHPStan\Type\Constant\ConstantStringType|string.
PHPStan (8.4, ubuntu-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L93
Parameter #1 $types of class PHPStan\Type\UnionType constructor expects array<PHPStan\Type\Type>, array<int, PHPStan\Type\Constant\ConstantStringType|string> given.
PHPStan (8.4, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.0, ubuntu-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L91
Method PHPStan\Type\Php\GetDebugTypeFunctionReturnTypeExtension::resolveOneType() should return PHPStan\Type\Type but returns PHPStan\Type\Constant\ConstantStringType|string.
PHPStan (8.0, ubuntu-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L93
Parameter #1 $types of class PHPStan\Type\UnionType constructor expects array<PHPStan\Type\Type>, array<int, PHPStan\Type\Constant\ConstantStringType|string> given.
PHPStan (8.0, ubuntu-latest)
Process completed with exit code 2.
PHPStan (7.4, ubuntu-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L91
Method PHPStan\Type\Php\GetDebugTypeFunctionReturnTypeExtension::resolveOneType() should return PHPStan\Type\Type but returns PHPStan\Type\Constant\ConstantStringType|string.
PHPStan (7.4, ubuntu-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L93
Parameter #1 $types of class PHPStan\Type\UnionType constructor expects array<PHPStan\Type\Type>, array<int, PHPStan\Type\Constant\ConstantStringType|string> given.
PHPStan (7.4, ubuntu-latest)
Process completed with exit code 2.
PHPStan (7.3, ubuntu-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L91
Method PHPStan\Type\Php\GetDebugTypeFunctionReturnTypeExtension::resolveOneType() should return PHPStan\Type\Type but returns PHPStan\Type\Constant\ConstantStringType|string.
PHPStan (7.3, ubuntu-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L93
Parameter #1 $types of class PHPStan\Type\UnionType constructor expects array<PHPStan\Type\Type>, array<int, PHPStan\Type\Constant\ConstantStringType|string> given.
PHPStan (7.3, ubuntu-latest)
Process completed with exit code 2.
PHPStan (7.2, ubuntu-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L91
Method PHPStan\Type\Php\GetDebugTypeFunctionReturnTypeExtension::resolveOneType() should return PHPStan\Type\Type but returns PHPStan\Type\Constant\ConstantStringType|string.
PHPStan (7.2, ubuntu-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L93
Parameter #1 $types of class PHPStan\Type\UnionType constructor expects array<PHPStan\Type\Type>, array<int, PHPStan\Type\Constant\ConstantStringType|string> given.
PHPStan (7.2, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.4, windows-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L91
Method PHPStan\Type\Php\GetDebugTypeFunctionReturnTypeExtension::resolveOneType() should return PHPStan\Type\Type but returns PHPStan\Type\Constant\ConstantStringType|string.
PHPStan (8.4, windows-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L93
Parameter #1 $types of class PHPStan\Type\UnionType constructor expects array<PHPStan\Type\Type>, array<int, PHPStan\Type\Constant\ConstantStringType|string> given.
PHPStan (8.4, windows-latest)
Process completed with exit code 1.
PHPStan (8.3, windows-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L91
Method PHPStan\Type\Php\GetDebugTypeFunctionReturnTypeExtension::resolveOneType() should return PHPStan\Type\Type but returns PHPStan\Type\Constant\ConstantStringType|string.
PHPStan (8.3, windows-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L93
Parameter #1 $types of class PHPStan\Type\UnionType constructor expects array<PHPStan\Type\Type>, array<int, PHPStan\Type\Constant\ConstantStringType|string> given.
PHPStan (8.3, windows-latest)
Process completed with exit code 1.
PHPStan (8.1, windows-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L91
Method PHPStan\Type\Php\GetDebugTypeFunctionReturnTypeExtension::resolveOneType() should return PHPStan\Type\Type but returns PHPStan\Type\Constant\ConstantStringType|string.
PHPStan (8.1, windows-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L93
Parameter #1 $types of class PHPStan\Type\UnionType constructor expects array<PHPStan\Type\Type>, array<int, PHPStan\Type\Constant\ConstantStringType|string> given.
PHPStan (8.1, windows-latest)
Process completed with exit code 1.
PHPStan (8.2, windows-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L91
Method PHPStan\Type\Php\GetDebugTypeFunctionReturnTypeExtension::resolveOneType() should return PHPStan\Type\Type but returns PHPStan\Type\Constant\ConstantStringType|string.
PHPStan (8.2, windows-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L93
Parameter #1 $types of class PHPStan\Type\UnionType constructor expects array<PHPStan\Type\Type>, array<int, PHPStan\Type\Constant\ConstantStringType|string> given.
PHPStan (8.2, windows-latest)
Process completed with exit code 1.
PHPStan (8.0, windows-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L91
Method PHPStan\Type\Php\GetDebugTypeFunctionReturnTypeExtension::resolveOneType() should return PHPStan\Type\Type but returns PHPStan\Type\Constant\ConstantStringType|string.
PHPStan (8.0, windows-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L93
Parameter #1 $types of class PHPStan\Type\UnionType constructor expects array<PHPStan\Type\Type>, array<int, PHPStan\Type\Constant\ConstantStringType|string> given.
PHPStan (8.0, windows-latest)
Process completed with exit code 1.
PHPStan (7.4, windows-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L91
Method PHPStan\Type\Php\GetDebugTypeFunctionReturnTypeExtension::resolveOneType() should return PHPStan\Type\Type but returns PHPStan\Type\Constant\ConstantStringType|string.
PHPStan (7.4, windows-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L93
Parameter #1 $types of class PHPStan\Type\UnionType constructor expects array<PHPStan\Type\Type>, array<int, PHPStan\Type\Constant\ConstantStringType|string> given.
PHPStan (7.4, windows-latest)
Process completed with exit code 1.
PHPStan (7.3, windows-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L91
Method PHPStan\Type\Php\GetDebugTypeFunctionReturnTypeExtension::resolveOneType() should return PHPStan\Type\Type but returns PHPStan\Type\Constant\ConstantStringType|string.
PHPStan (7.3, windows-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L93
Parameter #1 $types of class PHPStan\Type\UnionType constructor expects array<PHPStan\Type\Type>, array<int, PHPStan\Type\Constant\ConstantStringType|string> given.
PHPStan (7.3, windows-latest)
Process completed with exit code 1.
PHPStan (7.2, windows-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L91
Method PHPStan\Type\Php\GetDebugTypeFunctionReturnTypeExtension::resolveOneType() should return PHPStan\Type\Type but returns PHPStan\Type\Constant\ConstantStringType|string.
PHPStan (7.2, windows-latest): src/Type/Php/GetDebugTypeFunctionReturnTypeExtension.php#L93
Parameter #1 $types of class PHPStan\Type\UnionType constructor expects array<PHPStan\Type\Type>, array<int, PHPStan\Type\Constant\ConstantStringType|string> given.
PHPStan (7.2, windows-latest)
Process completed with exit code 1.