Skip to content

Conversation

karol-karpinski
Copy link

https://fandom.atlassian.net/browse/PLATFORM-10784

This PR introduces a temporary fix for PHP Notice: Indirect modification of overloaded property message flood in logs.

Dev notes

As it turned out, there is no API in includes/parser/ParserOutput.php class that is equivalent to what extensions/DynamicPageList/includes/Hooks.php does. Temporary solution is to use the deprecated methods ParserOutput::&getLinks() and ParserOutput::&getTemplates() as they give direct access to now private arrays ParserOutput::mLinks and ParserOutput::mTemplates. These methods are marked deprecated from version 1.43 so until DynamicPageList maintainers introduce the solution the implemented approach is good enough.

@adpaste adpaste merged commit cb95b6d into REL1_43 Mar 11, 2025
@adpaste adpaste deleted the PLATFORM-10784-php-notice-fix branch March 11, 2025 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants