Skip to content
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

[5.2] Fixing typehint for getListQuery to QueryInterface #43265

Merged
merged 10 commits into from
Apr 30, 2024

Conversation

Hackwar
Copy link
Member

@Hackwar Hackwar commented Apr 11, 2024

Summary of Changes

The database object in Joomla returns an object implementing QueryInterface, but all our docblocks for getListQuery claim it is a DatabaseQuery object. This PR unifies this to use the QueryInterface everywhere. This set of changes is the result of a run of phpstan on our codebase.

Testing Instructions

Codereview.

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

@pe7er pe7er self-assigned this Apr 18, 2024
@pe7er pe7er enabled auto-merge (squash) April 30, 2024 07:46
@pe7er pe7er merged commit 5b21db6 into joomla:5.2-dev Apr 30, 2024
3 checks passed
@Quy Quy added this to the Joomla! 5.2.0 milestone Apr 30, 2024
@pe7er
Copy link
Contributor

pe7er commented Apr 30, 2024

Thanks @Hackwar !

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.

None yet

7 participants