ikechukwukalu /
sanctumauthstarter
| 1 | <?php |
||||
| 2 | |||||
| 3 | namespace Ikechukwukalu\Sanctumauthstarter\Notifications; |
||||
| 4 | |||||
| 5 | use Illuminate\Notifications\Messages\MailMessage; |
||||
| 6 | use Ikechukwukalu\Sanctumauthstarter\Models\TestUser; |
||||
| 7 | use App\Models\User; |
||||
|
0 ignored issues
–
show
|
|||||
| 8 | |||||
| 9 | class WelcomeUser extends UserNotification |
||||
| 10 | { |
||||
| 11 | private TestUser|User $user; |
||||
| 12 | |||||
| 13 | public function __construct(TestUser|User $user) |
||||
| 14 | { |
||||
| 15 | $this->user = $user; |
||||
| 16 | } |
||||
| 17 | |||||
| 18 | public function toMail($notifiable) |
||||
| 19 | { |
||||
| 20 | return (new MailMessage) |
||||
| 21 | ->subject(trans('sanctumauthstarter::notify.welcome.subject', ['name' => $this->user->name])) |
||||
| 22 | ->line(trans('sanctumauthstarter::notify.welcome.introduction', ['name' => $this->user->name])) |
||||
| 23 | ->line(trans('sanctumauthstarter::notify.welcome.message')) |
||||
| 24 | ->action(trans('sanctumauthstarter::notify.welcome.action'), url(config('sanctumauthstarter.notification_url.registration.welcome_user'))) |
||||
|
0 ignored issues
–
show
It seems like
url(config('sanctumauths...tration.welcome_user')) can also be of type Illuminate\Contracts\Routing\UrlGenerator; however, parameter $url of Illuminate\Notifications...SimpleMessage::action() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 25 | ->line(trans('sanctumauthstarter::notify.welcome.complimentary_close')); |
||||
| 26 | } |
||||
| 27 | } |
||||
| 28 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths