Skip to content

Commit

Permalink
use var_export
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt committed May 25, 2024
1 parent 344adfd commit 14c808b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"giggsey/libphonenumber-for-php": "^8.13",
"egulias/email-validator": "^4.0",
"tempest/highlight": "^2.0",
"symfony/var-exporter": "^7.0",
"psr/log": "^3.0",
"symfony/var-dumper": "^7.0",
"monolog/monolog": "^3.6"
},
"require-dev": {
Expand All @@ -16,8 +16,7 @@
"phpstan/phpstan": "^1.10.0",
"friendsofphp/php-cs-fixer": "^3.21",
"phpat/phpat": "^0.10.14",
"spaze/phpstan-disallowed-calls": "^3.1",
"symfony/var-dumper": "^7.0"
"spaze/phpstan-disallowed-calls": "^3.1"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Support/VarExport/Debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function log(mixed ...$input): void
if ($item instanceof Stringable) {
$output = (string) $item;
} else {
$output = VarExporter::export($item);
$output = var_export($item, true);
}

fwrite($handle, "[{$key}] {$output}" . PHP_EOL);
Expand Down

0 comments on commit 14c808b

Please sign in to comment.