Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove bug in class name management.

  • Loading branch information...
commit 724d3ee117695b8cce3b990cd3cb9fae3cec44a3 1 parent 246d651
@mageekguy mageekguy authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 classes/autoloader.php
View
6 classes/autoloader.php
@@ -109,15 +109,15 @@ public function getClassAliases()
public function getPath($class)
{
- $class = strtolower($class);
+ $caseInsentiveClass = strtolower($class);
foreach ($this->directories as $namespace => $directories)
{
- if ($class !== $namespace)
+ if ($caseInsentiveClass !== $namespace)
{
$namespaceLength = strlen($namespace);
- if (substr($class, 0, $namespaceLength) == $namespace)
+ if (substr($caseInsentiveClass, 0, $namespaceLength) == $namespace)
{
$classFile = str_replace('\\', DIRECTORY_SEPARATOR, substr($class, $namespaceLength)) . '.php';
Please sign in to comment.
Something went wrong with that request. Please try again.