Browse Source

PHP callables cannot containing spaces

John Kary 12 năm trước cách đây
mục cha
commit
22cab83bb1

+ 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, '::');
     }
     }
 }
 }