Skip to content

Commit

Permalink
Arrays 3.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Aug 2, 2021
1 parent 5157654 commit 3f9b93b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<a name="3.0.5"></a>
# [3.0.5](https://github.com/atomastic/arrays) (2021-08-02)
* fix except() method.

<a name="3.0.4"></a>
# [3.0.4](https://github.com/atomastic/arrays) (2021-07-09)
* fix PHPstan tests
Expand Down
4 changes: 3 additions & 1 deletion src/Arrays.php
Original file line number Diff line number Diff line change
Expand Up @@ -1291,7 +1291,9 @@ public function only(array $keys): self
*/
public function except(array $keys): self
{
return $this->copy()->delete($keys);
$this->items = $this->delete($keys)->toArray();

return $this;
}

/**
Expand Down

0 comments on commit 3f9b93b

Please sign in to comment.