阅读背景:

如何使用PHPDoc键入提示Callable的参数?

来源:互联网 

I have a method that accepts a callback as a parameter. I would like to provide a parameter signature for the callback as PHPDoc so that my IDE (PHPStorm) can produce valid type hints for functions that are passed to my method, or at least someone looking at the code can determine the signature of the callback they're intended to provide.I have a method that accepts a callback as a pa




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: