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 */