Skip to content

PHPStan 2.0 support #2739

PHPStan 2.0 support

PHPStan 2.0 support #2739

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

phpstan.yml

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

Annotations

53 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): src/QueryReflection/PdoPgSqlQueryReflector.php#L33
Return type (array<array{name: string, table?: string, native_type: string, len: int, flags: array<int, string>}>|PDOException|null) of method staabm\PHPStanDba\QueryReflection\PdoPgSqlQueryReflector::simulateQuery() should be covariant with return type (array<array{name: string, table: string, native_type: string, len: int, flags: array<int, string>, precision: int<0, max>, pdo_type: 0|1|2|3|4|5|6|536870912|1073741824|2147483648}>|PDOException|null) of method staabm\PHPStanDba\QueryReflection\BasePdoQueryReflector::simulateQuery()
PHPStan (reflection replay) (8.1, pdo-mysql, replay): src/QueryReflection/ReflectionCache.php#L160
Property staabm\PHPStanDba\QueryReflection\ReflectionCache::$schemaHash (string|null) does not accept mixed.
PHPStan (reflection replay) (8.1, pdo-mysql, replay)
Process completed with exit code 1.
PHPStan (8.0, mariadb:latest, mysqli, recording): src/QueryReflection/PdoPgSqlQueryReflector.php#L33
Return type (array<array{name: string, table?: string, native_type: string, len: int, flags: array<int, string>}>|PDOException|null) of method staabm\PHPStanDba\QueryReflection\PdoPgSqlQueryReflector::simulateQuery() should be covariant with return type (array<array{name: string, table: string, native_type: string, len: int, flags: array<int, string>, precision: int<0, max>, pdo_type: 0|1|2|3|4|5|6|536870912|1073741824|2147483648}>|PDOException|null) of method staabm\PHPStanDba\QueryReflection\BasePdoQueryReflector::simulateQuery()
PHPStan (8.0, mariadb:latest, mysqli, recording): src/QueryReflection/ReflectionCache.php#L160
Property staabm\PHPStanDba\QueryReflection\ReflectionCache::$schemaHash (string|null) does not accept mixed.
PHPStan (8.0, mariadb:latest, mysqli, recording)
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): src/QueryReflection/PdoPgSqlQueryReflector.php#L33
Return type (array<array{name: string, table?: string, native_type: string, len: int, flags: array<int, string>}>|PDOException|null) of method staabm\PHPStanDba\QueryReflection\PdoPgSqlQueryReflector::simulateQuery() should be covariant with return type (array<array{name: string, table: string, native_type: string, len: int, flags: array<int, string>, precision: int<0, max>, pdo_type: 0|1|2|3|4|5|6|536870912|1073741824|2147483648}>|PDOException|null) of method staabm\PHPStanDba\QueryReflection\BasePdoQueryReflector::simulateQuery()
PHPStan (reflection replay) (8.1, mysqli, replay): src/QueryReflection/ReflectionCache.php#L160
Property staabm\PHPStanDba\QueryReflection\ReflectionCache::$schemaHash (string|null) does not accept mixed.
PHPStan (reflection replay) (8.1, mysqli, replay)
Process completed with exit code 1.
PHPStan (8.1, mariadb:latest, mysqli, recording): src/QueryReflection/PdoPgSqlQueryReflector.php#L33
Return type (array<array{name: string, table?: string, native_type: string, len: int, flags: array<int, string>}>|PDOException|null) of method staabm\PHPStanDba\QueryReflection\PdoPgSqlQueryReflector::simulateQuery() should be covariant with return type (array<array{name: string, table: string, native_type: string, len: int, flags: array<int, string>, precision: int<0, max>, pdo_type: 0|1|2|3|4|5|6|536870912|1073741824|2147483648}>|PDOException|null) of method staabm\PHPStanDba\QueryReflection\BasePdoQueryReflector::simulateQuery()
PHPStan (8.1, mariadb:latest, mysqli, recording): src/QueryReflection/ReflectionCache.php#L160
Property staabm\PHPStanDba\QueryReflection\ReflectionCache::$schemaHash (string|null) does not accept mixed.
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#L33
Return type (array<array{name: string, table?: string, native_type: string, len: int, flags: array<int, string>}>|PDOException|null) of method staabm\PHPStanDba\QueryReflection\PdoPgSqlQueryReflector::simulateQuery() should be covariant with return type (array<array{name: string, table: string, native_type: string, len: int, flags: array<int, string>, precision: int<0, max>, pdo_type: 0|1|2|3|4|5|6|536870912|1073741824|2147483648}>|PDOException|null) of method staabm\PHPStanDba\QueryReflection\BasePdoQueryReflector::simulateQuery()
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, pdo-mysql, recording, --health-cmd="mysqladmin ping" --health-interval=1...: src/QueryReflection/ReflectionCache.php#L160
Property staabm\PHPStanDba\QueryReflection\ReflectionCache::$schemaHash (string|null) does not accept mixed.
PHPStan (8.0, mysql:8.0, mysqli, recording): src/QueryReflection/PdoPgSqlQueryReflector.php#L33
Return type (array<array{name: string, table?: string, native_type: string, len: int, flags: array<int, string>}>|PDOException|null) of method staabm\PHPStanDba\QueryReflection\PdoPgSqlQueryReflector::simulateQuery() should be covariant with return type (array<array{name: string, table: string, native_type: string, len: int, flags: array<int, string>, precision: int<0, max>, pdo_type: 0|1|2|3|4|5|6|536870912|1073741824|2147483648}>|PDOException|null) of method staabm\PHPStanDba\QueryReflection\BasePdoQueryReflector::simulateQuery()
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): src/QueryReflection/ReflectionCache.php#L160
Property staabm\PHPStanDba\QueryReflection\ReflectionCache::$schemaHash (string|null) does not accept mixed.
PHPStan (8.0, mysql:8.0, 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#L33
Return type (array<array{name: string, table?: string, native_type: string, len: int, flags: array<int, string>}>|PDOException|null) of method staabm\PHPStanDba\QueryReflection\PdoPgSqlQueryReflector::simulateQuery() should be covariant with return type (array<array{name: string, table: string, native_type: string, len: int, flags: array<int, string>, precision: int<0, max>, pdo_type: 0|1|2|3|4|5|6|536870912|1073741824|2147483648}>|PDOException|null) of method staabm\PHPStanDba\QueryReflection\BasePdoQueryReflector::simulateQuery()
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, pdo-mysql, recording, --health-cmd="mysqladmin ping" --health-interval=1...: src/QueryReflection/ReflectionCache.php#L160
Property staabm\PHPStanDba\QueryReflection\ReflectionCache::$schemaHash (string|null) does not accept mixed.
PHPStan (8.1, mysql:8.0, mysqli, recording): src/QueryReflection/PdoPgSqlQueryReflector.php#L33
Return type (array<array{name: string, table?: string, native_type: string, len: int, flags: array<int, string>}>|PDOException|null) of method staabm\PHPStanDba\QueryReflection\PdoPgSqlQueryReflector::simulateQuery() should be covariant with return type (array<array{name: string, table: string, native_type: string, len: int, flags: array<int, string>, precision: int<0, max>, pdo_type: 0|1|2|3|4|5|6|536870912|1073741824|2147483648}>|PDOException|null) of method staabm\PHPStanDba\QueryReflection\BasePdoQueryReflector::simulateQuery()
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): src/QueryReflection/ReflectionCache.php#L160
Property staabm\PHPStanDba\QueryReflection\ReflectionCache::$schemaHash (string|null) does not accept mixed.
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#L33
Return type (array<array{name: string, table?: string, native_type: string, len: int, flags: array<int, string>}>|PDOException|null) of method staabm\PHPStanDba\QueryReflection\PdoPgSqlQueryReflector::simulateQuery() should be covariant with return type (array<array{name: string, table: string, native_type: string, len: int, flags: array<int, string>, precision: int<0, max>, pdo_type: 0|1|2|3|4|5|6|536870912|1073741824|2147483648}>|PDOException|null) of method staabm\PHPStanDba\QueryReflection\BasePdoQueryReflector::simulateQuery()
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.1, mysql:8.0, mysqli, replay-and-recording, --health-cmd="mysqladmin ping" --health-in...: src/QueryReflection/ReflectionCache.php#L160
Property staabm\PHPStanDba\QueryReflection\ReflectionCache::$schemaHash (string|null) does not accept mixed.
PHPStan (8.2, mariadb:latest, mysqli, recording): src/QueryReflection/PdoPgSqlQueryReflector.php#L33
Return type (array<array{name: string, table?: string, native_type: string, len: int, flags: array<int, string>}>|PDOException|null) of method staabm\PHPStanDba\QueryReflection\PdoPgSqlQueryReflector::simulateQuery() should be covariant with return type (array<array{name: string, table: string, native_type: string, len: int, flags: array<int, string>, precision: int<0, max>, pdo_type: 0|1|2|3|4|5|6|536870912|1073741824|2147483648}>|PDOException|null) of method staabm\PHPStanDba\QueryReflection\BasePdoQueryReflector::simulateQuery()
PHPStan (8.2, mariadb:latest, mysqli, recording): src/QueryReflection/ReflectionCache.php#L160
Property staabm\PHPStanDba\QueryReflection\ReflectionCache::$schemaHash (string|null) does not accept mixed.
PHPStan (8.2, mariadb:latest, mysqli, recording)
Process completed with exit code 1.
PHPStan (8.2, mysql:8.0, mysqli, recording): src/QueryReflection/PdoPgSqlQueryReflector.php#L33
Return type (array<array{name: string, table?: string, native_type: string, len: int, flags: array<int, string>}>|PDOException|null) of method staabm\PHPStanDba\QueryReflection\PdoPgSqlQueryReflector::simulateQuery() should be covariant with return type (array<array{name: string, table: string, native_type: string, len: int, flags: array<int, string>, precision: int<0, max>, pdo_type: 0|1|2|3|4|5|6|536870912|1073741824|2147483648}>|PDOException|null) of method staabm\PHPStanDba\QueryReflection\BasePdoQueryReflector::simulateQuery()
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): src/QueryReflection/ReflectionCache.php#L160
Property staabm\PHPStanDba\QueryReflection\ReflectionCache::$schemaHash (string|null) does not accept mixed.
PHPStan (8.2, mysql:8.0, mysqli, recording)
Process completed with exit code 1.