浏览代码

PHP callables cannot containing spaces

John Kary 12 年之前
父节点
当前提交
22cab83bb1
共有 1 个文件被更改,包括 1 次插入1 次删除
  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, '::');
     }
 }