Skip to content

Commit 1f0a4e6

Browse files
author
Dan Cryer
committed
Removing requirement for anonymous functions to have a doc-block, fixes devdrops#2
1 parent 3358208 commit 1f0a4e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

PhpDocblockChecker/CheckerCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ protected function processFile($file)
151151

152152
if (!$this->skipMethods) {
153153
foreach ($class['methods'] as $methodName => $method) {
154+
if ($methodName == 'anonymous function') {
155+
continue;
156+
}
157+
154158
if (is_null($method['docblock'])) {
155159
$errors = true;
156160

0 commit comments

Comments
 (0)