Skip to content
Snippets Groups Projects
Commit 4460fa05 authored by Liam Morland's avatar Liam Morland
Browse files

Issue #3471412: Ignore phpstan function-not-found errors about functions that will exist at runtime

parent 3e3b7dc8
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,9 @@ class FillPdfServicePdfBackend extends PdfBackendBase { ...@@ -68,7 +68,9 @@ class FillPdfServicePdfBackend extends PdfBackendBase {
$this->messenger()->addError($result['error']); $this->messenger()->addError($result['error']);
$ret->error = TRUE; $ret->error = TRUE;
} }
// @phpstan-ignore function.notFound (xmlrpc_error() is defined when xmlrpc() is executed)
elseif ($result == FALSE || xmlrpc_error()) { elseif ($result == FALSE || xmlrpc_error()) {
// @phpstan-ignore function.notFound
$error = xmlrpc_error(); $error = xmlrpc_error();
$ret->error = TRUE; $ret->error = TRUE;
$this->messenger()->addError($this->t('There was a problem contacting the FillPDF service. $this->messenger()->addError($this->t('There was a problem contacting the FillPDF service.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment