Virtual interface using apb,wb,,spi giving some unexpected error

In reply to chr_sue:


   function void connect_phase (uvm_phase phase);
      super.connect_phase (phase);

is the 2nd line is mandatory or optional.