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 0c90aeb commit 82db3b0Copy full SHA for 82db3b0
src/Cart.php
@@ -86,10 +86,11 @@ public function add(...$args): self
86
*/
87
public function remove($key)
88
{
89
- if (isset($this->data[$key])) {
90
- parent::remove($key);
91
- $this->save();
+ if ($this->caseSensitive !== true) {
+ $key = strtolower($key);
92
}
+ parent::remove($key);
93
+ $this->save();
94
return $this;
95
96
0 commit comments