Skip to content

Fix: Temporal diff() incorrectly compares cast values as strings - #373

Merged
techmahedy merged 1 commit into
doppar:4.xfrom
techmahedy:issue-4.x
Oct 17, 2026
Merged

techmahedy merged 1 commit into
doppar:4.xfrom
techmahedy:issue-4.x

Conversation

@techmahedy

Copy link
Copy Markdown
Member

Pull Request Checklist

Q A
Branch? 4.x
Bug fix? yes
New feature? no
Deprecations? no
Issues -
License MIT

Description

(string) comparison converts arrays to the string Array, collapses false, null, and '' together, and can throw for objects without __toString(). Consequently, real changes in JSON/array, boolean, null, or object-backed attributes can be omitted or cause an unexpected error.

This PR will fix this issue

@techmahedy techmahedy added the bug Something isn't working label Oct 17, 2026
@techmahedy
techmahedy merged commit afadecc into doppar:4.x Oct 17, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant