coding-standard icon indicating copy to clipboard operation
coding-standard copied to clipboard

Sniff to replace call_user_func(<closure>) with (<closure>)()

Open Majkl578 opened this issue 7 years ago • 0 comments

For PHP 5 similar code exists:

call_user_func(function () {
    ...
});

This should be:

(function () {
    ...
})();

Majkl578 avatar Oct 18 '18 17:10 Majkl578