Skip to content

Commit

Permalink
Added deprecation notice for TestsQueue::add
Browse files Browse the repository at this point in the history
  • Loading branch information
mnocon committed Mar 7, 2023
1 parent 900c81c commit 437f4ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
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
6 changes: 6 additions & 0 deletions src/Queue/TestsQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ public function add($value): bool
}

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 437f4ec

Please sign in to comment.