From e69899559d544dabab4bea4554bae2865be3bb41 Mon Sep 17 00:00:00 2001 From: Thai Nguyen Hung Date: Thu, 24 Aug 2023 15:23:13 +0700 Subject: [PATCH] refactor: generic attribute --- src/Expectation.php | 3 ++- src/Expectations/OppositeExpectation.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Expectation.php b/src/Expectation.php index 1bc20abd..22f79122 100644 --- a/src/Expectation.php +++ b/src/Expectation.php @@ -4,6 +4,7 @@ declare(strict_types=1); namespace Pest; +use Attribute; use BadMethodCallException; use Closure; use InvalidArgumentException; @@ -837,7 +838,7 @@ final class Expectation /** * Asserts that the given expectation target to have the given attribute. * - * @param class-string $attribute + * @param class-string $attribute */ public function toHaveAttribute(string $attribute): ArchExpectation { diff --git a/src/Expectations/OppositeExpectation.php b/src/Expectations/OppositeExpectation.php index 4953c1af..95aae090 100644 --- a/src/Expectations/OppositeExpectation.php +++ b/src/Expectations/OppositeExpectation.php @@ -4,6 +4,7 @@ declare(strict_types=1); namespace Pest\Expectations; +use Attribute; use Pest\Arch\Contracts\ArchExpectation; use Pest\Arch\Expectations\Targeted; use Pest\Arch\Expectations\ToBeUsedIn; @@ -381,7 +382,7 @@ final class OppositeExpectation /** * Asserts that the given expectation target not to have the given attribute. * - * @param class-string $attribute + * @param class-string $attribute */ public function toHaveAttribute(string $attribute): ArchExpectation {