8000 [VarDumper] Don't pass null to parse_url() by derrabus · Pull Request #41344 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[VarDumper] Don't pass null to parse_url() #41344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[VarDumper] Don't pass null to parse_url()
  • Loading branch information
derrabus committed May 20, 2021
commit f1de7a095e27de2efde1f7cb8ecb1f157ca08b93
2 changes: 1 addition & 1 deletion src/Symfony/Component/VarDumper/VarDumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private static function register(): void
$dumper = new CliDumper();
break;
case 'server' === $format:
case 'tcp' === parse_url($format, \PHP_URL_SCHEME):
case $format && 'tcp' === parse_url($format, \PHP_URL_SCHEME):
$host = 'server' === $format ? $_SERVER['VAR_DUMPER_SERVER'] ?? '127.0.0.1:9912' : $format;
$dumper = \in_array(\PHP_SAPI, ['cli', 'phpdbg'], true) ? new CliDumper() : new HtmlDumper();
$dumper = new ServerDumper($host, $dumper, self::getDefaultContextProviders());
Expand Down
0