Index: kernel/classes/ezcontentobjecttreenode.php
===================================================================
--- kernel/classes/ezcontentobjecttreenode.php	(revision 22598)
+++ kernel/classes/ezcontentobjecttreenode.php	(working copy)
@@ -5634,7 +5634,7 @@
      \note Transaction unsafe. If you call several transaction unsafe methods you must enclose
      the calls within a db transaction; thus within db->begin and db->commit.
     */
-    static function hideSubTree( &$node, $modifyRootNode = true )
+    static function hideSubTree( eZContentObjectTreeNode $node, $modifyRootNode = true )
     {
         $nodeID = $node->attribute( 'node_id' );
         $time = time();
@@ -5686,7 +5686,7 @@
      \note Transaction unsafe. If you call several transaction unsafe methods you must enclose
      the calls within a db transaction; thus within db->begin and db->commit.
     */
-    static function unhideSubTree( &$node, $modifyRootNode = true )
+    static function unhideSubTree( eZContentObjectTreeNode $node, $modifyRootNode = true )
     {
         $nodeID = $node->attribute( 'node_id' );
         $nodePath = $node->attribute( 'path_string' );
@@ -5773,17 +5773,11 @@
      \a static
      \return true on success, false otherwise
     */
-    static function clearViewCacheForSubtree( &$node, $clearForRootNode = true )
+    static function clearViewCacheForSubtree( eZContentObjectTreeNode $node, $clearForRootNode = true )
     {
         // Max nodes to fetch at a time
         static $limit = 50;
 
-        if ( !$node )
-        {
-            eZDebug::writeWarning( "No such subtree to clear view cache for" );
-            return false;
-        }
-
         if ( $clearForRootNode )
         {
             $objectID = $node->attribute( 'contentobject_id' );
