Explorar o código

PHP callables cannot containing spaces

John Kary %!s(int64=12) %!d(string=hai) anos
pai
achega
22cab83bb1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
     {
-        return false !== strpos($callable, '::');
+        return false === strpos($callable, ' ') && false !== strpos($callable, '::');
     }
 }