Skip to content

Conversation

@WouterRademaker
Copy link
Contributor

make the call to addModuleStyles an array.

@WouterRademaker WouterRademaker mentioned this pull request Aug 1, 2025
}
foreach ( $this->getComponentLibrary()->getModulesFor( $activeComponent ) as $module ) {
$parser->getOutput()->addModuleStyles( $module, $skin );
$parser->getOutput()->addModuleStyles( [ $module, $skin ] );
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passing in $skin does not make sense. $skin does not refer to a module. I am not sure whether MW had a skin parameter long ago, or if something else was intended here, but this was already ignored in addModuleStyles( $module, $skin ) because the deprecated code used only the first parameter.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The extension works without passing in $skin, but PHPUnit fails.
I don't know anything about PHPUnit.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests are actually fine. The failures on REL1_43 and master are expected. It just seems like a test environment issue, but I wasn't able to fix it last time I looked (#59).

@malberts malberts merged commit fc93ca7 into oetterer:master Aug 2, 2025
5 of 7 checks passed
@WouterRademaker WouterRademaker deleted the fix_hookshandler branch August 9, 2025 13:38
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.

2 participants