Skip to content

Minor code cleanup - fixed a bunch of wrong type annotations, and also replaced 'this' wit…#42

Open
hostep wants to merge 1 commit intoPayU-EMEA:masterfrom
baldwin-agency:fixed-bunch-of-wrong-type-annoations-and-other-minor-things
Open

Minor code cleanup - fixed a bunch of wrong type annotations, and also replaced 'this' wit…#42
hostep wants to merge 1 commit intoPayU-EMEA:masterfrom
baldwin-agency:fixed-bunch-of-wrong-type-annoations-and-other-minor-things

Conversation

@hostep
Copy link

@hostep hostep commented Sep 17, 2025

…h 'block' variable in phtml files.

While working on #41 I noticed some minor warnings phpstan found about wrong type annotations in various files.
These got fixed here.

I also replaced the incorrect $this-> calls with $block-> calls in phtml files. It does work with $this but that usage is discouraged in Magento.

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.

1 participant