1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Fix falsable issue with phpversion

This commit is contained in:
robchett 2023-10-09 22:05:38 +01:00
parent b109cc8bdf
commit f6d4a98063

View File

@ -244,7 +244,7 @@ final class ErrorBaseline
$filesNode->setAttribute('php-version', implode(';' . "\n\t", [...[
('php:' . PHP_VERSION),
], ...array_map(
static fn(string $extension): string => $extension . ':' . phpversion($extension),
static fn(string $extension): string => $extension . ':' . (string) phpversion($extension),
$extensions,
)]));
}