1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

use the correct type for float function

This commit is contained in:
orklah 2022-01-05 20:05:56 +01:00
parent 57e054931e
commit c22670d851

View File

@ -1636,7 +1636,7 @@ class AssertionReconciler extends Reconciler
private static function getCompatibleFloatType(
Union $existing_var_type,
array $existing_var_atomic_types,
int $value,
float $value,
bool $is_loose_equality
): ?Union {
foreach ($existing_var_atomic_types as $existing_var_atomic_type) {