Skip to content

Conversation

@mspirkov
Copy link
Contributor

No description provided.

@mspirkov mspirkov marked this pull request as ready for review December 12, 2025 10:41
Comment on lines 91 to 92
!preg_match('/[^\w\\\\]/', (string) $this->valueType) ||
substr((string) $this->valueType, -2, 2) === '[]'
Copy link
Member

Choose a reason for hiding this comment

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

do we want to match on [] in the middle of a type?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't quite understand the question

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added this to handle multidimensional arrays correctly. For example, string[][]

@mspirkov
Copy link
Contributor Author

mspirkov commented Dec 13, 2025

I suggest moving all this logic to Array_ before releasing the second version.
It doesn't seem right to me to keep this logic here, when it's only needed for Array_

@mspirkov mspirkov marked this pull request as draft December 13, 2025 19:58
@mspirkov mspirkov marked this pull request as ready for review December 13, 2025 20:06
@mspirkov
Copy link
Contributor Author

I suggest moving all this logic to Array_ before releasing the second version.

Done.

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.

2 participants