1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/17489] Ignore Psalm UndefinedMethod issue

Psalm fails with UndefinedMethod issue when a method of a child class
does not exist in parent/abstract/interface class. Ignore the issue.

PHPBB-17489
This commit is contained in:
rxu
2025-04-03 20:57:24 +07:00
parent c23504e3c7
commit d99c3838df
7 changed files with 36 additions and 9 deletions

View File

@@ -227,7 +227,10 @@ class acp_email
$used_lang = $email_list[$i][0]['lang'];
$used_method = $email_list[$i][0]['method'];
/** @var \phpbb\messenger\method\base $messenger_method */
/**
* @var \phpbb\messenger\method\messenger_interface $messenger_method
* @psalm-suppress UndefinedMethod
*/
foreach ($messenger_collection_iterator as $messenger_method)
{
$notify_method = $messenger_method->get_id();
@@ -273,7 +276,10 @@ class acp_email
if ($use_queue)
{
/** @var \phpbb\messenger\method\base $messenger_method */
/**
* @var \phpbb\messenger\method\messenger_interface $messenger_method
* @psalm-suppress UndefinedMethod
*/
foreach ($messenger_collection_iterator as $messenger_method)
{
$messenger_method->save_queue();