lakejason0 / mediawiki-skins-Lakeus

My first MediaWiki skin.
GNU General Public License v3.0
9 stars 5 forks source link

#32 | Fix "access to private variable of parent class" in SkinLakeus.php #32

Closed MXP2095onetechguy closed 5 months ago

MXP2095onetechguy commented 5 months ago

SkinLakeus.php declaration fix.

This is my first time doing an actual pull request.

So, this is a fix to declare the $templateParser property in the SkinLakeus.php file, specifically the class.
This fix was created in response to a deprecation warning.

Deprecation warning that says that you are trying to declare a dynamic property

And if you are asking what MediaWiki am I running this on, here is a screenshot.

MediaWiki 1.41.0 screenshot of version

I am indeed running MediaWiki 1.41.0

lakejason0 commented 5 months ago

@winstonsung help me

lakejason0 commented 5 months ago

Somehow I couldn't reproduce this on my own site somehow. Checked similar codes and they declare these as private. I know nothing of PHP unfortunately so idk what's happening.

MXP2095onetechguy commented 5 months ago

The machine is a portable version of XAMPP on windows. This might help.

I don't really know a lot about php, just enough to fix tid-bits like this. This is just to fix the notice.

lakejason0 commented 5 months ago

Searched on the web and it seems like it’s introduced in PHP 8.2; 8.1 is used on my site.

winstonsung commented 5 months ago

(Testing...)

MXP2095onetechguy commented 5 months ago

Let me fix the missing doc tags.

MXP2095onetechguy commented 5 months ago

Missing doc tag added.

MXP2095onetechguy commented 5 months ago

let me go back and fix those things reported by phpcs again.

MXP2095onetechguy commented 5 months ago

So, I fixed whatever was causing workflows to fail from what I know.

winstonsung commented 5 months ago

Thanks for the report!

Issue identified.

We could just drop the weird BagOStuff $localServerObjectCache dependency as it seems to be duplicated from Mirage skin without any clear reason.

Mirage skin used it for a configuration option for development purpose, but we don't have it here.

winstonsung commented 5 months ago

@MXP2095onetechguy

Please confirm whether this issue still exists in the latest commit. Thanks.

MXP2095onetechguy commented 5 months ago

@MXP2095onetechguy

Please confirm whether this issue still exists in the latest commit. Thanks.

I will try to do so ASAP.

MXP2095onetechguy commented 5 months ago

Problem solved.

winstonsung commented 5 months ago

Good to hear that.

Thanks for the confirmation.