Skip to content

Commit b053d5d

Browse files
committed
Only show relevant columns in debug:router
1 parent bd7a1d2 commit b053d5d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/TextDescriptor.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class TextDescriptor extends Descriptor
4141
private const VERB_COLORS = [
4242
'ANY' => 'default',
4343
'GET' => 'blue',
44+
'QUERY' => 'blue',
4445
'HEAD' => 'magenta',
4546
'OPTIONS' => 'blue',
4647
'POST' => 'green',
@@ -616,7 +617,7 @@ private function formatRouterConfig(array $config): string
616617
*/
617618
private function formatMethods(array $methods): string
618619
{
619-
if (count($methods) === 0) {
620+
if ($methods === []) {
620621
$methods = ['ANY'];
621622
}
622623

0 commit comments

Comments
 (0)