Skip to content

Commit 474476b

Browse files
authored
Use Hyperf\Collection\Enumerable instead of Hyperf\ViewEngine\Contract\Enumerable (#6860)
1 parent ab41ed1 commit 474476b

File tree

3 files changed

+7
-891
lines changed

3 files changed

+7
-891
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"require": {
1313
"php": ">=8.1",
1414
"ext-json": "*",
15-
"hyperf/collection": "~3.1.0",
15+
"hyperf/collection": "~3.1.23",
1616
"hyperf/config": "~3.1.0",
1717
"hyperf/di": "~3.1.0",
1818
"hyperf/event": "~3.1.0",

src/Component/InvokableComponentVariable.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
use ArrayIterator;
1616
use Closure;
17+
use Hyperf\Collection\Enumerable;
1718
use Hyperf\ViewEngine\Contract\DeferringDisplayableValue;
18-
use Hyperf\ViewEngine\Contract\Enumerable;
1919
use Hyperf\ViewEngine\Contract\Htmlable;
2020
use IteratorAggregate;
2121
use Stringable;
@@ -82,7 +82,7 @@ public function resolveDisplayableValue(): Htmlable|string
8282
}
8383

8484
/**
85-
* Get an interator instance for the variable.
85+
* Get an iterator instance for the variable.
8686
*/
8787
public function getIterator(): Traversable
8888
{

0 commit comments

Comments
 (0)