jsminplus: Fix string concatenation in error message
authorBryan Davis <bd808@wikimedia.org>
Wed, 22 Oct 2014 03:53:03 +0000 (21:53 -0600)
committerKrinkle <krinklemail@gmail.com>
Wed, 22 Oct 2014 11:44:49 +0000 (11:44 +0000)
PHP concatenates strings with the `.` operator, not with `+`.

Change-Id: I628a55d714129a1345c37bfd31d8985bce177701

includes/libs/jsminplus.php

index ed0382c..99cf399 100644 (file)
@@ -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);