Skip to content

Commit 858748e

Browse files
derrabusnicolas-grekas
authored andcommitted
Leverage str_contains/str_starts_with
Signed-off-by: Alexander M. Turek <[email protected]>
1 parent 1e136a4 commit 858748e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

DependencyInjection/DebugExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function load(array $configs, ContainerBuilder $container)
5959
$container->getDefinition('var_dumper.command.server_dump')
6060
->setClass(ServerDumpPlaceholderCommand::class)
6161
;
62-
} elseif (0 === strpos($config['dump_destination'], 'tcp://')) {
62+
} elseif (str_starts_with($config['dump_destination'], 'tcp://')) {
6363
$container->getDefinition('debug.dump_listener')
6464
->replaceArgument(2, new Reference('var_dumper.server_connection'))
6565
;

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"php": ">=7.1.3",
2020
"ext-xml": "*",
2121
"symfony/http-kernel": "^3.4|^4.0|^5.0",
22+
"symfony/polyfill-php80": "^1.16",
2223
"symfony/twig-bridge": "^3.4|^4.0|^5.0",
2324
"symfony/var-dumper": "^4.1.1|^5.0"
2425
},

0 commit comments

Comments
 (0)