Skip to content

Commit

Permalink
refactor: remove obsolete All class
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Feb 20, 2024
1 parent 179c2a5 commit ef07752
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 36 deletions.
2 changes: 1 addition & 1 deletion src/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private function __construct(callable $callable, iterable $parameters = [])

public function all(bool $normalize = true): array
{
return iterator_to_array((new Operation\All())()($normalize)($this));
return iterator_to_array($this, !$normalize);
}

public function append(mixed ...$items): CollectionInterface
Expand Down
35 changes: 0 additions & 35 deletions src/Operation/All.php

This file was deleted.

0 comments on commit ef07752

Please sign in to comment.