update phpstan to 1.8.2

This commit is contained in:
Andrew Dolgov
2022-07-31 13:55:09 +03:00
parent d5c043e846
commit 26c67dba77
34 changed files with 1442 additions and 859 deletions

View File

@@ -248,11 +248,12 @@ class Feeds extends Handler_Protected {
function ($result, $plugin) use (&$line, &$button_doc) {
if ($result && $button_doc->loadXML($result)) {
/** @var DOMElement|null */
/** @var DOMElement|null $child */
$child = $button_doc->firstChild;
if ($child) {
do {
/** @var DOMElement|null $child */
$child->setAttribute('data-plugin-name', get_class($plugin));
} while ($child = $child->nextSibling);
@@ -271,11 +272,12 @@ class Feeds extends Handler_Protected {
function ($result, $plugin) use (&$line, &$button_doc) {
if ($result && $button_doc->loadXML($result)) {
/** @var DOMElement|null */
/** @var DOMElement|null $child */
$child = $button_doc->firstChild;
if ($child) {
do {
/** @var DOMElement|null $child */
$child->setAttribute('data-plugin-name', get_class($plugin));
} while ($child = $child->nextSibling);