Skip to content

Conversation

rogervila
Copy link
Owner

@rogervila rogervila commented Sep 12, 2025

Refactored Array Comparison Logic

  • The array comparison logic was refactored for better handling of empty arrays, reducing unnecessary iterations.

  • Optimized array key checks to more efficiently identify differences.

Improved Float Comparison

  • Logic for comparing float values was refactored to use epsilon handling, avoiding false positives or negatives when values are mathematically very close but not exactly equal.

  • Additional edge case tests were added, especially around comparisons involving PHP_FLOAT_MAX and infinity.

@rogervila rogervila self-assigned this Sep 12, 2025
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant