Skip to content

fix: deduplicate union type checks#161

Open
alexchexes wants to merge 1 commit intofix/code-stylefrom
cdx/refactor-duplication-check-in-methods__2025-08-16__09-07-26
Open

fix: deduplicate union type checks#161
alexchexes wants to merge 1 commit intofix/code-stylefrom
cdx/refactor-duplication-check-in-methods__2025-08-16__09-07-26

Conversation

@alexchexes
Copy link
Owner

Summary

  • avoid duplicate array/object guards in union conversions
  • trim & deduplicate union discriminator expressions

Testing

  • UPDATE_SNAPSHOTS=1 vendor/bin/phpunit
  • vendor/bin/phpunit
  • vendor/bin/phpstan --memory-limit=512M (fails: Match expression does not handle remaining value)

https://chatgpt.com/codex/tasks/task_e_68a041c9172c832daff377cae90fbea8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant