schmittjoh / serializer

Library for (de-)serializing data of any complexity (supports JSON, and XML)
http://jmsyst.com/libs/serializer
MIT License
2.32k stars 589 forks source link

Add support for UUIDv7 and UUIDv8 classes #1467

Closed mbabker closed 1 year ago

mbabker commented 1 year ago
Q A
Bug fix? no
New feature? yes
Doc updated no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets N/A
License MIT

Symfony 6.2 adds support for UUIDv7 and UUIDv8, this adds those classes to the serialization handler.

mbabker commented 1 year ago

The PHP 8.2 PHPStan issue looks to need a baseline update (the ignored ~Access to an undefined property ReflectionProperty::\$info~ error looks to no longer be in the error list).

The PHP 8.0 PHPStan issue, before being hard cancelled, is because it runs on a Symfony version without the new classes and groans they're referenced unconditionally (which isn't an issue for the serializer runtime itself) and doesn't like the conditionals used to add the extra test cases. I don't do a lot with PHPStan where I have it running across multiple PHP versions (everything OSS I use it on only checks the latest versions of the dependency tree as you start ending up with a lot of false positive incompatibilities otherwise), so I really have no idea how to best deal with those issues as they aren't going to be PHP version specific but Symfony component version specific (PHP 8.0 and earlier are never going to be able to use a Symfony version with those classes, but PHP 8.1 and later can run with a Symfony version where they don't exist).

scyzoryck commented 1 year ago

I will take a look how we can fix it for lower Symfony versions. :)

goetas commented 1 year ago

PHPstan is getting annoying :(