From efa1dcd4ab9fe0cefecd0dc88d98aa11be3c1659 Mon Sep 17 00:00:00 2001 From: Jonas Stendahl Date: Wed, 19 Nov 2014 17:02:35 +0100 Subject: [PATCH] Fixed error message for StaticAccess, fixes #169. --- src/main/php/PHPMD/Rule/CleanCode/StaticAccess.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/php/PHPMD/Rule/CleanCode/StaticAccess.php b/src/main/php/PHPMD/Rule/CleanCode/StaticAccess.php index 5f9565d41..09f30768b 100644 --- a/src/main/php/PHPMD/Rule/CleanCode/StaticAccess.php +++ b/src/main/php/PHPMD/Rule/CleanCode/StaticAccess.php @@ -83,7 +83,7 @@ public function apply(AbstractNode $node) continue; } - $this->addViolation($methodCall, array($methodCall->getImage(), $methodCall->getImage())); + $this->addViolation($methodCall, array($className, $node->getName())); } }