We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a18ca6 commit 579ffcbCopy full SHA for 579ffcb
2 files changed
src/Comments.php
@@ -48,7 +48,7 @@ public function delete(string ...$comments): self
48
foreach ($comments as $comment) {
49
$key = array_search($comment, $this->comments);
50
51
- if ($key !== false) {
+ if (is_int($key)) {
52
array_splice($this->comments, $key, 1);
53
}
54
src/Flags.php
@@ -50,7 +50,7 @@ public function delete(string ...$flags): self
foreach ($flags as $flag) {
$key = array_search($flag, $this->flags);
array_splice($this->flags, $key, 1);
55
56
0 commit comments