Skip to content

Commit 8f0b370

Browse files
authored
Relax final constrain on stage classes (#2717)
1 parent 0b9c1c7 commit 8f0b370

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
*
1212
* @psalm-import-type OperatorExpression from Expr
1313
* @psalm-type AddFieldsStageExpression = array{'$addFields': array<string, OperatorExpression|mixed>}
14+
* @final
1415
*/
15-
final class AddFields extends Operator
16+
class AddFields extends Operator
1617
{
1718
/** @return AddFieldsStageExpression */
1819
public function getExpression(): array

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
*
1212
* @psalm-import-type OperatorExpression from Expr
1313
* @psalm-type SetStageExpression = array{'$set': array<string, OperatorExpression|mixed>}
14+
* @final
1415
*/
15-
final class Set extends Operator
16+
class Set extends Operator
1617
{
1718
/** @psalm-return SetStageExpression */
1819
public function getExpression(): array

0 commit comments

Comments
 (0)