From c3719435a3864ed81c2ae83f3059191776179ec6 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Fri, 10 May 2019 23:09:35 +0200 Subject: [PATCH] and fixing PHP 5.5 --- lib/Model/AbstractModel.php | 2 +- tst/Bootstrap.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Model/AbstractModel.php b/lib/Model/AbstractModel.php index 8190c13..a1144d1 100644 --- a/lib/Model/AbstractModel.php +++ b/lib/Model/AbstractModel.php @@ -108,7 +108,7 @@ abstract class AbstractModel $this->_data = $data; // calculate a 64 bit checksum to avoid collisions - $this->setId(hash(version_compare(PHP_VERSION, '5.5') > 0 ? 'fnv1a64' : 'fnv164', $data['ct'])); + $this->setId(hash(version_compare(PHP_VERSION, '5.5', '>') ? 'fnv1a64' : 'fnv164', $data['ct'])); } /** diff --git a/tst/Bootstrap.php b/tst/Bootstrap.php index 16f2138..dac2a20 100644 --- a/tst/Bootstrap.php +++ b/tst/Bootstrap.php @@ -111,7 +111,7 @@ class Helper */ public static function getPasteId() { - return version_compare(PHP_VERSION, '5.5') > 0 ? self::$pasteid : hash('fnv164', self::$pasteV2['ct']); + return version_compare(PHP_VERSION, '5.5', '>') ? self::$pasteid : hash('fnv164', self::$pasteV2['ct']); } /**