Skip to content

Commit

Permalink
Relax final constrain on stage classes (#2717)
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN authored Jan 17, 2025
1 parent 0b9c1c7 commit 8f0b370
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/Doctrine/ODM/MongoDB/Aggregation/Stage/AddFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
*
* @psalm-import-type OperatorExpression from Expr
* @psalm-type AddFieldsStageExpression = array{'$addFields': array<string, OperatorExpression|mixed>}
* @final
*/
final class AddFields extends Operator
class AddFields extends Operator
{
/** @return AddFieldsStageExpression */
public function getExpression(): array
Expand Down
3 changes: 2 additions & 1 deletion lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Set.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
*
* @psalm-import-type OperatorExpression from Expr
* @psalm-type SetStageExpression = array{'$set': array<string, OperatorExpression|mixed>}
* @final
*/
final class Set extends Operator
class Set extends Operator
{
/** @psalm-return SetStageExpression */
public function getExpression(): array
Expand Down

0 comments on commit 8f0b370

Please sign in to comment.