Sfoglia il codice sorgente

Removed an erroneous type hint when trying to remove a node from a tree

Tom Van Herreweghe 14 anni fa
parent
commit
a26f2c8579
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      lib/Gedmo/Tree/Repository/TreeNodeRepository.php

+ 2 - 2
lib/Gedmo/Tree/Repository/TreeNodeRepository.php

@@ -353,11 +353,11 @@ class TreeNodeRepository extends EntityRepository
     /**
      * Removes given $node from the tree and reparents its descendants
      * 
-     * @param Node $node
+     * @param object $node
      * @throws RuntimeException - if something fails in transaction
      * @return void
      */
-    public function removeFromTree(Node $node)
+    public function removeFromTree($node)
     {
         $meta = $this->getClassMetadata();
         $config = $this->getConfiguration();