Skip to content

Commit

Permalink
fix: lazy collection type hinting
Browse files Browse the repository at this point in the history
  • Loading branch information
ulcuber committed Dec 2, 2024
1 parent e3514c6 commit d451045
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Entities/LogEntryCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class LogEntryCollection extends LazyCollection
{
public static $lastCount = null;

public static function load(string $raw): static
public static function load(string|LazyCollection $raw): static
{
return new static(function () use (&$raw) {
foreach (LogParser::parse($raw) as $entry) {
Expand Down
2 changes: 1 addition & 1 deletion src/Helpers/LogParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class LogParser
* @param string|LazyCollection $raw
* @return array|LazyCollection
*/
public static function parse(&$raw)
public static function parse(string|LazyCollection &$raw)
{
static::$parsed = [];

Expand Down

0 comments on commit d451045

Please sign in to comment.