Skip to content

Array type safety#51

Merged
g105b merged 6 commits intomasterfrom
49-array-type-safety
Feb 14, 2025
Merged

Array type safety#51
g105b merged 6 commits intomasterfrom
49-array-type-safety

Conversation

@g105b
Copy link
Member

@g105b g105b commented Feb 14, 2025

This PR makes type checking more consistent when dealing with typed arrays.

If the values can be cast to the requested scalar, they will be cast. Otherwise the appropriate TypeError will be thrown by PHP.

@g105b g105b merged commit 534b593 into master Feb 14, 2025
26 checks passed
@g105b g105b deleted the 49-array-type-safety branch February 14, 2025 16:43
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