Commit: f3090a9edbfe8010e767d1c1bd61b97e285698d7
Author: David Persson | Date: 2009-12-03 23:57:56 +0100
diff --git a/extensions/phpca/Rule/FunctionParametersMustBeDocumentedRule.php b/extensions/phpca/Rule/FunctionParametersMustBeDocumentedRule.php
index 53a3bbe..32ca388 100644
--- a/extensions/phpca/Rule/FunctionParametersMustBeDocumentedRule.php
+++ b/extensions/phpca/Rule/FunctionParametersMustBeDocumentedRule.php
@@ -18,6 +18,13 @@ class FunctionParametersMustBeDocumentedRule extends Rule
$function = $this->file->current();
$signature = array();
+ // Skip anonymous functions
+ $this->file->next();
+
+ if ($this->file->current()->getId() != T_WHITESPACE) {
+ continue;
+ }
+
while ($this->file->current()->getId() != T_OPEN_CURLY) {
$this->file->next();
$token = $this->file->current();