diff --git a/src/Psalm/Checker/FunctionLikeChecker.php b/src/Psalm/Checker/FunctionLikeChecker.php index 1be1aa179..d370078fb 100644 --- a/src/Psalm/Checker/FunctionLikeChecker.php +++ b/src/Psalm/Checker/FunctionLikeChecker.php @@ -794,17 +794,6 @@ abstract class FunctionLikeChecker extends SourceChecker implements StatementsSo $line_number = $docblock_param['line_number']; if (!array_key_exists($param_name, $function_param_names)) { - $code_location->setCommentLine($line_number); - if (IssueBuffer::accepts( - new InvalidDocblock( - 'Parameter $' . $param_name .' does not appear in the argument list for ' . - $cased_method_id, - $code_location - ) - )) { - return false; - } - continue; } diff --git a/tests/AnnotationTest.php b/tests/AnnotationTest.php index 819ee3824..db3d01df8 100644 --- a/tests/AnnotationTest.php +++ b/tests/AnnotationTest.php @@ -83,25 +83,6 @@ class AnnotationTest extends PHPUnit_Framework_TestCase $file_checker->check(true, true, $context); } - /** - * @expectedException \Psalm\Exception\CodeException - * @expectedExceptionMessage InvalidDocblock - somefile.php:3 - Parameter $bar does not appear in the argument list for fooBar - */ - public function testExtraneousDocblockParam() - { - $stmts = self::$parser->parse('check(true, true, $context); - } - /** * @expectedException \Psalm\Exception\CodeException * @expectedExceptionMessage InvalidDocblock