From: Bryan Davis Date: Wed, 22 Oct 2014 03:53:03 +0000 (-0600) Subject: jsminplus: Fix string concatenation in error message X-Git-Tag: 1.31.0-rc.0~13526 X-Git-Url: https://git.heureux-cyclage.org/?a=commitdiff_plain;h=63233fa55c67151c33b02136c28ed92be79973b4;p=lhc%2Fweb%2Fwiklou.git jsminplus: Fix string concatenation in error message PHP concatenates strings with the `.` operator, not with `+`. Change-Id: I628a55d714129a1345c37bfd31d8985bce177701 --- diff --git a/includes/libs/jsminplus.php b/includes/libs/jsminplus.php index ed0382cf53..99cf399bd9 100644 --- a/includes/libs/jsminplus.php +++ b/includes/libs/jsminplus.php @@ -1017,7 +1017,7 @@ class JSParser case KEYWORD_CATCH: case KEYWORD_FINALLY: - throw $this->t->newSyntaxError($tt + ' without preceding try'); + throw $this->t->newSyntaxError($tt . ' without preceding try'); case KEYWORD_THROW: $n = new JSNode($this->t);