diff --git a/src/Application/PresenterFactory.php b/src/Application/PresenterFactory.php index 355cbc740..64c1827ba 100644 --- a/src/Application/PresenterFactory.php +++ b/src/Application/PresenterFactory.php @@ -80,14 +80,7 @@ public function getPresenterClass(&$name) throw new InvalidPresenterException("Cannot load presenter '$name', class '$class' is abstract."); } - $this->cache[$name] = $class; - - if ($name !== ($realName = $this->unformatPresenterClass($class))) { - trigger_error("Case mismatch on presenter name '$name', correct name is '$realName'.", E_USER_WARNING); - $name = $realName; - } - - return $class; + return $this->cache[$name] = $class; }