From a8b8adafdf17ab761ad356004f916669e90eff67 Mon Sep 17 00:00:00 2001 From: Fabio Ivona Date: Mon, 19 Sep 2022 11:50:56 +0200 Subject: [PATCH] Any Matcher refactor --- src/Expectation.php | 7 +++++++ src/Matchers/Any.php | 3 +++ 2 files changed, 10 insertions(+) diff --git a/src/Expectation.php b/src/Expectation.php index 2cfa4a98..44144788 100644 --- a/src/Expectation.php +++ b/src/Expectation.php @@ -341,6 +341,13 @@ final class Expectation || self::hasExtend($name); } + /** + * Matches any value + * + * @internal + * + * @return Any + */ public function any(): Any { return new Any(); diff --git a/src/Matchers/Any.php b/src/Matchers/Any.php index b3a308a9..484cf795 100644 --- a/src/Matchers/Any.php +++ b/src/Matchers/Any.php @@ -4,6 +4,9 @@ declare(strict_types=1); namespace Pest\Matchers; +/** + * @internal + */ final class Any { }