solspace/craft3-commons

Freeform dependency preventing PHP > ^7.2

Closed this issue · 1 comments

Sorry to add the issue here, but issues are disabled on Freeform.

Freeform uses phpspreadsheet, which requires PHP 7.2 (originally from 2017) and prevents us using the latest PHP version.

Problem 1
- Installation request for phpoffice/phpspreadsheet ^1.14.1 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].
- phpoffice/phpspreadsheet 1.14.1 requires php ^7.2 -> your PHP version (7.4.6) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
Problem 2
- phpoffice/phpspreadsheet 1.14.1 requires php ^7.2 -> your PHP version (7.4.6) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- solspace/craft-freeform 3.7.4 requires phpoffice/phpspreadsheet ^1.6.0 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].
- Installation request for solspace/craft-freeform ^3.7.4 -> satisfiable by solspace/craft-freeform[3.7.4].

I was able to get around this by changing the platform section of my composer file to:

"config": {
"optimize-autoloader": true,
"platform": {
"php": "7.4"
}
}