-
-
Notifications
You must be signed in to change notification settings - Fork 75
Comparing changes
Open a pull request
base repository: symfony/serializer
base: v7.1.1
head repository: symfony/serializer
compare: v7.1.2
- 18 commits
- 7 files changed
- 6 contributors
Commits on Apr 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d920301 - Browse repository at this point
Copy the full SHA d920301View commit details
Commits on Jun 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9a3acd7 - Browse repository at this point
Copy the full SHA 9a3acd7View commit details
Commits on Jun 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 311006a - Browse repository at this point
Copy the full SHA 311006aView commit details
Commits on Jun 9, 2024
-
bug #52699 [Serializer] [PropertyAccessor] Ignore non-collection inte…
…rface generics (mtarld) This PR was merged into the 5.4 branch. Discussion ---------- [Serializer] [PropertyAccessor] Ignore non-collection interface generics | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #41996 #49924 | License | MIT `PhpDocExtractor` and `PhpStanDocExtractor` are following an old version of PSR-5 with used to define collections as the following: ``` generic = collection-type "<" [type-expression "," *SP] type-expression ">" ``` But, it does conflict with non-collection generics. This issue will automatically be solved if the `TypeInfo` is merged in Symfony. But for older versions (<7.1 at least), it needs a fix. ~I was not able to find a proper bug fix without introducing a BC break, so this PR proposes to opt-on the "non-collection generics" parsing, such as `stcClass<int>` for example.~ ~To opt-out from parsing these generics, it'll be required to set `ignore_docblock_generics` in the context. And this key/value will become obsolete as soon as the `TypeInfo` is introduced.~ ~I'm not sure how to proceed though, should we only merge it in 5.4, and 6.3 supposing that the `TypeInfo` might be merged in 7.x? Should we document it only in these branches?~ EDIT: I finally ignored PHPDoc generics that aren't well known collection generic types so that the process will fall back to other resolvers (such as reflection resolver for example) Commits ------- e31aeeb [PropertyAccessor] Fix unexpected collection when generics
Configuration menu - View commit details
-
Copy full SHA for 8cdef77 - Browse repository at this point
Copy the full SHA 8cdef77View commit details
Commits on Jun 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d1ffba3 - Browse repository at this point
Copy the full SHA d1ffba3View commit details -
bug #57187 [Serializer] Fix
ObjectNormalizerwith property path (Hy……peMC) This PR was merged into the 5.4 branch. Discussion ---------- [Serializer] Fix `ObjectNormalizer` with property path | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #54983 | License | MIT Caused by #52917. The `ObjectNormalizer::isAllowedAttribute()` method doesn't work with property paths, this is an attempt to fix the problem. Commits ------- 3857545 [Serializer] Fix `ObjectNormalizer` with property path
Configuration menu - View commit details
-
Copy full SHA for 296df0c - Browse repository at this point
Copy the full SHA 296df0cView commit details -
bug #57341 [Serializer] properly handle invalid data for false/true t…
…ypes (xabbuh) This PR was merged into the 5.4 branch. Discussion ---------- [Serializer] properly handle invalid data for false/true types | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix symfony/symfony#57320 (comment) | License | MIT Commits ------- d35d4a3 properly handle invalid data for false/true types
Configuration menu - View commit details
-
Copy full SHA for 3fd3eca - Browse repository at this point
Copy the full SHA 3fd3ecaView commit details
Commits on Jun 21, 2024
-
* 5.4: (21 commits) [SecurityBundle] Add `provider` XML attribute to the authenticators it’s missing from [DoctrineBridge] Test reset with a true manager Sync php-cs-fixer config file with 7.2 [HttpClient] Fix parsing SSE [Notifier] Fix thread key in GoogleChat bridge [HttpKernel][Security] Fix accessing session for stateless request [Serializer] Fix `ObjectNormalizer` with property path test handling of special "value" constraint option [PhpUnitBridge] Add missing import [FrameworkBundle] Fix setting default context for certain normalizers [57251] Missing translations for Romanian (ro) [ErrorHandler] Fix rendered exception code highlighting on PHP 8.3 [String] Fix #54611 pluralization of -on ending words + singularization of -a ending foreign words [Validator] [UniqueValidator] Use correct variable as parameter in (custom) error message [Messenger] Comply with Amazon SQS requirements for message body fix cssColor HSLA test dataProvider properly handle invalid data for false/true types chore: upgrade class doc add space in error message [Messenger] [Amqp] Handle AMQPConnectionException when publishing a message. ...
Configuration menu - View commit details
-
Copy full SHA for 4017244 - Browse repository at this point
Copy the full SHA 4017244View commit details
Commits on Jun 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 27859b6 - Browse repository at this point
Copy the full SHA 27859b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7dfc0da - Browse repository at this point
Copy the full SHA 7dfc0daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 240a7bb - Browse repository at this point
Copy the full SHA 240a7bbView commit details -
* 6.4: (29 commits) fix tests add missing method fix merge fix test fix merge fix test change test to use a real ObjectManager [Mailer] Document the usage of custom headers in Infobip bridge [SecurityBundle] Add `provider` XML attribute to the authenticators it’s missing from [DoctrineBridge] Test reset with a true manager Sync php-cs-fixer config file with 7.2 [HttpClient] Fix parsing SSE [Notifier] Fix thread key in GoogleChat bridge [HttpKernel][Security] Fix accessing session for stateless request [Serializer] Fix `ObjectNormalizer` with property path test handling of special "value" constraint option [PhpUnitBridge] Add missing import [FrameworkBundle] Fix setting default context for certain normalizers [57251] Missing translations for Romanian (ro) [ErrorHandler] Fix rendered exception code highlighting on PHP 8.3 ...
Configuration menu - View commit details
-
Copy full SHA for 1459271 - Browse repository at this point
Copy the full SHA 1459271View commit details
Commits on Jun 25, 2024
-
* 7.0: (29 commits) fix tests add missing method fix merge fix test fix merge fix test change test to use a real ObjectManager [Mailer] Document the usage of custom headers in Infobip bridge [SecurityBundle] Add `provider` XML attribute to the authenticators it’s missing from [DoctrineBridge] Test reset with a true manager Sync php-cs-fixer config file with 7.2 [HttpClient] Fix parsing SSE [Notifier] Fix thread key in GoogleChat bridge [HttpKernel][Security] Fix accessing session for stateless request [Serializer] Fix `ObjectNormalizer` with property path test handling of special "value" constraint option [PhpUnitBridge] Add missing import [FrameworkBundle] Fix setting default context for certain normalizers [57251] Missing translations for Romanian (ro) [ErrorHandler] Fix rendered exception code highlighting on PHP 8.3 ...
Configuration menu - View commit details
-
Copy full SHA for 5d03a74 - Browse repository at this point
Copy the full SHA 5d03a74View commit details
Commits on Jun 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6266026 - Browse repository at this point
Copy the full SHA 6266026View commit details
Commits on Jun 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7d12e1a - Browse repository at this point
Copy the full SHA 7d12e1aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a61c583 - Browse repository at this point
Copy the full SHA a61c583View commit details
Commits on Jun 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5969918 - Browse repository at this point
Copy the full SHA 5969918View commit details -
bug #57541 [Serializer] [ObjectNormalizer] Use bool filter when FILTE…
…R_BOOL is set (Maximilian Zumbansen) This PR was squashed before being merged into the 7.1 branch. Discussion ---------- [Serializer] [ObjectNormalizer] Use bool filter when FILTER_BOOL is set | Q | A | ------------- | --- | Branch? | 7.1 <!-- see below --> | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Issues | Fix #57540 <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead --> | License | MIT With 7.1 it is possible to map query booleans to php bool parameters (https://symfony.com/blog/new-in-symfony-7-1-misc-improvements-part-3#mapping-boolean-query-string-parameters). But as we found out, this only works when the DTO is initialized via `construct`. Otherwise the `FILTER_BOOL` flag will be ignored and e.g. "false" will be deserialized as `true`. To fix this, I suggest to look for the `FILTER_BOOL` in the context and apply the filter, when the type is `bool` and the data is `string`. Commits ------- 6e657e8 [Serializer] [ObjectNormalizer] Use bool filter when FILTER_BOOL is set
Configuration menu - View commit details
-
Copy full SHA for d207767 - Browse repository at this point
Copy the full SHA d207767View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v7.1.1...v7.1.2