Skip to content

[TypeDeclaration] Skip once typed and else return array_map() on ReturnTypeFromStrictTypedCallRector#4312

Merged
samsonasik merged 2 commits intomainfrom
close-4311
Jun 21, 2023
Merged

[TypeDeclaration] Skip once typed and else return array_map() on ReturnTypeFromStrictTypedCallRector#4312
samsonasik merged 2 commits intomainfrom
close-4311

Conversation

@samsonasik
Copy link
Copy Markdown
Member

Closes #4311

SelrahcD and others added 2 commits June 21, 2023 17:41
When using a native call and returning first, here `array_map`, the `ReturnTypeFromStrictTypedCallRector` uses it directly and doesn't check that later `return` might return another type.
@samsonasik
Copy link
Copy Markdown
Member Author

All checks have passed 🎉 @TomasVotruba I am merging it ;)

@samsonasik samsonasik merged commit 1179698 into main Jun 21, 2023
@samsonasik samsonasik deleted the close-4311 branch June 21, 2023 16:09
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