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 ad7d0a7 commit 30e76bcCopy full SHA for 30e76bc
src/PhpGenerator/ClassType.php
@@ -662,6 +662,7 @@ private function validateNames(array $names): void
662
public function __clone()
663
{
664
$clone = function ($item) { return clone $item; };
665
+ $this->traits = array_map($clone, $this->traits);
666
$this->cases = array_map($clone, $this->cases);
667
$this->consts = array_map($clone, $this->consts);
668
$this->properties = array_map($clone, $this->properties);
0 commit comments