Skip to content

Commit

Permalink
Merge pull request #188 from mnocon/doctrine-collections-compatibility
Browse files Browse the repository at this point in the history
undefined
  • Loading branch information
DonCallisto authored Mar 7, 2023
2 parents 570e4f1 + 437f4ec commit 52b7768
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"symfony/console": "^4.4|^5.0|^6.0",
"symfony/stopwatch": "^4.4|^5.0|^6.0",
"symfony/process": "^4.4.35|^5.0|^6.0",
"doctrine/collections": "^1.2|^2.0"
"doctrine/collections": "^1.2|^2.0",
"symfony/deprecation-contracts": "^2.1|^3"
},
"require-dev": {
"behat/behat": "^3.6",
Expand Down
10 changes: 9 additions & 1 deletion src/Queue/TestsQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,15 @@ public function add($value): bool
$value = new TestSuite($value);
}

return parent::add($value);
parent::add($value);

trigger_deprecation(
'liuggio/fastest',
'1.10',
'The return value of Liuggio\Fastest\Queue\TestsQueue:add will change to void in v2 of the package'
);

return true;
}

/**
Expand Down

0 comments on commit 52b7768

Please sign in to comment.