[5.4] Move PHPstan deprecated database interface errors from baseline to main config #45814
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request for Issue # .
Summary of Changes
This pull request (PR) adds new entries in the
ignoreErrorssection of thephpstan.neonfile for deprecation errors of which we already know that they will be solved in J6 with the update of the database framework from 3 to 4, and removes the corresponding ignored errors from thephpstan-baseline.neonfile, which are quite a lot.These entries all were added to the
phpstan-baseline.neonfile with the update of the composer dependencies with my PR #45777 because the updated PHPstan version is more sensitive for such errors than the older version which we use in the 5.3-dev branch.However, having them in the baseline file makes it hard to find them and remove them in 6.0-dev, and in 5.4-dev new PRs may require to add more entries in the baseline file.
So it is better to have general exclusions for these deprecations in the main configuration file
phpstan.neon.This is what this PR here does.
The new entries in the
phpstan.neonfile can be removed in 6.0-dev when that branch has gotten the framework update.Testing Instructions
Code review and check CI:
phpstan-baseline.neonfile and does not add new one.Actual result BEFORE applying this Pull Request
We have lots of exclusions in the
phpstan-baseline.neonfor calls to methods of deprecated interfacesJoomla\\Database\\Query\\PrepareableInterfaceandJoomla\\Database\\Query\\LimitableInterface.Expected result AFTER applying this Pull Request
We no exclusions in the
phpstan-baseline.neonfor calls to methods of deprecated interfacesJoomla\\Database\\Query\\PrepareableInterfaceandJoomla\\Database\\Query\\LimitableInterface.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