handling older versions in testing

This commit is contained in:
El RIDO 2019-05-10 22:57:55 +02:00
parent 02f3cc739f
commit 7598b28a4a
No known key found for this signature in database
GPG Key ID: 0F5C940A6BD81F92

View File

@ -111,7 +111,7 @@ class Helper
*/ */
public static function getPasteId() public static function getPasteId()
{ {
return self::$pasteid; return version_compare(PHP_VERSION, '5.5') > 0 ? self::$pasteid : hash('fnv164', self::$pasteV2['ct']);
} }
/** /**