Skip to content

Commit 5d1d45d

Browse files
committed
Do not use the nullsafe operator, it is not downgraded to PHP 7.4
1 parent b758b9e commit 5d1d45d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/PHPStan/Php/ComposerPhpVersionFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function testMinVersion(array $composerAutoloaderProjectPaths, bool $comp
3838
$factory = new ComposerPhpVersionFactory($composerAutoloaderProjectPaths, $composerPhp64Bit);
3939
$minVersion = $factory->getMinVersion();
4040

41-
$this->assertSame($expectedMinVersionId, $minVersion?->getVersionId());
41+
$this->assertSame($expectedMinVersionId, $minVersion !== null ? $minVersion->getVersionId() : null);
4242
}
4343

4444
}

0 commit comments

Comments
 (0)