chore: add phpstan static analysis minimum (#4511)
This commit is contained in:
parent
3f7e2a565f
commit
a1a52754ad
67 changed files with 561 additions and 279 deletions
|
@ -26,12 +26,14 @@ class ServerInstalled extends Notification implements ShouldQueue, ReceivesEvent
|
|||
* Handle a direct call to this notification from the server installed event. This is configured
|
||||
* in the event service provider.
|
||||
*/
|
||||
public function handle(Event|Installed $event): void
|
||||
public function handle(Event|Installed $notification): void
|
||||
{
|
||||
$event->server->loadMissing('user');
|
||||
abort_unless($notification instanceof Installed, 500);
|
||||
/* @var Installed $notification */
|
||||
$notification->server->loadMissing('user');
|
||||
|
||||
$this->server = $event->server;
|
||||
$this->user = $event->server->user;
|
||||
$this->server = $notification->server;
|
||||
$this->user = $notification->server->user;
|
||||
|
||||
// Since we are calling this notification directly from an event listener we need to fire off the dispatcher
|
||||
// to send the email now. Don't use send() or you'll end up firing off two different events.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue