Extending a vendor method with "Closure" argument and no signature #4433
-
A dependency of ours has a method that looks something like this: /**
* @param \Closure $renderChildrenClosure
*/
public static function renderStatic(\Closure $renderChildrenClosure); I want to use the new
for my implementation of that method. I've tried annotating the argument in my implementation with
Is there a solution for that problem? (Aside from opening a pull request for the vendor library or suppressing the error) I've created an example on the playground, but I couldn't find an option to enable that flag there. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can probably fix this using a stub file. |
Beta Was this translation helpful? Give feedback.
You can probably fix this using a stub file.