From 22cab83bb1dde8642a5960512901ea491b55956c Mon Sep 17 00:00:00 2001 From: John Kary Date: Sat, 6 Oct 2012 22:36:17 -0500 Subject: [PATCH] PHP callables cannot containing spaces --- src/Composer/Script/EventDispatcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Script/EventDispatcher.php b/src/Composer/Script/EventDispatcher.php index 6c6d26b87..7dd1e1f1c 100644 --- a/src/Composer/Script/EventDispatcher.php +++ b/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, '::'); } }