From b8226d8990dd9ec24df744ff83a73a6def7c2c9a Mon Sep 17 00:00:00 2001 From: geekwright Date: Thu, 18 Mar 2021 17:03:52 -0500 Subject: [PATCH 1/4] Remove short array syntax --- src/Debug.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Debug.php b/src/Debug.php index dd40fae..e33aa50 100644 --- a/src/Debug.php +++ b/src/Debug.php @@ -36,8 +36,8 @@ private static function doOnce() if (true !== $done) { $done = true; $class = get_called_class(); - parent::$aliases[] = [$class, 'dump']; - parent::$aliases[] = [$class, 'backtrace']; + parent::$aliases[] = array($class, 'dump'); + parent::$aliases[] = array($class, 'backtrace'); parent::$enabled_mode = true; parent::$mode_default = \Kint::MODE_RICH; // display output inline ::folder = false, true puts all output at bottom of window From e69e651d4e2c1ab0747baf4c46fb91f6ccd328d9 Mon Sep 17 00:00:00 2001 From: geekwright Date: Mon, 22 Mar 2021 10:09:25 -0500 Subject: [PATCH 2/4] Remove constant visibility --- src/Uuid.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Uuid.php b/src/Uuid.php index 8a9b3b9..8644e0a 100644 --- a/src/Uuid.php +++ b/src/Uuid.php @@ -23,7 +23,7 @@ class Uuid { // match spec for version 4 UUID as per rfc4122 - protected const UUID_REGEX = '/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/'; + const UUID_REGEX = '/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/'; /** * generate - generate a version 4 (random) UUID From d2c67f13357e7b8e971e68e7dcad2b297570da55 Mon Sep 17 00:00:00 2001 From: geekwright Date: Mon, 22 Mar 2021 11:03:23 -0500 Subject: [PATCH 3/4] Update dates --- src/Debug.php | 2 +- src/Uuid.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Debug.php b/src/Debug.php index e33aa50..1422862 100644 --- a/src/Debug.php +++ b/src/Debug.php @@ -18,7 +18,7 @@ * @package Xmf * @author trabis * @author Richard Griffith - * @copyright 2011-2018 XOOPS Project (https://xoops.org) + * @copyright 2011-2021 XOOPS Project (https://xoops.org) * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) * @link https://xoops.org */ diff --git a/src/Uuid.php b/src/Uuid.php index 8644e0a..fd8fec6 100644 --- a/src/Uuid.php +++ b/src/Uuid.php @@ -17,7 +17,7 @@ * @category Xmf\Uuid * @package Xmf * @author Richard Griffith - * @copyright 2017-2019 XOOPS Project (https://xoops.org) + * @copyright 2017-2021 XOOPS Project (https://xoops.org) * @license GNU GPL 2 or later (https://www.gnu.org/licenses/gpl-2.0.html) */ class Uuid From 89cae7e7b72007e11f2ead842758d35a7e9c1b08 Mon Sep 17 00:00:00 2001 From: geekwright Date: Mon, 22 Mar 2021 11:04:15 -0500 Subject: [PATCH 4/4] Lock to assert 1.9 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a23adff..e75d6df 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ "symfony/yaml": "^2.8", "paragonie/random_compat": "^2", "firebase/php-jwt": "^5.0", - "webmozart/assert": "^1.2" + "webmozart/assert": "1.9.1" }, "require-dev": { "phpunit/phpunit": "^7.0",