Browse Source

Merge pull request #5770 from fabpot/var-decl-missing

added missing var declaration
Jordi Boggiano 8 years ago
parent
commit
823a673b12
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Composer/Plugin/PluginManager.php

+ 1 - 0
src/Composer/Plugin/PluginManager.php

@@ -183,6 +183,7 @@ class PluginManager
                 $path = $classLoader->findFile($class);
                 $code = file_get_contents($path);
                 $separatorPos = strrpos($class, '\\');
+                $className = $class;
                 if ($separatorPos) {
                     $className = substr($class, $separatorPos + 1);
                 }