Skip to content

Commit

Permalink
Relax final constrain on stage classes
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Jan 17, 2025
1 parent 2748349 commit 70a1c2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 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,10 @@
*
* @psalm-import-type OperatorExpression from Expr

Check failure on line 12 in lib/Doctrine/ODM/MongoDB/Aggregation/Stage/AddFields.php

View workflow job for this annotation

GitHub Actions / Coding Standards / Coding Standards (8.3)

Incorrect annotations group.
* @psalm-type AddFieldsStageExpression = array{'$addFields': array<string, OperatorExpression|mixed>}
*
* @final

Check failure on line 15 in lib/Doctrine/ODM/MongoDB/Aggregation/Stage/AddFields.php

View workflow job for this annotation

GitHub Actions / Coding Standards / Coding Standards (8.3)

Expected 1 space before asterisk; 0 found
*/
final class AddFields extends Operator
class AddFields extends Operator
{
/** @return AddFieldsStageExpression */
public function getExpression(): array
Expand Down
4 changes: 3 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,10 @@
*
* @psalm-import-type OperatorExpression from Expr

Check failure on line 12 in lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Set.php

View workflow job for this annotation

GitHub Actions / Coding Standards / Coding Standards (8.3)

Incorrect annotations group.
* @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 70a1c2f

Please sign in to comment.