Skip to content

Commit 674407d

Browse files
Fixed Collection->remove incorrect throw (#4188)
The remove function always throws an error, even when the name is valid.
1 parent ea0e1dc commit 674407d

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/Collection/Collection.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public function remove(string $name): void
4545
if ($this->has($name)) {
4646
unset($this->values[$name]);
4747
}
48-
throw $this->notFound($name);
4948
}
5049

5150
public function count(): int

0 commit comments

Comments
 (0)