Skip to content

Commit d9ba4d0

Browse files
authored
Fix issue when providing an array with numeric index for client hint factory (#7265)
* Fix issue when providing an array with numeric index for client hint factory * Update ClientHints.php
1 parent 2fb37df commit d9ba4d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ClientHints.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public static function factory(array $headers): ClientHints
236236
$fullVersionList = [];
237237

238238
foreach ($headers as $name => $value) {
239-
switch (\str_replace('_', '-', \strtolower($name))) {
239+
switch (\str_replace('_', '-', \strtolower((string) $name))) {
240240
case 'http-sec-ch-ua-arch':
241241
case 'sec-ch-ua-arch':
242242
case 'arch':

0 commit comments

Comments
 (0)