diff --git a/src/Composer/Autoload/PhpFileCleaner.php b/src/Composer/Autoload/PhpFileCleaner.php index 2564973fc..190d518a6 100644 --- a/src/Composer/Autoload/PhpFileCleaner.php +++ b/src/Composer/Autoload/PhpFileCleaner.php @@ -120,6 +120,7 @@ class PhpFileCleaner } if ($this->peek('*')) { $this->skipComment(); + continue; } } diff --git a/tests/Composer/Test/Autoload/Fixtures/classmap/sameNsMultipleClasses.php b/tests/Composer/Test/Autoload/Fixtures/classmap/sameNsMultipleClasses.php index f92ae8be4..efd3f1c11 100644 --- a/tests/Composer/Test/Autoload/Fixtures/classmap/sameNsMultipleClasses.php +++ b/tests/Composer/Test/Autoload/Fixtures/classmap/sameNsMultipleClasses.php @@ -4,3 +4,5 @@ namespace Foo\Bar; class A {} class B {} + +$x = `/** unterminated comment`;