From a820363f594a463f8dc8f6efce84cda04fba84b1 Mon Sep 17 00:00:00 2001 From: kakiuchi-shigenao Date: Sat, 10 May 2025 17:01:56 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20phpstan.neon.dist=E3=81=8B=E3=82=89typeA?= =?UTF-8?q?liases=E3=82=92=E5=89=8A=E9=99=A4=E3=81=97=E3=80=81Result?= =?UTF-8?q?=E3=82=A4=E3=83=B3=E3=82=BF=E3=83=BC=E3=83=95=E3=82=A7=E3=83=BC?= =?UTF-8?q?=E3=82=B9=E3=81=AEandThen=E3=83=A1=E3=82=BD=E3=83=83=E3=83=89?= =?UTF-8?q?=E3=81=AE=E5=9E=8B=E6=B3=A8=E9=87=88=E3=82=92=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=20Fixes=20#40?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- phpstan.neon.dist | 2 -- src/Result.php | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 7f229a6..105e41f 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -5,5 +5,3 @@ parameters: paths: - src - tests - typeAliases: - BasicTypes: 'int|string|bool|null|float|array|iterable|callable|resource|object' diff --git a/src/Result.php b/src/Result.php index c4cce19..75a287e 100644 --- a/src/Result.php +++ b/src/Result.php @@ -114,8 +114,8 @@ public function and(self $right): self; * @see https://doc.rust-lang.org/std/result/enum.Result.html#method.and_then * @template U * @template F - * @param Closure(T): Result $right - * @return (F is BasicTypes ? Result : Result) + * @param Closure(T): Result $right + * @return (F is int|string|bool|null|float|array|iterable|callable|resource|object ? Result : Result) */ public function andThen(Closure $right): self; /** @phpstan-ignore method.childParameterType */