Fix phpstan issues

This commit is contained in:
James Cole
2025-09-07 07:31:00 +02:00
parent b87b99a755
commit 296a64e284
103 changed files with 605 additions and 617 deletions

View File

@@ -45,7 +45,11 @@ class InvitationMail extends Mailable
*/
public function __construct(public string $invitee, public string $admin, public string $url)
{
$this->host = (string) parse_url($this->url, PHP_URL_HOST);
$host = parse_url($this->url, PHP_URL_HOST);
if(is_array($host)) {
$host ='';
}
$this->host = (string) $host;
}
/**