We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Related to #3002
Running with Carbon v2:
echo serialize(Carbon::parse('-2 months')->diffAsCarbonInterval());
We obtain:
O:21:"Carbon\CarbonInterval":22:{s:1:"y";i:0;s:1:"m";i:2;s:1:"d";i:0;s:1:"h";i:0;s:1:"i";i:0;s:1:"s";i:0;s:1:"f";d:5.4E-5;s:6:"invert";i:0;s:4:"days";b:0;s:11:"from_string";b:0;s:9:" * tzName";N;s:7:" * step";N;s:22:" * localMonthsOverflow";N;s:21:" * localYearsOverflow";N;s:25:" * localStrictModeEnabled";N;s:24:" * localHumanDiffOptions";N;s:22:" * localToStringFormat";N;s:18:" * localSerializer";N;s:14:" * localMacros";N;s:21:" * localGenericMacros";N;s:22:" * localFormatFunction";N;s:18:" * localTranslator";N;}
Then when running in Carbon v3:
unserialize($string); // $string being the serialized data above
It chokes on tzName (which has been renamed timezoneSetting)
tzName
timezoneSetting
Carbon version: 3.3.1
PHP version: 8.3
The text was updated successfully, but these errors were encountered:
There are similar issues with CarbonPeriod unserialization. However Carbon, CarbonImmutable and CarbonTimeZone are fine.
CarbonPeriod
Carbon
CarbonImmutable
CarbonTimeZone
Sorry, something went wrong.
kylekatarnls
No branches or pull requests
Related to #3002
Running with Carbon v2:
We obtain:
Then when running in Carbon v3:
It chokes on
tzName
(which has been renamedtimezoneSetting
)Carbon version: 3.3.1
PHP version: 8.3
The text was updated successfully, but these errors were encountered: