mirror of
https://github.com/danog/psalm.git
synced 2024-12-02 09:37:59 +01:00
f6983fd883
if a composer.json is present and a PHP version requirement is configured, we set the php version to the minimal PHP version that satisfies the composer requirement. Additionally, this adds a `phpVersion` attribute to the <psalm> tag. If that's set, it takes precedence over what has been detected in composer.json. And finally, the --php-version command line flag continues to work and takes precedence over the setting in the <psalm> tag this fixes #2628
6 lines
47 B
JSON
6 lines
47 B
JSON
{
|
|
"require": {
|
|
"php": "7.2|7.3,<8"
|
|
}
|
|
}
|