PHPStan 2.0 support #2729
Annotations
10 errors
Run composer phpstan:
src/QueryReflection/BasePdoQueryReflector.php#L155
Method staabm\PHPStanDba\QueryReflection\BasePdoQueryReflector::emulateFlags() should return array<int, string> but returns array<string>.
|
Run composer phpstan:
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()
|
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.
|
Run composer phpstan:
src/SqlAst/ParserInference.php#L107
Cannot call method getTable() on mixed.
|
Run composer phpstan:
src/SqlAst/ParserInference.php#L107
Parameter #1 $tableName of method staabm\PHPStanDba\SchemaReflection\SchemaReflection::getTable() expects string, mixed given.
|
Loading