PHPStan 2.0 support #2726
Annotations
10 errors
Run composer phpstan:
src/QueryReflection/PdoMysqlQueryReflector.php#L82
Property staabm\PHPStanDba\QueryReflection\BasePdoQueryReflector::$cache (array<string, list<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>) does not accept non-empty-array<string, array<int<0, max>, array{name: string, table: string, len: int, flags: array<int, string>, precision: int<0, max>, pdo_type: 0|1|2|3|4|5|6|536870912|1073741824|2147483648, native_type: string}>|PDOException|null>.
|
Run composer phpstan:
src/QueryReflection/PdoMysqlQueryReflector.php#L86
Method staabm\PHPStanDba\QueryReflection\PdoMysqlQueryReflector::simulateQuery() should return list<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 but returns array<int<0, max>, 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.
|
Run composer phpstan:
src/QueryReflection/PdoPgSqlQueryReflector.php#L36
Method staabm\PHPStanDba\QueryReflection\PdoPgSqlQueryReflector::simulateQuery() should return list<array{name: string, table?: string, native_type: string, len: int, flags: list<string>}>|PDOException|null but returns list<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.
|
Run composer phpstan:
src/QueryReflection/PdoPgSqlQueryReflector.php#L96
Method staabm\PHPStanDba\QueryReflection\PdoPgSqlQueryReflector::simulateQuery() should return list<array{name: string, table?: string, native_type: string, len: int, flags: list<string>}>|PDOException|null but returns array<int<0, max>, 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.
|
Run composer phpstan:
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}.
|
Run composer phpstan:
src/SqlAst/ParserInference.php#L77
Cannot call method getCondition() on mixed.
|
Run composer phpstan:
src/SqlAst/ParserInference.php#L85
Cannot call method getLeft() on mixed.
|
Run composer phpstan:
src/SqlAst/ParserInference.php#L85
Cannot call method getRight() on mixed.
|
Run composer phpstan:
src/SqlAst/ParserInference.php#L107
Cannot call method getName() on mixed.
|
Run composer phpstan:
src/SqlAst/ParserInference.php#L107
Cannot call method getRight() on mixed.
|
Loading