siblings() public method

Returns the siblings nodes of the current selection.
public siblings ( ) : Crawler
return Crawler A Crawler instance with the sibling nodes
 /**
  * @param Crawler $block
  */
 public function climbToHighestParent(Crawler &$block)
 {
     while ($block->siblings()->getNode(0) == null) {
         $block = $block->parents()->first();
     }
 }