Skip to content

Commit 407fad9

Browse files
committed
Suppress issues for now
1 parent c8eb6dd commit 407fad9

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/FakePdoStatement.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,10 @@ private static function processResult(Processor\QueryResult $raw_result): array
253253

254254
foreach ($raw_result->rows as $i => $row) {
255255
foreach ($row as $key => $value) {
256-
$result[$i][\substr($key, 0, 255) ?: ''] = isset($raw_result->columns[$key])
256+
/**
257+
* @psalm-suppress MixedAssignment
258+
*/
259+
$result[$i][\substr($key, 0, 255) ?: ''] = \array_key_exists($key, $raw_result->columns)
257260
? DataIntegrity::coerceValueToColumn($raw_result->columns[$key], $value)
258261
: $value;
259262
}

src/Processor/Expression/FunctionEvaluator.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,9 +454,11 @@ private static function sqlAvg(
454454
throw new \TypeError('Failed assertion');
455455
})();
456456

457+
/**
458+
* @var float|int
459+
*/
457460
$value = Evaluator::evaluate($conn, $scope, $expr, $row, $result);
458461

459-
\assert(\is_int($value) || \is_float($value));
460462
$values[] = $value;
461463
}
462464

0 commit comments

Comments
 (0)