Skip to content

Commit

Permalink
Merge pull request #78 from geekwright/php53compat
Browse files Browse the repository at this point in the history
PHP 5.3 compatibility fixes
  • Loading branch information
geekwright authored Mar 26, 2021
2 parents def9c1f + 89cae7e commit 4dcdf96
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions src/Debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @package Xmf
* @author trabis <[email protected]>
* @author Richard Griffith <[email protected]>
* @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
*/
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Uuid.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
* @category Xmf\Uuid
* @package Xmf
* @author Richard Griffith <[email protected]>
* @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
{
// 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
Expand Down

0 comments on commit 4dcdf96

Please sign in to comment.