Skip to content

Commit

Permalink
Fix deprecation message appearing in CLI context with PHP 8.1 (#65)
Browse files Browse the repository at this point in the history
* fixed deprecation appearing in CLI context with PHP 8.1

* increased minimum PHP version to 7.0
  • Loading branch information
driehle authored Aug 1, 2022
1 parent 705561b commit a513a50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion class.krumo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}
],
"require": {
"php": ">=5.2.17"
"php": ">=7.0"
},
"require-dev": {
"fabpot/php-cs-fixer": "dev-master",
Expand Down

0 comments on commit a513a50

Please sign in to comment.