Skip to content

Commit 70a1c2f

Browse files
committed
Relax final constrain on stage classes
1 parent 2748349 commit 70a1c2f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/Doctrine/ODM/MongoDB/Aggregation/Stage/AddFields.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
*
1212
* @psalm-import-type OperatorExpression from Expr
1313
* @psalm-type AddFieldsStageExpression = array{'$addFields': array<string, OperatorExpression|mixed>}
14+
*
15+
* @final
1416
*/
15-
final class AddFields extends Operator
17+
class AddFields extends Operator
1618
{
1719
/** @return AddFieldsStageExpression */
1820
public function getExpression(): array

lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Set.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
*
1212
* @psalm-import-type OperatorExpression from Expr
1313
* @psalm-type SetStageExpression = array{'$set': array<string, OperatorExpression|mixed>}
14+
*
15+
* @final
1416
*/
15-
final class Set extends Operator
17+
class Set extends Operator
1618
{
1719
/** @psalm-return SetStageExpression */
1820
public function getExpression(): array

0 commit comments

Comments
 (0)