Skip to content
This repository was archived by the owner on Dec 9, 2023. It is now read-only.

Commit c283d46

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

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Command/ServerLogCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
100100
'multiline' => OutputInterface::VERBOSITY_DEBUG <= $output->getVerbosity(),
101101
]));
102102

103-
if (false === strpos($host = $input->getOption('host'), '://')) {
103+
if (!str_contains($host = $input->getOption('host'), '://')) {
104104
$host = 'tcp://'.$host;
105105
}
106106

composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"symfony/dependency-injection": "^3.4|^4.0|^5.0",
2323
"symfony/http-kernel": "^3.4|^4.0|^5.0",
2424
"symfony/polyfill-ctype": "~1.8",
25+
"symfony/polyfill-php80": "^1.16",
2526
"symfony/process": "^3.4.2|^4.0.2|^5.0"
2627
},
2728
"autoload": {

0 commit comments

Comments
 (0)