You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running PHP 8.4 w/ Laravel Herd on a Windows 11 PC. On one fresh/blank Statamic install and two other v5 sites I'm getting this Laravel error across the top of every page:
Deprecated: Return type of Carbon\Traits\Date::createFromTimestamp($timestamp, $tz = null) should either be compatible with DateTime::createFromTimestamp(int|float $timestamp): static, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\Websites\cast98\vendor\nesbot\carbon\src\Carbon\Traits\Timestamp.php on line 29
If I switch to PHP 8.3, the error goes away. Before doing that, I did run composer update which didn't affect the error.
There's also a slew of PHP Deprecation errors/warnings in my CLI which also running PHP 8.4.2 but I think that's out of scope for you gents.
Unfortunatley, we can't upgrade to Carbon 3 without making breaking changes so that'll need to wait for Statamic 6. You can either downgrade to PHP 8.3 or hide any deprecation warnings.
Bug description
I'm running PHP 8.4 w/ Laravel Herd on a Windows 11 PC. On one fresh/blank Statamic install and two other v5 sites I'm getting this Laravel error across the top of every page:
Deprecated: Return type of Carbon\Traits\Date::createFromTimestamp($timestamp, $tz = null) should either be compatible with DateTime::createFromTimestamp(int|float $timestamp): static, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\Websites\cast98\vendor\nesbot\carbon\src\Carbon\Traits\Timestamp.php on line 29
If I switch to PHP 8.3, the error goes away. Before doing that, I did run
composer update
which didn't affect the error.There's also a slew of PHP Deprecation errors/warnings in my CLI which also running PHP 8.4.2 but I think that's out of scope for you gents.
How to reproduce
statamic new
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
The text was updated successfully, but these errors were encountered: