dancryer / php-docblock-checker

A simple tool for checking that your PHP classes and methods use docblocks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

anonymous function

ohtyap opened this issue · comments

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);
        });
}

I'd like to vote for this too, getting lots of failures on anonymous functions.

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

+1