From 84527b819c1f42d148b39a4548eb604b51b72d7b Mon Sep 17 00:00:00 2001 From: Priyadi Iman Nurcahyo <1102197+priyadi@users.noreply.github.com> Date: Mon, 28 Oct 2024 16:45:16 +0700 Subject: [PATCH 1/2] fix: fix phpstan errors --- CHANGELOG.md | 4 ++++ .../src/HttpFoundation/ToHttpFoundationFileAdapter.php | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0aa0be6..d05d00d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## 1.11.1 + +* fix: fix phpstan errors + ## 1.11.0 * test: modernization diff --git a/packages/file-symfony-bridge/src/HttpFoundation/ToHttpFoundationFileAdapter.php b/packages/file-symfony-bridge/src/HttpFoundation/ToHttpFoundationFileAdapter.php index f870e06..96a89b8 100644 --- a/packages/file-symfony-bridge/src/HttpFoundation/ToHttpFoundationFileAdapter.php +++ b/packages/file-symfony-bridge/src/HttpFoundation/ToHttpFoundationFileAdapter.php @@ -188,7 +188,6 @@ public function getPath(): string #[\Override] public function getPathInfo($class = null): ?\SplFileInfo { - // @phpstan-ignore return.type return $this->getHttpFoundationFile()->getPathInfo($class); } From 78da8909e5aec3074617719d13bbf5a5aaa537dc Mon Sep 17 00:00:00 2001 From: Priyadi Iman Nurcahyo <1102197+priyadi@users.noreply.github.com> Date: Mon, 28 Oct 2024 16:51:07 +0700 Subject: [PATCH 2/2] bump phpstan --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 62f782b..26af09a 100644 --- a/composer.json +++ b/composer.json @@ -53,7 +53,7 @@ "ekino/phpstan-banned-code": "^2.1", "league/flysystem-memory": "^3.16", "mockery/mockery": "^1.6", - "phpstan/phpstan": "^1.12.5 || ^1.13", + "phpstan/phpstan": "^1.12.7 || ^1.13", "phpstan/phpstan-deprecation-rules": "^1.1", "phpstan/phpstan-mockery": "^1.1", "phpstan/phpstan-phpunit": "^1.3",