Skip to content

Commit 9efcc86

Browse files
committed
removes cloning procedure, all items are immutable themselves
1 parent 35431ca commit 9efcc86

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

src/Uri.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -326,16 +326,6 @@ function __toString () : string {
326326
return $this->compose();
327327
}
328328

329-
/**
330-
* Ensures a deep Uri cloning
331-
*
332-
* TODO: Test that ensures that immutability is kept
333-
*/
334-
function __clone () {
335-
if ($this->path) $this->path = clone $this->path;
336-
if ($this->query) $this->query = clone $this->query;
337-
}
338-
339329
/**
340330
* @return bool
341331
*/

0 commit comments

Comments
 (0)