Skip to content

[6.0] Reducing PHPStan baseline #45854

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: 6.0-dev
Choose a base branch
from
Open

Conversation

Hackwar
Copy link
Member

@Hackwar Hackwar commented Aug 6, 2025

Summary of Changes

PHPStan has an issue understanding the $this class in our layouts with shortened class names. This PR removes the imports and instead uses the full class name when hinting at the type of $this. This allows to reduce the baseline file considerably.

Testing Instructions

Since this is a change in docblocks, there isn't really anything to test. The passing of phpstan would be the indicator that this is working correctly.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

Hackwar and others added 2 commits August 6, 2025 19:05
Co-authored-by: Christian Heel <66922325+heelc29@users.noreply.github.com>
@heelc29
Copy link
Contributor

heelc29 commented Aug 6, 2025

I have tested this item ✅ successfully on 06a678d

code review


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45854.

@laoneo
Copy link
Member

laoneo commented Aug 6, 2025

Had the same issue with my extension, this is the only valid fix for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants