Эх сурвалжийг харах

PHP callables cannot containing spaces

John Kary 12 жил өмнө
parent
commit
22cab83bb1

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

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