Warn user about functions and methods that do not define a return type:
// Regex: "function.*\)\s*\{"
function foo() { ... } // wrong
function foo() : int { ... } // right
Since PHP 7.0 does not have a void return type, those warning should not return an error exit status.
Warn user about functions and methods that do not define a return type:
Since PHP 7.0 does not have a
voidreturn type, those warning should not return an error exit status.