From 0dad959d410848590af4ba07a9f5ea919fb28f10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Fri, 17 Jan 2025 11:05:15 +0100 Subject: [PATCH] Relax final constrain on stage classes --- lib/Doctrine/ODM/MongoDB/Aggregation/Stage/AddFields.php | 4 +++- lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Set.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/ODM/MongoDB/Aggregation/Stage/AddFields.php b/lib/Doctrine/ODM/MongoDB/Aggregation/Stage/AddFields.php index b658656bb9..a95d1be44a 100644 --- a/lib/Doctrine/ODM/MongoDB/Aggregation/Stage/AddFields.php +++ b/lib/Doctrine/ODM/MongoDB/Aggregation/Stage/AddFields.php @@ -11,8 +11,10 @@ * * @psalm-import-type OperatorExpression from Expr * @psalm-type AddFieldsStageExpression = array{'$addFields': array} + * +* @final */ -final class AddFields extends Operator +class AddFields extends Operator { /** @return AddFieldsStageExpression */ public function getExpression(): array diff --git a/lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Set.php b/lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Set.php index cca5aed345..eb1f79b2f2 100644 --- a/lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Set.php +++ b/lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Set.php @@ -11,8 +11,10 @@ * * @psalm-import-type OperatorExpression from Expr * @psalm-type SetStageExpression = array{'$set': array} + * + * @final */ -final class Set extends Operator +class Set extends Operator { /** @psalm-return SetStageExpression */ public function getExpression(): array