diff --git a/composer.json b/composer.json index 5c8ed2e..ccae4ed 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/src/Queue/TestsQueue.php b/src/Queue/TestsQueue.php index 302eebb..3af3e41 100644 --- a/src/Queue/TestsQueue.php +++ b/src/Queue/TestsQueue.php @@ -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; } /**