From 249a120d89cb6a12b9cccba1f7519c01c682df10 Mon Sep 17 00:00:00 2001 From: Lazizbek Ergashev Date: Fri, 27 Nov 2026 10:51:01 +0500 Subject: [PATCH] fix: allow dynamic properties on TestCall (#2085) --- src/PendingCalls/TestCall.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PendingCalls/TestCall.php b/src/PendingCalls/TestCall.php index e1b49c15..f0389738 100644 --- a/src/PendingCalls/TestCall.php +++ b/src/PendingCalls/TestCall.php @@ -4,6 +4,7 @@ declare(strict_types=1); namespace Pest\PendingCalls; +use AllowDynamicProperties; use Closure; use Pest\Concerns\Testable; use Pest\Exceptions\InvalidArgumentException; @@ -34,7 +35,8 @@ use PHPUnit\Framework\TestCase; * * @mixin HigherOrderCallables|TestCase|Testable */ -final class TestCall // @phpstan-ignore-line +#[AllowDynamicProperties] // @phpstan-ignore-line +final class TestCall { use Describable;