Explicit PHP version for Composer (#6039)

* Explicit PHP version for Composer
Follow-up of https://github.com/FreshRSS/FreshRSS/pull/6038
Ensure that we do not depend on incompatible libraries like in
https://github.com/FreshRSS/FreshRSS/pull/6030

* Explicit version for PHPStan
Due to changes in types, we only support PHPStan in PHP 8 mode
This commit is contained in:
Alexandre Alapetite 2024-01-15 10:32:30 +01:00 committed by GitHub
parent 74ed1e6c57
commit 52f6c8399b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 7 deletions

View File

@ -44,6 +44,14 @@
"ext-pdo_mysql": "*",
"ext-pdo_pgsql": "*"
},
"config": {
"allow-plugins": {
"phpstan/extension-installer": false
},
"platform": {
"php": "7.4"
}
},
"require-dev": {
"php": ">=7.4",
"ext-phar": "*",
@ -76,10 +84,5 @@
"@translations",
"@phpcbf"
]
},
"config": {
"allow-plugins": {
"phpstan/extension-installer": false
}
}
}

7
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "68ad77514e7c3945e8a7c72dc8e69200",
"content-hash": "4d335c3e4437b2f9ff6b0b75bfeaacf4",
"packages": [],
"packages-dev": [
{
@ -2019,5 +2019,8 @@
"ext-tokenizer": "*",
"ext-xmlwriter": "*"
},
"plugin-api-version": "2.6.0"
"platform-overrides": {
"php": "7.4"
},
"plugin-api-version": "2.3.0"
}

View File

@ -1,6 +1,7 @@
parameters:
# TODO: Increase rule-level https://phpstan.org/user-guide/rule-levels
level: 8
phpVersion: 80399 # TODO: Remove line when moving composer.json to PHP 8+
fileExtensions:
- php
- phtml