From a17e7e9bd3647768de21606787ea081dc5d53c48 Mon Sep 17 00:00:00 2001 From: Guilliam Xavier Date: Fri, 14 Feb 2020 10:57:19 +0100 Subject: [PATCH] ValidateCommand: fix array syntax for PHP 5.3 --- src/Composer/Command/ValidateCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Command/ValidateCommand.php b/src/Composer/Command/ValidateCommand.php index 673c609c2..6ab95ed1c 100644 --- a/src/Composer/Command/ValidateCommand.php +++ b/src/Composer/Command/ValidateCommand.php @@ -148,7 +148,7 @@ EOT } // Avoid setting the exit code to 1 in case --strict and --no-check-publish/--no-check-lock are combined - $extraWarnings = []; + $extraWarnings = array(); // If checking publish errors, display them as errors, otherwise just show them as warnings if ($checkPublish) {