summaryrefslogtreecommitdiff
path: root/classes/feeds.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-07-31 13:55:09 +0300
committerAndrew Dolgov <[email protected]>2022-07-31 13:55:09 +0300
commit26c67dba776e1e6f8ac40eed70fe79995325863d (patch)
tree862b043fa666e44ed0b2c997a98b1a256b26ee12 /classes/feeds.php
parentd5c043e8467881c00b2cd836f2f37b8479cf0b96 (diff)
update phpstan to 1.8.2
Diffstat (limited to 'classes/feeds.php')
-rwxr-xr-xclasses/feeds.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/classes/feeds.php b/classes/feeds.php
index fee0a7708..8981d6f14 100755
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -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);