diff --git a/phpstan-baseline.php b/phpstan-baseline.php index d1fd9361ac01..8d647f40e497 100644 --- a/phpstan-baseline.php +++ b/phpstan-baseline.php @@ -1261,11 +1261,6 @@ 'count' => 3, 'path' => __DIR__ . '/system/Database/MySQLi/PreparedQuery.php', ]; -$ignoreErrors[] = [ - 'message' => '#^Return type \\(CodeIgniter\\\\Database\\\\MySQLi\\\\PreparedQuery\\) of method CodeIgniter\\\\Database\\\\MySQLi\\\\PreparedQuery\\:\\:_prepare\\(\\) should be covariant with return type \\(\\$this\\(CodeIgniter\\\\Database\\\\BasePreparedQuery\\\\)\\) of method CodeIgniter\\\\Database\\\\BasePreparedQuery\\\\:\\:_prepare\\(\\)$#', - 'count' => 1, - 'path' => __DIR__ . '/system/Database/MySQLi/PreparedQuery.php', -]; $ignoreErrors[] = [ 'message' => '#^Return type \\(mysqli_result\\|false\\) of method CodeIgniter\\\\Database\\\\MySQLi\\\\PreparedQuery\\:\\:_getResult\\(\\) should be covariant with return type \\(object\\|resource\\|null\\) of method CodeIgniter\\\\Database\\\\BasePreparedQuery\\\\:\\:_getResult\\(\\)$#', 'count' => 1, @@ -1381,11 +1376,6 @@ 'count' => 1, 'path' => __DIR__ . '/system/Database/OCI8/PreparedQuery.php', ]; -$ignoreErrors[] = [ - 'message' => '#^Return type \\(CodeIgniter\\\\Database\\\\OCI8\\\\PreparedQuery\\) of method CodeIgniter\\\\Database\\\\OCI8\\\\PreparedQuery\\:\\:_prepare\\(\\) should be covariant with return type \\(\\$this\\(CodeIgniter\\\\Database\\\\BasePreparedQuery\\\\)\\) of method CodeIgniter\\\\Database\\\\BasePreparedQuery\\\\:\\:_prepare\\(\\)$#', - 'count' => 1, - 'path' => __DIR__ . '/system/Database/OCI8/PreparedQuery.php', -]; $ignoreErrors[] = [ 'message' => '#^PHPDoc type string of property CodeIgniter\\\\Database\\\\OCI8\\\\Utils\\:\\:\\$listDatabases is not the same as PHPDoc type bool\\|string of overridden property CodeIgniter\\\\Database\\\\BaseUtils\\:\\:\\$listDatabases\\.$#', 'count' => 1, @@ -1511,11 +1501,6 @@ 'count' => 1, 'path' => __DIR__ . '/system/Database/Postgre/Forge.php', ]; -$ignoreErrors[] = [ - 'message' => '#^Return type \\(CodeIgniter\\\\Database\\\\Postgre\\\\PreparedQuery\\) of method CodeIgniter\\\\Database\\\\Postgre\\\\PreparedQuery\\:\\:_prepare\\(\\) should be covariant with return type \\(\\$this\\(CodeIgniter\\\\Database\\\\BasePreparedQuery\\\\)\\) of method CodeIgniter\\\\Database\\\\BasePreparedQuery\\\\:\\:_prepare\\(\\)$#', - 'count' => 1, - 'path' => __DIR__ . '/system/Database/Postgre/PreparedQuery.php', -]; $ignoreErrors[] = [ 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#', 'count' => 1, @@ -1651,11 +1636,6 @@ 'count' => 1, 'path' => __DIR__ . '/system/Database/SQLSRV/PreparedQuery.php', ]; -$ignoreErrors[] = [ - 'message' => '#^Return type \\(CodeIgniter\\\\Database\\\\SQLSRV\\\\PreparedQuery\\) of method CodeIgniter\\\\Database\\\\SQLSRV\\\\PreparedQuery\\:\\:_prepare\\(\\) should be covariant with return type \\(\\$this\\(CodeIgniter\\\\Database\\\\BasePreparedQuery\\\\)\\) of method CodeIgniter\\\\Database\\\\BasePreparedQuery\\\\:\\:_prepare\\(\\)$#', - 'count' => 1, - 'path' => __DIR__ . '/system/Database/SQLSRV/PreparedQuery.php', -]; $ignoreErrors[] = [ 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#', 'count' => 1, @@ -1726,11 +1706,6 @@ 'count' => 1, 'path' => __DIR__ . '/system/Database/SQLite3/Forge.php', ]; -$ignoreErrors[] = [ - 'message' => '#^Return type \\(CodeIgniter\\\\Database\\\\SQLite3\\\\PreparedQuery\\) of method CodeIgniter\\\\Database\\\\SQLite3\\\\PreparedQuery\\:\\:_prepare\\(\\) should be covariant with return type \\(\\$this\\(CodeIgniter\\\\Database\\\\BasePreparedQuery\\\\)\\) of method CodeIgniter\\\\Database\\\\BasePreparedQuery\\\\:\\:_prepare\\(\\)$#', - 'count' => 1, - 'path' => __DIR__ . '/system/Database/SQLite3/PreparedQuery.php', -]; $ignoreErrors[] = [ 'message' => '#^Return type \\(SQLite3Result\\|false\\) of method CodeIgniter\\\\Database\\\\SQLite3\\\\PreparedQuery\\:\\:_getResult\\(\\) should be covariant with return type \\(object\\|resource\\|null\\) of method CodeIgniter\\\\Database\\\\BasePreparedQuery\\\\:\\:_getResult\\(\\)$#', 'count' => 1, @@ -2021,16 +1996,6 @@ 'count' => 1, 'path' => __DIR__ . '/system/HTTP/DownloadResponse.php', ]; -$ignoreErrors[] = [ - 'message' => '#^Return type \\(CodeIgniter\\\\HTTP\\\\DownloadResponse\\) of method CodeIgniter\\\\HTTP\\\\DownloadResponse\\:\\:noCache\\(\\) should be covariant with return type \\(\\$this\\(CodeIgniter\\\\HTTP\\\\Response\\)\\) of method CodeIgniter\\\\HTTP\\\\Response\\:\\:noCache\\(\\)$#', - 'count' => 1, - 'path' => __DIR__ . '/system/HTTP/DownloadResponse.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Return type \\(CodeIgniter\\\\HTTP\\\\DownloadResponse\\) of method CodeIgniter\\\\HTTP\\\\DownloadResponse\\:\\:noCache\\(\\) should be covariant with return type \\(\\$this\\(CodeIgniter\\\\HTTP\\\\ResponseInterface\\)\\) of method CodeIgniter\\\\HTTP\\\\ResponseInterface\\:\\:noCache\\(\\)$#', - 'count' => 1, - 'path' => __DIR__ . '/system/HTTP/DownloadResponse.php', -]; $ignoreErrors[] = [ 'message' => '#^Return type \\(CodeIgniter\\\\HTTP\\\\DownloadResponse\\) of method CodeIgniter\\\\HTTP\\\\DownloadResponse\\:\\:sendBody\\(\\) should be covariant with return type \\(\\$this\\(CodeIgniter\\\\HTTP\\\\Response\\)\\) of method CodeIgniter\\\\HTTP\\\\Response\\:\\:sendBody\\(\\)$#', 'count' => 1,