The expression trans(static::MSG_CARD_EXPIRATION_MONTH_INVALID); of type Illuminate\Contracts\Tra...lator|string|array|null adds the type Illuminate\Contracts\Translation\Translator to the return on line 49 which is incompatible with the return type declared by the interface Illuminate\Contracts\Validation\Rule::message of type string|array.