Skip to content

Commit

Permalink
Merge pull request #5619 from kenjis/fix-Toolbar/Collectors/Routes
Browse files Browse the repository at this point in the history
fix: debug toolbar Routes Params output
  • Loading branch information
kenjis authored Jan 27, 2022
2 parents f843d00 + 3c428a4 commit 933502c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions system/Debug/Toolbar/Collectors/Routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,13 @@ public function display(): array

foreach ($rawParams as $key => $param) {
$params[] = [
'name' => $param->getName(),
'name' => '$' . $param->getName() . ' = ',
'value' => $router->params()[$key] ??
('<empty>&nbsp| default: ' . var_export($param->isDefaultValueAvailable() ? $param->getDefaultValue() : null, true)),
' <empty> | default: '
. var_export(
$param->isDefaultValueAvailable() ? $param->getDefaultValue() : null,
true
),
];
}

Expand Down

0 comments on commit 933502c

Please sign in to comment.