mirror of
https://github.com/itflow-org/itflow
synced 2026-06-15 22:31:05 +00:00
Allow PHP-8.2 and up Compatibility instead of just PHP-8.4
This commit is contained in:
@@ -30,3 +30,17 @@ if (!function_exists('array_first')) {
|
||||
if (!function_exists('array_last')) {
|
||||
function array_last(array $array) { return p\Php85::array_last($array); }
|
||||
}
|
||||
|
||||
if (extension_loaded('intl') && !function_exists('locale_is_right_to_left')) {
|
||||
function locale_is_right_to_left(string $locale): bool { return p\Php85::locale_is_right_to_left($locale); }
|
||||
}
|
||||
|
||||
if (\PHP_VERSION_ID >= 80000) {
|
||||
require __DIR__.'/bootstrap80.php';
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (extension_loaded('intl') && !function_exists('grapheme_levenshtein')) {
|
||||
function grapheme_levenshtein(string $string1, string $string2, int $insertion_cost = 1, int $replacement_cost = 1, int $deletion_cost = 1, string $locale = '') { return p\Php85::grapheme_levenshtein($string1, $string2, $insertion_cost, $replacement_cost, $deletion_cost); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user