From 7598b28a4a839a0f275f0ff3889f67214beb7e75 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Fri, 10 May 2019 22:57:55 +0200 Subject: [PATCH] handling older versions in testing --- tst/Bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tst/Bootstrap.php b/tst/Bootstrap.php index 0e11b2d..16f2138 100644 --- a/tst/Bootstrap.php +++ b/tst/Bootstrap.php @@ -111,7 +111,7 @@ class Helper */ public static function getPasteId() { - return self::$pasteid; + return version_compare(PHP_VERSION, '5.5') > 0 ? self::$pasteid : hash('fnv164', self::$pasteV2['ct']); } /**