Accessing smsDriver on the interface HoomanMirghasemi\Sms\Contracts\SmsEvent suggest that you code against a concrete implementation. How about adding an instanceof check?
Loading history...
21
}
22
23
/**
24
* This method should call in all driver send method in last line.
25
*
26
* @return void
27
*/
28
protected function saveLogInDb(Driver $smsDriver): void