Composer lock requires PHP 8.4, but the build targets PHP 8.1
This project needs PHP ^8.4, but it was built with PHP 8.1.0; overridden via config.platform, actual: 8.4.25.
TypeErrorAn error that occurred in the deployed application. It is not necessarily a PanelAlpha Engine error, but we keep working on improvements so you run into fewer of them.
Seen14 times · 4 variants
WherePhp
StatusObservedOur team will look into this soon, verify the cause and try to fix it in an upcoming release.
Why it happens
The locked dependency aura/sql 6.0.0 requires PHP ^8.4. Composer is using PHP 8.1.0 from the project's config.platform setting, even though the build image provides PHP 8.4.25. As a result, the lock file is rejected before the application starts.
What the log looks like
Deploy log
Resolving PHP dependencies on hostInstalling dependencies from lock fileVerifying lock file contents can be installed on current platform.Your lock file does not contain a compatible set of packages.Problem 1- aura/sql 6.0.0 requires php ^8.4- your php version (8.1.0; overridden via config.platform, actual: 8.4.25) does not satisfy that requirement.Deploy failed: This project needs PHP ^8.4, but it was built with PHP 8.1.0