Skip to content

PHPStan 2.0 support #2723

PHPStan 2.0 support

PHPStan 2.0 support #2723

Triggered via pull request November 14, 2024 14:11
@staabmstaabm
synchronize #709
staabm-patch-3
Status Failure
Total duration 1m 11s
Artifacts

phpstan.yml

on: pull_request
Matrix: PHPStan
Matrix: PHPStan (reflection replay)
Fit to window
Zoom out
Zoom in

Annotations

34 errors
PHPStan (reflection replay) (8.1, pdo-mysql, replay): src/QueryReflection/PdoMysqlQueryReflector.php#L119
Parameter #1 $haystack of function str_contains expects string, mixed given.
PHPStan (reflection replay) (8.1, pdo-mysql, replay): src/QueryReflection/PdoMysqlQueryReflector.php#L122
Parameter #1 $haystack of function str_contains expects string, mixed given.
PHPStan (reflection replay) (8.1, pdo-mysql, replay)
Process completed with exit code 1.
PHPStan (reflection replay) (8.1, mysqli, replay): src/QueryReflection/PdoMysqlQueryReflector.php#L119
Parameter #1 $haystack of function str_contains expects string, mixed given.
PHPStan (reflection replay) (8.1, mysqli, replay): src/QueryReflection/PdoMysqlQueryReflector.php#L122
Parameter #1 $haystack of function str_contains expects string, mixed given.
PHPStan (reflection replay) (8.1, mysqli, replay)
Process completed with exit code 1.
PHPStan (8.0, mysql:8.0, pdo-mysql, recording, --health-cmd="mysqladmin ping" --health-interval=1...: src/QueryReflection/PdoPgSqlQueryReflector.php#L123
PHPDoc tag @var with type array{column_default?: string, column_name: string, is_nullable: string} is not subtype of type array{COLUMN_NAME: string|null, COLUMN_DEFAULT: string|null, IS_NULLABLE: string}.
PHPStan (8.0, mysql:8.0, mysqli, recording): src/QueryReflection/PdoPgSqlQueryReflector.php#L123
PHPDoc tag @var with type array{column_default?: string, column_name: string, is_nullable: string} is not subtype of type array{COLUMN_NAME: string|null, COLUMN_DEFAULT: string|null, IS_NULLABLE: string}.
PHPStan (8.0, mysql:8.0, mysqli, recording)
Process completed with exit code 1.
PHPStan (8.0, mariadb:latest, mysqli, recording): tests/rules/QueryPlanAnalyzerRuleTest.php#L22
Property staabm\PHPStanDba\Tests\QueryPlanAnalyzerRuleTest::$numberOfAllowedUnindexedReads (bool|int<0, max>) is never assigned int<0, max> so it can be removed from the property type.
PHPStan (8.0, mariadb:latest, mysqli, recording)
Process completed with exit code 1.
PHPStan (8.2, mysql:8.0, mysqli, recording): src/QueryReflection/PdoPgSqlQueryReflector.php#L123
PHPDoc tag @var with type array{column_default?: string, column_name: string, is_nullable: string} is not subtype of type array{COLUMN_NAME: string|null, COLUMN_DEFAULT: string|null, IS_NULLABLE: string}.
PHPStan (8.2, mysql:8.0, mysqli, recording)
Process completed with exit code 1.
PHPStan (8.1, mysql:8.0, mysqli, recording): src/QueryReflection/PdoPgSqlQueryReflector.php#L123
PHPDoc tag @var with type array{column_default?: string, column_name: string, is_nullable: string} is not subtype of type array{COLUMN_NAME: string|null, COLUMN_DEFAULT: string|null, IS_NULLABLE: string}.
PHPStan (8.1, mysql:8.0, mysqli, recording)
Process completed with exit code 1.
PHPStan (8.1, mysql:8.0, mysqli, replay-and-recording, --health-cmd="mysqladmin ping" --health-in...: src/QueryReflection/PdoPgSqlQueryReflector.php#L123
PHPDoc tag @var with type array{column_default?: string, column_name: string, is_nullable: string} is not subtype of type array{COLUMN_NAME: string|null, COLUMN_DEFAULT: string|null, IS_NULLABLE: string}.
PHPStan (8.2, mariadb:latest, mysqli, recording): tests/rules/QueryPlanAnalyzerRuleTest.php#L22
Property staabm\PHPStanDba\Tests\QueryPlanAnalyzerRuleTest::$numberOfAllowedUnindexedReads (bool|int<0, max>) is never assigned int<0, max> so it can be removed from the property type.
PHPStan (8.2, mariadb:latest, mysqli, recording)
Process completed with exit code 1.
PHPStan (8.1, mariadb:latest, mysqli, recording): tests/rules/QueryPlanAnalyzerRuleTest.php#L22
Property staabm\PHPStanDba\Tests\QueryPlanAnalyzerRuleTest::$numberOfAllowedUnindexedReads (bool|int<0, max>) is never assigned int<0, max> so it can be removed from the property type.
PHPStan (8.1, mariadb:latest, mysqli, recording)
Process completed with exit code 1.
PHPStan (8.0, mysql:8.0, pdo-mysql, recording, --health-cmd="mysqladmin ping" --health-interval=1...: src/QueryReflection/PdoPgSqlQueryReflector.php#L123
PHPDoc tag @var with type array{column_default?: string, column_name: string, is_nullable: string} is not subtype of type array{COLUMN_NAME: string|null, COLUMN_DEFAULT: string|null, IS_NULLABLE: string}.