diff --git a/src/Map.php b/src/Map.php index 9d031e6..515d7cb 100644 --- a/src/Map.php +++ b/src/Map.php @@ -1396,7 +1396,7 @@ public function every( \Closure $callback ) : bool */ public function except( $keys ) : self { - return $this->copy()->remove( $keys ); + return ( clone $this )->remove( $keys ); } @@ -5485,7 +5485,7 @@ public function where( string $key, string $op, $value ) : self */ public function with( $key, $value ) : self { - return $this->copy()->set( $key, $value ); + return ( clone $this )->set( $key, $value ); }