From 860eefb98e886ba69c0130e79811f28d394d5712 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Guillaume=20Perr=C3=A9al?= <guillaume.perreal@irstea.fr>
Date: Wed, 9 Mar 2016 16:08:56 +0100
Subject: [PATCH] Correction du NullDecorator

---
 Model/ClassVisitor.php            | 3 ++-
 Model/Decorator/NullDecorator.php | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/Model/ClassVisitor.php b/Model/ClassVisitor.php
index 3a57ad5..9262634 100644
--- a/Model/ClassVisitor.php
+++ b/Model/ClassVisitor.php
@@ -8,6 +8,7 @@
 
 namespace Irstea\PlantUmlBundle\Model;
 
+use Irstea\PlantUmlBundle\Model\Decorator\NullDecorator;
 use Irstea\PlantUmlBundle\Model\Filter\AcceptAllFilter;
 use Irstea\PlantUmlBundle\Model\Namespace_\RootNamespace;
 use Irstea\PlantUmlBundle\Model\Node\Class_;
@@ -91,7 +92,7 @@ class ClassVisitor implements ClassVisitorInterface, WritableInterface
 
     /**
      *
-     * @param \Irstea\PlantUmlBundle\Model\NamespaceInterface $namespace
+     * @param NamespaceInterface $namespace
      * @param ReflectionClass $class
      * @return NodeInterface
      */
diff --git a/Model/Decorator/NullDecorator.php b/Model/Decorator/NullDecorator.php
index e55976f..7e258a5 100644
--- a/Model/Decorator/NullDecorator.php
+++ b/Model/Decorator/NullDecorator.php
@@ -11,6 +11,7 @@ namespace Irstea\PlantUmlBundle\Model\Decorator;
 use Irstea\PlantUmlBundle\Model\ClassVisitorInterface;
 use Irstea\PlantUmlBundle\Model\DecoratorInterface;
 use Irstea\PlantUmlBundle\Model\NodeInterface;
+use ReflectionClass;
 
 /**
  * Description of NullDecorator
@@ -21,7 +22,7 @@ class NullDecorator implements DecoratorInterface
 {
     use \Irstea\PlantUmlBundle\Utils\Singleton;
 
-    public function decorate($className, NodeInterface $node, ClassVisitorInterface $visitor)
+    public function decorate(ReflectionClass $class, NodeInterface $node, ClassVisitorInterface $visitor)
     {
         return $this;
     }
-- 
GitLab