PluginProbe
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor / 4.0.3
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor v4.0.3
4.0.3 4.0.2 4.0.1 4.0.0 3.16.6 3.16.5 3.16.4 3.16.3 3.16.2 3.16.1 3.16.0 3.15.9 3.9.9 3.9.5 3.9.6 3.9.7 3.9.8 1.1.7 1.1.8 1.1.9 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 341 releases
← All changes | assets/lib/Mustache/Exception/SyntaxException.php +15 -3 2.0.24.0.3 View file →
@@ -2,9 +2,9 @@
2 2
3 3 /*
4 4 * This file is part of Mustache.php.
5 5 *
6 - * (c) 2013 Justin Hileman
6 + * (c) 2010-2017 Justin Hileman
7 7 *
8 8 * For the full copyright and license information, please view the LICENSE
9 9 * file that was distributed with this source code.
10 10 */
@@ -15,14 +15,26 @@
15 15 class Mustache_Exception_SyntaxException extends LogicException implements Mustache_Exception
16 16 {
17 17 protected $token;
18 18
19 - public function __construct($msg, array $token)
19 + /**
20 + * @param string $msg
21 + * @param array $token
22 + * @param Exception $previous
23 + */
24 + public function __construct($msg, array $token, Exception $previous = null)
20 25 {
21 26 $this->token = $token;
22 - parent::__construct($msg);
27 + if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
28 + parent::__construct($msg, 0, $previous);
29 + } else {
30 + parent::__construct($msg); // @codeCoverageIgnore
31 + }
23 32 }
24 33
34 + /**
35 + * @return array
36 + */
25 37 public function getToken()
26 38 {
27 39 return $this->token;
28 40 }