mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-12 02:58:24 +01:00
15 lines
301 B
PHP
15 lines
301 B
PHP
|
<?php
|
||
|
// Polyfill for some PHP 5 functions
|
||
|
function callMe($allable, ...$args)
|
||
|
{
|
||
|
return $allable(...$args);
|
||
|
}
|
||
|
function returnMe($res) {
|
||
|
return $res;
|
||
|
}
|
||
|
if (!function_exists('is_iterable')) {
|
||
|
function is_iterable($var) {
|
||
|
return is_array($var) || $var instanceof Traversable;
|
||
|
}
|
||
|
}
|