Skip to content

Commit

Permalink
Merge pull request #9313 from paulbalandan/fix-phpdoc-parse-error
Browse files Browse the repository at this point in the history
refactor: fix `phpDoc.parseError` errors
  • Loading branch information
samsonasik authored Dec 11, 2024
2 parents be824e3 + 2927788 commit 8fc60e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
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

0 comments on commit 8fc60e7

Please sign in to comment.