Accessing default_pin on the interface Illuminate\Contracts\Auth\Authenticatable suggest that you code against a concrete implementation. How about adding an instanceof check?
Accessing pin on the interface Illuminate\Contracts\Auth\Authenticatable suggest that you code against a concrete implementation. How about adding an instanceof check?
The expression return trans('requirepin::pin.default') also could return the type Illuminate\Contracts\Translation\Translator|array which is incompatible with the documented return type string.
The expression return trans('requirepin::pin.wrong') also could return the type Illuminate\Contracts\Translation\Translator|array which is incompatible with the documented return type string.