diff --git a/src/Alias.php b/src/Alias.php index 82edd82..58aeb7e 100644 --- a/src/Alias.php +++ b/src/Alias.php @@ -258,7 +258,7 @@ class Alias if (!in_array($method->name, $this->usedMethods)) { // Only add the methods to the output when the root is not the same as the class. // And don't add the __*() methods - if ($this->extends !== $class && $method->name !== '__clone') { + if ($this->extends !== $class && substr($method->name, 0, 2) !== '__') { $this->methods[] = new Method($method, $this->alias, $reflection, $method->name, $this->interfaces); } $this->usedMethods[] = $method->name;