Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LiveComponent] Add missing typehints to HydrationExtensionInterface #1057

Merged
merged 1 commit into from
Aug 23, 2023

Conversation

norkunas
Copy link
Contributor

Q A
Bug fix? no /not sure
New feature? no /not sure
Tickets N/A
License MIT

I have a custom hydration extension that in supports method checks if the provided class has my custom marker attribute through Reflection, but SA complains:

Parameter #1 $objectOrClass of class ReflectionClass constructor expects class-string|T of object, string given.

I have a custom hydration extension that in `supports` method checks if the provided class has my custom marker attribute through Reflection, but SA complains:

> Parameter symfony#1 $objectOrClass of class ReflectionClass constructor expects class-string<T of object>|T of object, string given.
@weaverryan
Copy link
Member

Thanks Tomas!

@weaverryan weaverryan merged commit 5fd8da1 into symfony:2.x Aug 23, 2023
34 of 38 checks passed
@norkunas norkunas deleted the typehint branch August 23, 2023 16:16
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