Extension for dynamic non-magic method signature #10972
-
Hi, In Drupal, building forms follows a particular pattern using a form builder service. You call the Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey, please share an example from https://phpstan.org/try and show the code with the problem and what behaviour you expect instead. Thanks! |
Beta Was this translation helpful? Give feedback.
Right now your only option is to write a custom rule for this use-case.
In the future there might be some PHPDoc types such as
method-parameters
andmethod-return-type
. See: #9316 and https://twitter.com/OndrejMirtes/status/1606017239882338304.