Skip to content

Is it possible to change a type of method parameter in extensions? #6850

Answered by ondrejmirtes
canvural asked this question in Support
Discussion options

You must be logged in to vote

If it was a magic method it'd be easy to do so with returning custom MethodReflection with correct parameter types.

Exactly, this is the only chance to do that :(

I think this looks like a similar problem to larastan/larastan#1110 so maybe it should cover that too.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by canvural
Comment options

You must be logged in to vote
1 reply
@ondrejmirtes
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
3 participants