anonymous function
ohtyap opened this issue · comments
Thomas Payer commented
Remove reporting for "anonymous function" (or add an option to disable the reporting).
At the moment anonymous function (in the example below its "array_filter") will be marked because of a missing doctype:
public function someMethode()
{
...
return array_filter($values, function ($var) {
return !empty($var);
});
}
Ezra Pool commented
I'd like to vote for this too, getting lots of failures on anonymous functions.
Vinicius Cruz commented
+1
James Inman commented
+1
Helder Santana commented
+1
Vinicius commented
Yoh dudes, It's a real trouble for me too. Sometimes it's needed coz anonFuncs almost always are so simple that the docType will be a time loss. As the arrayFilter or an sort function for usort(array, anonFunc).
+1
Tarsis Lima commented
+1
Leszek commented
+1