I don't see why it should be an object, the stipBBCode definition is stripBBCode($txt, $len=0, $html = true). So the second parameter should an integer