Skip to content

Upgrade nesbot/carbon ^3.0#7230

Closed
kingIZZZY wants to merge 3 commits intohyperf:masterfrom
kingIZZZY:upgrade-carbon-3.0
Closed

Upgrade nesbot/carbon ^3.0#7230
kingIZZZY wants to merge 3 commits intohyperf:masterfrom
kingIZZZY:upgrade-carbon-3.0

Conversation

@kingIZZZY
Copy link
Contributor

@kingIZZZY kingIZZZY commented Dec 31, 2024

nesbot/carbon version 2 under PHP 8.4 throws: Fatal error: During class fetch: Uncaught ErrorException: Carbon\Traits\Date::getDaysFromStartOfWeek(): Implicitly marking parameter $weekStartsAt as nullable is deprecated, the explicit nullable type must be used instead in vendor/nesbot/carbon/src/Carbon/Traits/Date.php:1394
Would be solved by upgrading to at least ^3.0

Maybe could even upgrade all the way to latest ^3.8 ?...

This is also needed to support similar Carbon upgrade for swooletw/laravel-hyperf dependent on:

  • hyperf/validation
  • hyperf/crontab
  • hyperf/database

@weslenteche
Copy link
Contributor

There is already a PR similar to this update #6591

@kingIZZZY
Copy link
Contributor Author

Great - will try continuing efforts on that one
Thanks

@kingIZZZY kingIZZZY closed this by deleting the head repository Jul 8, 2025
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

Successfully merging this pull request may close these issues.

2 participants