Conversation
|
Is there a PHPCS or stan rule for the |
Couldn't find anything after a quick search. |
gotta re-add psalm then :D |
|
Slevomat's ReturnTypeHintSniff at line 213: $methodsWithoutVoidSupport = ['__construct' => true, '__destruct' => true, '__clone' => true]; This means the sniff will not require : void on __clone(), __construct(), or __destruct(). But not sure if it would also remove or alert the additional one. |
|
Seems like a simple sniff addition: php-collective/code-sniffer#48 |
Maybe we should. It's pretty fast and does seem to be quite good at catching generics/templates related issues currently. For e.g. it reported the docblock type mismatch for |
No description provided.