From ec96e5de64a9e6da3c837eef5ac23346c2cdbc1e Mon Sep 17 00:00:00 2001 From: zakonnic Date: Fri, 20 Sep 2019 12:58:09 +0300 Subject: [PATCH] Fix incorrect strip of non-php blocks in the file --- src/Composer/Autoload/ClassMapGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Autoload/ClassMapGenerator.php b/src/Composer/Autoload/ClassMapGenerator.php index 1ecf96bfe..c3a3a07d8 100644 --- a/src/Composer/Autoload/ClassMapGenerator.php +++ b/src/Composer/Autoload/ClassMapGenerator.php @@ -173,7 +173,7 @@ class ClassMapGenerator } } // strip non-php blocks in the file - $contents = preg_replace('{\?>.+<\?}s', '?>.+?<\?}s', '?>'); if (false !== $pos && false === strpos(substr($contents, $pos), '