This website requires JavaScript.
Explore
Help
Sign In
danog
/
psalm
Watch
1
Star
0
Fork
0
You've already forked psalm
mirror of
https://github.com/danog/psalm.git
synced
2024-12-05 13:10:49 +01:00
Code
Issues
Projects
Releases
Wiki
Activity
ff168a9c7a
psalm
/
tests
/
fixtures
/
ComposerPhpVersion
/
composer.json
6 lines
50 B
JSON
Raw
Normal View
History
Unescape
Escape
allow setting php version from config or composer.json 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
2020-01-30 08:20:23 +01:00
{
"require"
:
{
Fix composer major.minor version detection (fixes #5415) (#5416) * Fix composer major.minor version detection (fixes #5415) * Add PHP 8 polyfill dependency. * Fix version check.
2021-03-18 14:42:01 +01:00
"php"
:
"^7.2.1|7.3,<8"
allow setting php version from config or composer.json 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
2020-01-30 08:20:23 +01:00
}
}
Reference in New Issue
Copy Permalink