Sfoglia il codice sorgente

PHP callables cannot containing spaces

John Kary 12 anni fa
parent
commit
22cab83bb1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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, '::');
     }
 }