Browse Source

PHP callables cannot containing spaces

John Kary 12 years ago
parent
commit
22cab83bb1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Composer/Script/EventDispatcher.php

+ 1 - 1
src/Composer/Script/EventDispatcher.php

@@ -151,6 +151,6 @@ class EventDispatcher
      */
      */
     protected function isPhpScript($callable)
     protected function isPhpScript($callable)
     {
     {
-        return false !== strpos($callable, '::');
+        return false === strpos($callable, ' ') && false !== strpos($callable, '::');
     }
     }
 }
 }