From 8f4b0dafaad2bd7c860fc3394decdf237b7c7626 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Oct 2024 15:30:18 +0000 Subject: [PATCH 1/2] chore(deps-dev): update rector/rector requirement from 1.2.6 to 1.2.7 Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/1.2.6...1.2.7) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 1caf40d2c832..30c422611595 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ "phpunit/phpcov": "^9.0.2 || ^10.0", "phpunit/phpunit": "^10.5.16 || ^11.2", "predis/predis": "^1.1 || ^2.0", - "rector/rector": "1.2.6" + "rector/rector": "1.2.7" }, "replace": { "codeigniter4/framework": "self.version" From bb650e12b82e5bd44f4fcd6648e190d5c86e716c Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Wed, 16 Oct 2024 02:56:50 +0700 Subject: [PATCH 2/2] fix invalid doc and regenerate baseline --- phpstan-baseline.php | 12 ------------ tests/system/Helpers/FilesystemHelperTest.php | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/phpstan-baseline.php b/phpstan-baseline.php index 1ba751d7c11d..ea228647c992 100644 --- a/phpstan-baseline.php +++ b/phpstan-baseline.php @@ -15145,18 +15145,6 @@ 'count' => 2, 'path' => __DIR__ . '/tests/system/Helpers/FilesystemHelperTest.php', ]; -$ignoreErrors[] = [ - // identifier: property.phpDocType - 'message' => '#^PHPDoc tag @var for property CodeIgniter\\\\Helpers\\\\FilesystemHelperTest\\:\\:\\$structure with type mixed is not subtype of native type array\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/system/Helpers/FilesystemHelperTest.php', -]; -$ignoreErrors[] = [ - // identifier: missingType.iterableValue - 'message' => '#^Property CodeIgniter\\\\Helpers\\\\FilesystemHelperTest\\:\\:\\$structure type has no value type specified in iterable type array\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/system/Helpers/FilesystemHelperTest.php', -]; $ignoreErrors[] = [ // identifier: argument.type 'message' => '#^Parameter \\#2 \\$value of function form_hidden expects array\\|string, null given\\.$#', diff --git a/tests/system/Helpers/FilesystemHelperTest.php b/tests/system/Helpers/FilesystemHelperTest.php index ad169cf3b58b..a8ee76d6ab09 100644 --- a/tests/system/Helpers/FilesystemHelperTest.php +++ b/tests/system/Helpers/FilesystemHelperTest.php @@ -25,7 +25,7 @@ final class FilesystemHelperTest extends CIUnitTestCase { /** - * @var array>>|array>|array>|array|array|mixed + * @var array>>|array>|array>|array|array */ private array $structure;