forked from meditorial/mailkit-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
PHPStan level 5 reports unsafe new static() usage in several classes. This can lead to unexpected behavior when classes are extended.
Found running PHPStan 2.x with PHP 8.4.
Affected files
DataObjects/Attachment.php— lines 71, 79DataObjects/MailingList.php— line 89DataObjects/SubscribeWebHook.php— line 51DataObjects/UnsubscribeWebHook.php— line 55RPC/Responses/XmlSuccessRpcResponse.php— lines 44, 48, 52, 56Results/SendMailResult.php— line 72
Reference
https://phpstan.org/blog/solving-phpstan-error-unsafe-usage-of-new-static
How to reproduce
vendor/bin/phpstan analyse --level=5 src/Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working