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
Thanks for the reproducer.
If you use serialize+unserialize instead of VarExporter, you'll observe the exact same behavior.
This is a PHP bug. Please report it to php-src.
While doing so, please provide them with a standalone reproducer if possible.
The issue I think is that DateTimeImmutable::__serialize/__unserialize doesn't take properties added by child classes into account.
Symfony version(s) affected
6.2.2
Description
The code produced by
VarExporter
on aSafe\DateTimeImmutable
(fromthecodingmachine/safe
) object doesn't work with PHP 8.2. It worked on PHP 8.1.How to reproduce
composer require thecodingmachine/safe
The output with PHP 8.1:
The output with PHP 8.2:
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: