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 93166ff commit b2ed5b5Copy full SHA for b2ed5b5
src/PhpGenerator/ClassType.php
@@ -616,6 +616,7 @@ private function validateNames(array $names): void
616
public function __clone()
617
{
618
$clone = fn($item) => clone $item;
619
+ $this->traits = array_map($clone, $this->traits);
620
$this->cases = array_map($clone, $this->cases);
621
$this->consts = array_map($clone, $this->consts);
622
$this->properties = array_map($clone, $this->properties);
0 commit comments