I have an github action script that executes composer install and returns this error:
Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover PHP Fatal error: Uncaught ErrorException: Method ReflectionParameter::getClass() is deprecated in /home/runner/work/projsiteWebApp/projsiteWebApp/vendor/laravel/framework/src/Illuminate/Container/Container.php:853
This is so weried cause this worked just the other day and i have made no changes at all.
I use laravel 5.6 and php 7.1.2 when i do composer install locally it workes fine
first i got this error message back from my github action
Generating optimized autoload files Illuminate\Foundation\ComposerScripts::postAutoloadDump Carbon 1 is deprecated, see how to migrate to Carbon 2. https://carbon.nesbot.com/docs/#api-carbon-2 You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it. @php artisan package:discover PHP Fatal error: Uncaught ErrorException: Method ReflectionParameter::getClass() is deprecated in /home/runner/work/projsiteWebApp/projsiteWebApp/vendor/laravel/framework/src/Illuminate/Container/Container.php:826
then i ran vendor/bin/upgrade-carbon to i got carbon 2.0 now. And with this comand it upgraded laravel to 5.8 so now i have laravel 5.8 and now the error message is as at the top. Only complaining about the depricated getclass method in container.php
this is the yml file that executes the composer install
name: PR WorkFlow
on:
pull_request:
branches:
- master
- staging
jobs:
app-tests:
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v1
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Install Composer Dependencies
run: composer install
- name: Install NPM Dependencies
run: npm install
- name: Generate key
run: php artisan key:generate