Seems the latest update to 5.6.10 and Carbon 1.24.1 might have a bug got this after running a composer update whilst doing some package development:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 2 updates, 0 removals
- Updating nesbot/carbon (1.23.0 => 1.24.1): Downloading (100%)
- Updating laravel/framework (v5.6.9 => v5.6.10): Downloading (100%)
Writing lock file
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
ErrorException : Declaration of Illuminate\Support\Carbon::__set_state(array $array) should be compatible with Carbon\Carbon::__set_state($state)
If i lock to 5.6.9 the issue goes away.
composer update
Exactly same issue here with same enviorment.
Thanks guys, just seen the PR.
Some solution?
I have the same problem.
Getting the same error
For a momentary solution, you can rollback to Laravel 5.6.9 and it works.
same for LTS 5.5.38 ... rolled back to 5.5.37
Getting the same error with exactly the same environment. Though, setting to 5.6.9 seems to have done the trick.
just rolled back from 5.5.37 to 5.5.36
Yup, had to do the same, rolled back to 5.5.36 just like @them-roc said.
Fixed in 5.5.39 and 5.6.11.
Most helpful comment
same for LTS 5.5.38 ... rolled back to 5.5.37