Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning message following any command on fresh install (but all seems to be working) #69

Closed
Nathanjms opened this issue Dec 13, 2022 · 2 comments

Comments

@Nathanjms
Copy link

Nathanjms commented Dec 13, 2022

  • Forge CLI Version: 1.4.0
  • PHP Version: 8.2.0
  • Operating System: Darwin (MacBook M2)
  • Error Message: Carbon\Carbon::setLastErrors(): Argument #1 ($lastErrors) must be of type array, bool given, called in phar:///Users/nathanjames/.composer/vendor/laravel/
    forge-cli/builds/forge/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php on line 98.

Description:

After each command, I am receiving the error message above. The actual commands all seem to be working as expected (eg. I can run forge ssh and get onto the server correctly, but they all show the below after running:

image

When running forge -h, the error message does not display.

This was the first use of composer on this machine, if that has any relevance.

There's a high chance this is something specific to my machine, but thought it'd be better to report just in case.

Update:

I've downgraded to php8.1 and the error has dissapeared - so it's definitely an issue with php8.2 compatability

Steps To Reproduce:

  • Install PHP 8.2
  • Install composer
  • Install forge

Following this, running even just forge gives this error, as well as running any forge command (e.g. forge server:current and forge ssh).

@driesvints
Copy link
Member

I released v1.4.1 with an update for Carbon that should fix this.

@Nathanjms
Copy link
Author

I released v1.4.1 with an update for Carbon that should fix this.

I updated to v1.4.1 and switched back to php 8.2.0, and can confirm it's no longer showing the error, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants