@@ -1,7 +1,6 @@ |
||
| 1 | 1 | <?php namespace nyx\utils; |
| 2 | 2 | |
| 3 | 3 | // External dependencies |
| 4 | -use nyx\core; |
|
| 5 | 4 | |
| 6 | 5 | /** |
| 7 | 6 | * Unit |
@@ -705,7 +705,7 @@ |
||
| 705 | 705 | } |
| 706 | 706 | |
| 707 | 707 | throw new \InvalidArgumentException("Expected an array or an instance of ".attachment\Action::class.", got [".diagnostics\Debug::getTypeName($action)."] instead."); |
| 708 | - } |
|
| 708 | + } |
|
| 709 | 709 | |
| 710 | 710 | /** |
| 711 | 711 | * {@inheritDoc} |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | */ |
| 60 | 60 | public function apply($condition, callable $onMatch = null) : self |
| 61 | 61 | { |
| 62 | - if (!is_callable($condition)) { |
|
| 62 | + if (!is_callable($condition)) { |
|
| 63 | 63 | if (!$condition instanceof Condition) { |
| 64 | 64 | throw new \InvalidArgumentException('Expected a \nyx\diagnostics\Condition or a callable as first argument, got ['.diagnostics\Debug::getTypeName($condition).'] instead.'); |
| 65 | 65 | } |