From 020d1f6e30f70ec49806b06929c8e6e052319659 Mon Sep 17 00:00:00 2001 From: Art4 Date: Sun, 8 Dec 2024 21:17:56 +0000 Subject: [PATCH] Ignore missing SMTP class in PHPMailer --- .phpstan.neon | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.phpstan.neon b/.phpstan.neon index e6c0e87c84..2a89c7ae1a 100644 --- a/.phpstan.neon +++ b/.phpstan.neon @@ -40,3 +40,27 @@ parameters: # Ignore missing IMAP\Connection class in PHP <= 8.0 message: '(^Parameter .+ has invalid type IMAP\\Connection\.$)' path: src + + - + # Ignore missing SMTP class in PHPMailer 5.2.21 + # see https://github.com/PHPMailer/PHPMailer/blob/v5.2.21/class.smtp.php + message: '(^.+ an unknown class SMTP\.$)' + path: addon/mailstream/phpmailer + + - + # Ignore missing SMTP class in PHPMailer 5.2.21 + # see https://github.com/PHPMailer/PHPMailer/blob/v5.2.21/class.smtp.php + message: '(^Property .+ has unknown class SMTP as its type\.$)' + path: addon/mailstream/phpmailer + + - + # Ignore missing SMTP class in PHPMailer 5.2.21 + # see https://github.com/PHPMailer/PHPMailer/blob/v5.2.21/class.smtp.php + message: '(^Method .+ has invalid return type SMTP\.$)' + path: addon/mailstream/phpmailer + + - + # Ignore missing SMTP class in PHPMailer 5.2.21 + # see https://github.com/PHPMailer/PHPMailer/blob/v5.2.21/class.smtp.php + message: '(^Instantiated class SMTP not found\.$)' + path: addon/mailstream/phpmailer