diff --git a/src/Composer/Repository/PlatformRepository.php b/src/Composer/Repository/PlatformRepository.php index 5ebb6c9db..1e680e3b5 100644 --- a/src/Composer/Repository/PlatformRepository.php +++ b/src/Composer/Repository/PlatformRepository.php @@ -164,7 +164,7 @@ class PlatformRepository extends ArrayRepository $reflector->info(); $output = ob_get_clean(); - preg_match('/^Imagick using ImageMagick library version => ImageMagick ([\d.]+)-(\d+)/m', $output, $matches); + preg_match('/^(Imagick using ImageMagick library version|ImageMagick version) => ImageMagick ([\d.]+)-(\d+)/m', $output, $matches); $prettyVersion = "{$matches[1]}.{$matches[2]}"; break;