From 2e0a5c95e2d9cc941d14db9f2d935b0a31c1adac Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 4 Oct 2025 10:03:33 +0200 Subject: [PATCH] parseH: Remove unused variable Pointed out by PHPStan level 0. --- Mf2/Parser.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Mf2/Parser.php b/Mf2/Parser.php index c7cc02d..599c269 100644 --- a/Mf2/Parser.php +++ b/Mf2/Parser.php @@ -963,7 +963,6 @@ public function parseH(\DOMElement $e, $is_backcompat = false, $has_nested_mf = // Initalise var to store the representation in $return = array(); - $children = array(); $dates = array(); $prefixes = array(); $impliedTimezone = null; @@ -1197,9 +1196,6 @@ public function parseH(\DOMElement $e, $is_backcompat = false, $has_nested_mf = $parsed['coords'] = $coords; } - if (!empty($children)) { - $parsed['children'] = array_values(array_filter($children)); - } return $parsed; }