Skip to content

Commit dd03ca9

Browse files
committed
Fixed phpstan issues
1 parent 6997861 commit dd03ca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Services/InfoProviderSystem/Providers/OEMSecretsProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ private function customParseValueIncludingUnit(string $name, string $value): arr
11951195
// Check if the value is numeric with a unit
11961196
if (preg_match('/^([\+\-]?\d+(\.\d+)?)([a-zA-Z%°]+)?$/u', $value, $matches)) {
11971197
// It is a number with or without a unit
1198-
$result['value_typ'] = isset($matches[1]) ? (float)$matches[1] : null;
1198+
$result['value_typ'] = (float) $matches[1];
11991199
$result['unit'] = $matches[3] ?? null;
12001200
} else {
12011201
// It's not a number, so we treat it as text

0 commit comments

Comments
 (0)