Merge pull request #736 from JeppeKnockaert/fix-real-name-for-closures

bugfix - Do not use the real_name for closures
This commit is contained in:
Barry vd. Heuvel
2018-12-11 12:35:36 +01:00
committed by GitHub
+1 -1
View File
@@ -47,7 +47,7 @@ class Method
$this->method = $method; $this->method = $method;
$this->interfaces = $interfaces; $this->interfaces = $interfaces;
$this->name = $methodName ?: $method->name; $this->name = $methodName ?: $method->name;
$this->real_name = $method->name; $this->real_name = $method->isClosure() ? $this->name : $method->name;
$this->initClassDefinedProperties($method, $class); $this->initClassDefinedProperties($method, $class);
//Create a DocBlock and serializer instance //Create a DocBlock and serializer instance