Skip to content

Commit 8fc60e7

Browse files
authored
Merge pull request #9313 from paulbalandan/fix-phpdoc-parse-error
refactor: fix `phpDoc.parseError` errors
2 parents be824e3 + 2927788 commit 8fc60e7

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

phpstan-baseline.php

-6
Original file line numberDiff line numberDiff line change
@@ -11725,12 +11725,6 @@
1172511725
'count' => 1,
1172611726
'path' => __DIR__ . '/tests/system/CLI/ConsoleTest.php',
1172711727
];
11728-
$ignoreErrors[] = [
11729-
// identifier: phpDoc.parseError
11730-
'message' => '#^PHPDoc tag @var has invalid value \\(@var FileVarExportHandler\\|CacheInterface\\)\\: Unexpected token "@var", expected type at offset 16$#',
11731-
'count' => 1,
11732-
'path' => __DIR__ . '/tests/system/Cache/FactoriesCacheFileHandlerTest.php',
11733-
];
1173411728
$ignoreErrors[] = [
1173511729
// identifier: property.notFound
1173611730
'message' => '#^Access to an undefined property CodeIgniter\\\\Config\\\\BaseConfig\\:\\:\\$baseURL\\.$#',

system/Database/MySQLi/Connection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ public function getVersion(): string
297297
/**
298298
* Executes the query against the database.
299299
*
300-
* @return false|mysqli_result;
300+
* @return false|mysqli_result
301301
*/
302302
protected function execute(string $sql)
303303
{

tests/system/Cache/FactoriesCacheFileHandlerTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
namespace CodeIgniter\Cache;
1515

16+
use CodeIgniter\Cache\FactoriesCache\FileVarExportHandler;
1617
use Config\Cache as CacheConfig;
1718
use PHPUnit\Framework\Attributes\Group;
1819

@@ -23,7 +24,7 @@
2324
final class FactoriesCacheFileHandlerTest extends FactoriesCacheFileVarExportHandlerTest
2425
{
2526
/**
26-
* @var @var FileVarExportHandler|CacheInterface
27+
* @var CacheInterface|FileVarExportHandler
2728
*/
2829
protected $handler;
2930

0 commit comments

Comments
 (0)