laravel / jetstream

Tailwind scaffolding for the Laravel framework.
https://jetstream.laravel.com
MIT License
3.95k stars 809 forks source link

PHP7.4.13 Laravel 8 with team error on first load due to TeamInvitationController.php #647

Closed elsodev closed 3 years ago

elsodev commented 3 years ago

Description:

Flare error https://flareapp.io/share/17WEyL3m

File vendor/laravel/jetstream/src/Http/Controllers/TeamInvitationController.php

        return redirect(config('fortify.home'))->banner(

            __('Great! You have accepted the invitation to join the :team team.', ['team' => $invitation->team->name]),

        );

Suggested fix, remove comma from end of first param

        return redirect(config('fortify.home'))->banner(

            __('Great! You have accepted the invitation to join the :team team.', ['team' => $invitation->team->name])

        );

Steps To Reproduce:

  1. Fresh install of Laravel 8 with Jetstream Inertia with teams
  2. Using Valet to run Laravel projects
  3. Will run in this problem immediately on first load
  4. Double confirmed Laravel is running on 7.4.13 using tinker phpversion(); and composer is on PHP7.4.13 as well
driesvints commented 3 years ago

You don't seem to be running PHP on 7.4. Most likely your CLI runs on a different version.