Explorar o código

handling older versions in testing

El RIDO %!s(int64=7) %!d(string=hai) anos
pai
achega
7598b28a4a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tst/Bootstrap.php

+ 1 - 1
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']);
     }
 
     /**