Skip to content
New issue

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

Remove unnecessary denormalizer exception checks and deprecated funct… #577

Merged
merged 3 commits into from
Mar 22, 2024

Conversation

Spomky
Copy link
Contributor

@Spomky Spomky commented Mar 22, 2024

…ions

This commit removes unnecessary checks for denormalizer nullity and throws subsequent exceptions. The checks were removed in various Denormalizer files, resulting in a cleaner codebase.

Target branch: 4.8.x
Resolves issue #

  • It is a Bug fix
  • It is a New feature
  • Breaks BC
  • Includes Deprecations

…ions

This commit removes unnecessary checks for denormalizer nullity and throws subsequent exceptions. The checks were removed in various Denormalizer files, resulting in a cleaner codebase.
@Spomky Spomky added bug Something isn't working dependencies Pull requests that update a dependency file labels Mar 22, 2024
@Spomky Spomky added this to the 4.8.3 milestone Mar 22, 2024
@Spomky Spomky self-assigned this Mar 22, 2024
Spomky added 2 commits March 22, 2024 21:36
The phpstan-baseline.neon file has been updated to reflect recent changes. Messages that referenced a strict comparison between a DenormalizerInterface and null have been removed as these were always evaluating to false. Additionally, a new message has been added in the path of FidoAllianceCompliantMetadataService.
This commit refactors the 'denormalize' method in the AuthenticationExtensionsDenormalizer class, ensuring that all data passed to the method is an array by using a new assert statement. Changes have also been made to the AuthenticationExtensions class, updating type hints arrays. These improvements in type validation have led to the removal of certain error messages from the phpstan-baseline.neon file.
Copy link

@Spomky Spomky merged commit b001705 into 4.8.x Mar 22, 2024
15 checks passed
@Spomky Spomky deleted the bugs/deprecations branch March 22, 2024 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect deprecations TypeError in AuthenticationExtensionsDenormalizer
1 participant