From 991d25115fd140291c83af889b8dc53cb2ea2d89 Mon Sep 17 00:00:00 2001 From: Rob Bast Date: Thu, 5 Nov 2015 18:47:30 +0100 Subject: [PATCH] fixes #4562 --- src/Composer/Autoload/AutoloadGenerator.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Composer/Autoload/AutoloadGenerator.php b/src/Composer/Autoload/AutoloadGenerator.php index dd02e57e9..3e2da75af 100644 --- a/src/Composer/Autoload/AutoloadGenerator.php +++ b/src/Composer/Autoload/AutoloadGenerator.php @@ -402,7 +402,11 @@ EOF; if (isset($autoloads['classmap'])) { foreach ($autoloads['classmap'] as $dir) { - $loader->addClassMap($this->generateClassMap($dir)); + try { + $loader->addClassMap($this->generateClassMap($dir)); + } catch (\RuntimeException $e) { + $this->io->writeError(''.$e->getMessage().''); + } } }