Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: fix phpDoc.parseError errors #9313

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions phpstan-baseline.php
Original file line number Diff line number Diff line change
Expand Up @@ -11725,12 +11725,6 @@
'count' => 1,
'path' => __DIR__ . '/tests/system/CLI/ConsoleTest.php',
];
$ignoreErrors[] = [
// identifier: phpDoc.parseError
'message' => '#^PHPDoc tag @var has invalid value \\(@var FileVarExportHandler\\|CacheInterface\\)\\: Unexpected token "@var", expected type at offset 16$#',
'count' => 1,
'path' => __DIR__ . '/tests/system/Cache/FactoriesCacheFileHandlerTest.php',
];
$ignoreErrors[] = [
// identifier: property.notFound
'message' => '#^Access to an undefined property CodeIgniter\\\\Config\\\\BaseConfig\\:\\:\\$baseURL\\.$#',
Expand Down
2 changes: 1 addition & 1 deletion system/Database/MySQLi/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public function getVersion(): string
/**
* Executes the query against the database.
*
* @return false|mysqli_result;
* @return false|mysqli_result
*/
protected function execute(string $sql)
{
Expand Down
3 changes: 2 additions & 1 deletion tests/system/Cache/FactoriesCacheFileHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace CodeIgniter\Cache;

use CodeIgniter\Cache\FactoriesCache\FileVarExportHandler;
use Config\Cache as CacheConfig;
use PHPUnit\Framework\Attributes\Group;

Expand All @@ -23,7 +24,7 @@
final class FactoriesCacheFileHandlerTest extends FactoriesCacheFileVarExportHandlerTest
{
/**
* @var @var FileVarExportHandler|CacheInterface
* @var CacheInterface|FileVarExportHandler
*/
protected $handler;

Expand Down
Loading