Add PHP type hints for Laravel 10

This commit is contained in:
Shift
2023-02-19 16:19:46 +00:00
committed by HolgerHatGarKeineNode
parent ad55c69b51
commit 98a430c91c
192 changed files with 563 additions and 550 deletions

View File

@@ -26,7 +26,7 @@ class ModelCreatedNotification extends Notification
* @param mixed $notifiable
* @return array
*/
public function via($notifiable)
public function via($notifiable): array
{
return ['mail'];
}
@@ -37,7 +37,7 @@ class ModelCreatedNotification extends Notification
* @param mixed $notifiable
* @return \Illuminate\Notifications\Messages\MailMessage
*/
public function toMail($notifiable)
public function toMail($notifiable): MailMessage
{
return (new MailMessage)
->subject('New model created: '.get_class($this->model))
@@ -55,7 +55,7 @@ class ModelCreatedNotification extends Notification
* @param mixed $notifiable
* @return array
*/
public function toArray($notifiable)
public function toArray($notifiable): array
{
return [
//