Skip to content

[6.0] Phpstan baseline#45655

Merged
Bodge-IT merged 4 commits intojoomla:6.0-devfrom
rdeutz:phpstan-baseline
Jul 16, 2025
Merged

[6.0] Phpstan baseline#45655
Bodge-IT merged 4 commits intojoomla:6.0-devfrom
rdeutz:phpstan-baseline

Conversation

@rdeutz
Copy link
Contributor

@rdeutz rdeutz commented Jun 25, 2025

Summary of Changes

This PR changes the behaviour of the CI System. We use PHPStan but ignore the failue of it. This is not the best option for further development. PHPStan has a baseline option and with this file it allows to ignore current failures. But it will still fail when new failures are added to the system. This doesn't make the current code better but makes sure it doesn't get wrose.

Testing Instructions

After this change the build should be green even the phpstan step.

@rdeutz rdeutz changed the base branch from 5.3-dev to 6.0-dev June 25, 2025 16:42
@Hackwar
Copy link
Member

Hackwar commented Jun 25, 2025

The thing is that it also fails the whole PR when issues are fixed and are not part of the baseline anymore. Since we plan to fix lots of issues in 6.0 in regards to errors and JFactory in the near future, I'm hesitant to add this now.

@rdeutz
Copy link
Contributor Author

rdeutz commented Jun 25, 2025

I don't think it will fail when you fix things. But the amount of messages makes it close to impossible to find a new thing.

@Hackwar
Copy link
Member

Hackwar commented Jul 9, 2025

Do we need to exclude this from the Joomla build?

@richard67
Copy link
Member

Do we need to exclude this from the Joomla build?

I think so.

@richard67
Copy link
Member

Do we need to exclude this from the Joomla build?

Has been done in 5.3-dev with PR #45730 and will be merged all the way up, so nothing to do here.

@Bodge-IT Bodge-IT merged commit d9f7e8b into joomla:6.0-dev Jul 16, 2025
33 checks passed
@Bodge-IT
Copy link
Contributor

Thanks @RobertDeutz & @richard67.

@rdeutz rdeutz deleted the phpstan-baseline branch July 31, 2025 12:41
@LadySolveig LadySolveig added this to the Joomla! 6.0.0 milestone Aug 19, 2025
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.

7 participants

Comments