From a7c35dc5b381f6cf004ef1ce172e295365522537 Mon Sep 17 00:00:00 2001 From: Niels Keurentjes Date: Mon, 6 Jan 2025 14:49:22 +0100 Subject: [PATCH] Fix type hint on OrderBy attribute PHPStan 2.0 does not accept a string backed enum as a string. --- src/Mapping/OrderBy.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mapping/OrderBy.php b/src/Mapping/OrderBy.php index 5cb2ed93cbc..8e6ae3b406b 100644 --- a/src/Mapping/OrderBy.php +++ b/src/Mapping/OrderBy.php @@ -5,11 +5,12 @@ namespace Doctrine\ORM\Mapping; use Attribute; +use Doctrine\Common\Collections\Order; #[Attribute(Attribute::TARGET_PROPERTY)] final class OrderBy implements MappingAttribute { - /** @param array $value */ + /** @param array $value */ public function __construct( public readonly array $value, ) {