fix misleading error messages in HopsCriteria and DelayCriteria

This commit is contained in:
Younes ENNAJI
2026-02-25 10:43:52 +00:00
parent 670e40dc97
commit f9bef40ae6
2 changed files with 2 additions and 2 deletions
@@ -20,7 +20,7 @@ final readonly class DelayCriteria implements CriteriaInterface
*/
public function __construct(mixed $criteria)
{
$criteria = $this->extractRange('priority', $criteria);
$criteria = $this->extractRange('delay', $criteria);
$this->minDelay = $criteria['min'];
$this->maxDelay = $criteria['max'];
@@ -20,7 +20,7 @@ final readonly class HopsCriteria implements CriteriaInterface
*/
public function __construct(mixed $criteria)
{
$criteria = $this->extractRange('priority', $criteria);
$criteria = $this->extractRange('hops', $criteria);
$this->minAmount = $criteria['min'];
$this->maxAmount = $criteria['max'];