mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-16 00:15:35 +00:00
Made PocketMine loader backwards-compatible
This commit is contained in:
parent
812ae09a06
commit
f7de1ede3f
@ -20,9 +20,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
function safe_var_dump(...$params){
|
function safe_var_dump(){
|
||||||
static $cnt = 0;
|
static $cnt = 0;
|
||||||
foreach($params as $var){
|
foreach(func_get_args() as $var){
|
||||||
switch(true){
|
switch(true){
|
||||||
case is_array($var):
|
case is_array($var):
|
||||||
echo str_repeat(" ", $cnt) . "array(" . count($var) . ") {" . PHP_EOL;
|
echo str_repeat(" ", $cnt) . "array(" . count($var) . ") {" . PHP_EOL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user