Skip to content

Commit 6ac378e

Browse files
authored
Fix type casting in HeaderSelector::getHeaderAndWeight
1 parent 81be9cd commit 6ac378e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/openapi-generator/src/main/resources/php-nextgen/HeaderSelector.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class HeaderSelector
143143
if (preg_match('/(.*);\s*q=(1(?:\.0+)?|0\.\d+)$/', $header, $outputArray) === 1) {
144144
$headerData = [
145145
'header' => $outputArray[1],
146-
'weight' => (int)($outputArray[2] * 1000),
146+
'weight' => (int)$outputArray[2] * 1000,
147147
];
148148
} else {
149149
$headerData = [

0 commit comments

Comments
 (0)