improved native types #424
Annotations
10 errors
|
PHPStan:
src/Database/Drivers/MySqlDriver.php#L144
Method Nette\Database\Drivers\MySqlDriver::getTables() should return list<array{name: string, fullName: string|null, view: bool, comment: string|null}> but returns list<array{name: mixed, view: bool, comment: mixed}>.
|
|
PHPStan:
src/Database/Drivers/MsSqlDriver.php#L114
Method Nette\Database\Drivers\MsSqlDriver::getTables() should return list<array{name: string, fullName: string|null, view: bool, comment: string|null}> but returns list<array{name: non-falsy-string, view: bool, comment: mixed}>.
|
|
PHPStan:
src/Database/DriverException.php#L26
Unsafe usage of new static().
|
|
PHPStan:
src/Database/Connection.php#L229
Call to method Nette\Database\Connection::rollBack() with incorrect case: rollback
|
|
PHPStan:
src/Bridges/DatabaseTracy/ConnectionPanel.php#L157
Variable $connection might not be defined.
|
|
PHPStan:
src/Bridges/DatabaseTracy/ConnectionPanel.php#L157
Anonymous function has an unused use $queries.
|
|
PHPStan:
src/Bridges/DatabaseTracy/ConnectionPanel.php#L157
Anonymous function has an unused use $connection.
|
|
PHPStan:
src/Bridges/DatabaseTracy/ConnectionPanel.php#L92
Access to an undefined property PDOException::$queryString.
|
|
PHPStan:
src/Bridges/DatabaseTracy/ConnectionPanel.php#L91
Instanceof between PDOException and PDOException will always evaluate to true.
|
|
PHPStan:
src/Bridges/DatabaseDI/DatabaseExtension.php#L65
Call to an undefined method Nette\DI\Definitions\Definition::addSetup().
|