We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
FramelessFunctionInfo
1 parent d8e8ce0 commit 367c5b5Copy full SHA for 367c5b5
build/gen_stub.php
@@ -2085,9 +2085,6 @@ public function __clone()
2085
$this->args[$key] = clone $argInfo;
2086
}
2087
$this->return = clone $this->return;
2088
- foreach ($this->framelessFunctionInfos as $key => $framelessFunctionInfo) {
2089
- $this->framelessFunctionInfos[$key] = clone $framelessFunctionInfo;
2090
- }
2091
2092
2093
@@ -4227,6 +4224,8 @@ function parseDocComment(DocComment $comment): array {
4227
4224
return $tags;
4228
4225
4229
4226
+// Instances of FramelessFunctionInfo are immutable and do not need to be cloned
+// when held by an object that is cloned
4230
class FramelessFunctionInfo {
4231
public /* readonly */ int $arity;
4232
0 commit comments