From ac367463f922ce69ee10356ca4557d09e837fb08 Mon Sep 17 00:00:00 2001 From: Rostislav Wolny Date: Wed, 21 Oct 2020 09:45:48 +0200 Subject: [PATCH] Add comment to ternary operators fix [MAILPOET-3232] --- prefixer/fix-carbon.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prefixer/fix-carbon.php b/prefixer/fix-carbon.php index b567c18f7a..1031876cd3 100644 --- a/prefixer/fix-carbon.php +++ b/prefixer/fix-carbon.php @@ -6,7 +6,9 @@ set_error_handler(function ($severity, $message, $file, $line) { }); $replacements = [ - // Fix deprecation warnings for nested ternary operators + // Fix for PHP 7.4 deprecation warnings for nested ternary operators without brackets + // This is caused by a bug in PHP Parser used within PHP Scoper. We can remove it after we update to PHP Scoper + // that contains updated PHP Parser. [ 'file' => '../vendor-prefixed/nesbot/carbon/src/Carbon/CarbonInterval.php', 'find' => [