mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
fix typo in FilterCriteria error message
This commit is contained in:
@@ -25,7 +25,7 @@ final class FilterCriteria implements CriteriaInterface
|
||||
$criteria = $criteria instanceof \Closure ? [$criteria] : $criteria;
|
||||
foreach ($criteria as $callback) {
|
||||
if (!$callback instanceof \Closure) {
|
||||
throw new \InvalidArgumentException(\sprintf('Each element must be a closure, got got "%s".', get_debug_type($callback)));
|
||||
throw new \InvalidArgumentException(\sprintf('Each element must be a closure, got "%s".', get_debug_type($callback)));
|
||||
}
|
||||
|
||||
$this->callbacks[] = $callback;
|
||||
|
||||
Reference in New Issue
Block a user