From ec3e0b2d335cce29c6c0b7142b5957e039a0e53f Mon Sep 17 00:00:00 2001 From: "David B." <997605+DevDavido@users.noreply.github.com> Date: Mon, 9 Feb 2026 20:48:56 +0100 Subject: [PATCH] fix: Parameter closure this type annotations in Functions.php --- src/Functions.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Functions.php b/src/Functions.php index 0ed631f3..fef59157 100644 --- a/src/Functions.php +++ b/src/Functions.php @@ -61,7 +61,7 @@ function beforeAll(Closure $closure): void /** * Runs the given closure before each test in the current file. * - * @param-closure-this TestCase $closure + * @param-closure-this TestCall $closure * * @return HigherOrderTapProxy|Expectable|TestCall|TestCase|mixed */ @@ -134,7 +134,7 @@ function pest(): Configuration * is the test description; the second argument is * a closure that contains the test expectations. * - * @param-closure-this TestCase $closure + * @param-closure-this TestCall $closure * * @return Expectable|TestCall|TestCase|mixed */ @@ -156,7 +156,7 @@ function test(?string $description = null, ?Closure $closure = null): HigherOrde * is the test description; the second argument is * a closure that contains the test expectations. * - * @param-closure-this TestCase $closure + * @param-closure-this TestCall $closure * * @return Expectable|TestCall|TestCase|mixed */ @@ -191,7 +191,7 @@ function todo(string $description): TestCall /** * Runs the given closure after each test in the current file. * - * @param-closure-this TestCase $closure + * @param-closure-this TestCall $closure * * @return Expectable|HigherOrderTapProxy|TestCall|mixed */