Skip to content

Conversation

@dunglas
Copy link
Member

@dunglas dunglas commented Oct 20, 2025

Improved type conversion API for extensions, to allow converting PHP arrays to strongly typed Go maps and slices such as map[int]string or []string.

Also, this patches improves error handling.

(Extracted from #1927)

@dunglas dunglas changed the title feat: use generics in type functions for better type support feat: allow creating strongly typed slices and maps from PHP values with type utilities Oct 20, 2025
Copy link
Member

@alexandre-daubois alexandre-daubois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to see better error handling on this part and the use of generics. I'm always 👍 on better typing.

Looks good to me if CI agrees!

@dunglas dunglas merged commit f775671 into main Oct 21, 2025
24 checks passed
@dunglas dunglas deleted the feat/better-type-functions branch October 21, 2025 09:20
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.

3 participants