From a513a50577427ff5c5d656be86c511d7e9d938f3 Mon Sep 17 00:00:00 2001 From: Dennis Riehle Date: Mon, 1 Aug 2022 16:45:18 +0200 Subject: [PATCH] Fix deprecation message appearing in CLI context with PHP 8.1 (#65) * fixed deprecation appearing in CLI context with PHP 8.1 * increased minimum PHP version to 7.0 --- class.krumo.php | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/class.krumo.php b/class.krumo.php index 6ac1550..9f571eb 100644 --- a/class.krumo.php +++ b/class.krumo.php @@ -1607,7 +1607,7 @@ private static function cli_dump() { } foreach ($args as $i) { - $out = var_export($i); + $out = var_export($i) ?? ''; print trim($out); if (sizeof($args) >= 1) { diff --git a/composer.json b/composer.json index 5abac28..3781d61 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ } ], "require": { - "php": ">=5.2.17" + "php": ">=7.0" }, "require-dev": { "fabpot/php-cs-fixer": "dev-master",