Skip to content

[TypeInfo] Fix Type::fromValue with empty array#60961

Merged
nicolas-grekas merged 1 commit intosymfony:7.3from
norkunas:fix-fromValue-with-empty-array
Jun 30, 2025
Merged

[TypeInfo] Fix Type::fromValue with empty array#60961
nicolas-grekas merged 1 commit intosymfony:7.3from
norkunas:fix-fromValue-with-empty-array

Conversation

@norkunas
Copy link
Copy Markdown
Contributor

Q A
Branch? 7.3
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #...
License MIT

Without this, it fails with Symfony\Component\TypeInfo\Exception\InvalidArgumentException: "int|string" is not a valid list key type.

Comment thread src/Symfony/Component/TypeInfo/Tests/TypeFactoryTest.php
@nicolas-grekas
Copy link
Copy Markdown
Member

Thank you @norkunas.

@nicolas-grekas nicolas-grekas merged commit d8a673a into symfony:7.3 Jun 30, 2025
8 of 11 checks passed
@norkunas norkunas deleted the fix-fromValue-with-empty-array branch June 30, 2025 12:34
@fabpot fabpot mentioned this pull request Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants