From f1358451005f3ecd0b0b5964f1edea333bccad8d Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Tue, 26 Aug 2014 13:01:45 +0200 Subject: [PATCH] Revert adding costructor back Doesn't make sense, isn't called static. --- src/Alias.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Alias.php b/src/Alias.php index c06b921..3996931 100644 --- a/src/Alias.php +++ b/src/Alias.php @@ -261,7 +261,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 && (substr($method->name, 0, 2) !== '__' || $method->name === '__construct')) { + 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;