@@ -226,8 +226,7 @@ private static function executeTag( $input, array $args, Parser $parser, PPFrame
226
226
if ( $ reset ['categories ' ] ?? false ) {
227
227
$ saveCategories = array_combine (
228
228
$ parserOutput ->getCategoryNames (),
229
- array_map ( static fn ( $ value ) =>
230
- $ parserOutput ->getCategorySortKey ( $ value ),
229
+ array_map ( static fn ( $ value ) => $ parserOutput ->getCategorySortKey ( $ value ),
231
230
$ parserOutput ->getCategoryNames ()
232
231
)
233
232
);
@@ -628,13 +627,15 @@ public static function endEliminate( $parser, &$text ) {
628
627
continue ;
629
628
}
630
629
631
- $ parser ->getOutput ()->mLinks [$ nsp ] = array_diff_assoc (
632
- $ parserLinks [$ nsp ],
630
+ // @phan-suppress-next-line PhanDeprecatedFunction
631
+ $ mLinks = $ parser ->getOutput ()->getLinks ();
632
+ $ mLinks [$ nsp ] = array_diff_assoc (
633
+ $ link ,
633
634
self ::$ createdLinks [0 ][$ nsp ]
634
635
);
635
636
636
- if ( count ( $ parserLinks [ $ nsp ] ) == 0 ) {
637
- unset( $ parser -> getOutput ()-> mLinks [$ nsp ] );
637
+ if ( count ( $ link ) == 0 ) {
638
+ unset( $ mLinks [$ nsp ] );
638
639
}
639
640
}
640
641
}
@@ -646,13 +647,15 @@ public static function endEliminate( $parser, &$text ) {
646
647
continue ;
647
648
}
648
649
649
- $ parser ->getOutput ()->mTemplates [$ nsp ] = array_diff_assoc (
650
- $ parserTemplates [$ nsp ],
650
+ // @phan-suppress-next-line PhanDeprecatedFunction
651
+ $ mTemplates = $ parser ->getOutput ()->getTemplates ();
652
+ $ mTemplates [$ nsp ] = array_diff_assoc (
653
+ $ tpl ,
651
654
self ::$ createdLinks [1 ][$ nsp ]
652
655
);
653
656
654
- if ( count ( $ parserTemplates [ $ nsp ] ) == 0 ) {
655
- unset( $ parser -> getOutput ()-> mTemplates [$ nsp ] );
657
+ if ( count ( $ tpl ) == 0 ) {
658
+ unset( $ mTemplates [$ nsp ] );
656
659
}
657
660
}
658
661
}
0 commit comments