mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
fix misleading error messages in HopsCriteria and DelayCriteria
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user