Framework: Carbon Exception 5.6.10

Created on 9 Mar 2018  路  12Comments  路  Source: laravel/framework

  • Laravel Version: 5.6.10
  • PHP Version: 7.2
  • Database Driver & Version: MySQL 5.7

Description:

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.

Steps To Reproduce:

composer update

Most helpful comment

same for LTS 5.5.38 ... rolled back to 5.5.37

All 12 comments

Exactly same issue here with same enviorment.

Thanks guys, just seen the PR.

https://github.com/laravel/framework/pull/23464

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SachinAgarwal1337 picture SachinAgarwal1337  路  3Comments

CupOfTea696 picture CupOfTea696  路  3Comments

JamborJan picture JamborJan  路  3Comments

RomainSauvaire picture RomainSauvaire  路  3Comments

ghost picture ghost  路  3Comments