Skip to content

Commit b62cd5e

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: Simplify some code with null coalesce operator Don't use deprecated TestLogger class
2 parents ba3f5c8 + 4c9de7b commit b62cd5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Util/GitRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private static function exec(string $command, string $customErrorMessage = null)
9595
exec(sprintf('%s 2>&1', $command), $output, $result);
9696

9797
if (0 !== $result) {
98-
throw new RuntimeException(null !== $customErrorMessage ? $customErrorMessage : sprintf('The "%s" command failed.', $command));
98+
throw new RuntimeException($customErrorMessage ?? sprintf('The "%s" command failed.', $command));
9999
}
100100

101101
return $output;

0 commit comments

Comments
 (0)