Closed SanthoshSiddegowda closed 1 year ago
Thanks! I'm not sure we want to upgrade all projects to PHP 8.1 by default 🤔
Most users are still on PHP 8.0: https://packagist.org/packages/bref/laravel-bridge/php-stats#1
Is the latest version of Laravel PHP 8.1 only?
@mnapoli Apologies, There is a misunderstanding on my end
In my local setup, the PHP version is 8.1
PHP 8.1.11 (cli) (built: Sep 29 2022 20:02:53) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.11, Copyright (c) Zend Technologies with Zend OPcache v8.1.11, Copyright (c), by Zend Technologies
Since I am using composer(v2), we have Platform Check. so basically while making serverless files I unknowingly made the minimum version 8.1,
So technically, the layer version should be identical to the PHP version of which you are using
Since most of the users are still in PHP 8.0 no need for any change.
Closing the PR
Reference: https://php.watch/articles/composer-platform-check
Also useful: https://github.com/composer/composer/issues/10282 https://github.com/composer/composer/issues/10282
Got it, thanks for the details!
Issue: By default, we are configuration copied from this file path, when I run the
php artisan vendor:publish --tag=serverless-config
and deploy I am getting this below errorReason : As I checked the cloud watch log, I found below issue
Fix: Updated the layer to
php-81-fpm
fromphp-80-fpm
to support current laravel version dependenciesAttachments:
![Screenshot 2022-10-28 at 12 56 40 PM](https://user-images.githubusercontent.com/37912771/198531201-7d573dc7-2b79-4ed7-8bd6-ea39f875a113.png)