Skip to content

Commit fd43948

Browse files
committed
Use str_starts_with instead of strpos
1 parent 948a996 commit fd43948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Httpwg/HttpwgRuleExpectedConverter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private static function parameters(array $parameters): Parameters
9595

9696
foreach ($parameters as $value) {
9797
// Null byte is not supported as first character of property name.
98-
if (strpos($value[0], "\0") === 0) {
98+
if (str_starts_with($value[0], "\0")) {
9999
throw new \UnexpectedValueException();
100100
}
101101

0 commit comments

Comments
 (0)