Skip to content

Conversation

@nabim777
Copy link
Collaborator

@nabim777 nabim777 commented Oct 15, 2025

Description

Recently, Nextcloud deprecated the query method execute() , as shown in this PR: nextcloud/server#55720
So, this PR replaces depreceated query methods execute() in DatabaseService with the recommended executeStatement() method.

Related Issue or Workpackage

  • failed on psalm
Error: lib/Service/DatabaseService.php:98:11: UndefinedInterfaceMethod: Method OCP\DB\QueryBuilder\IQueryBuilder::execute does not exist (see https://psalm.dev/181)
Error: lib/Service/DatabaseService.php:114:11: UndefinedInterfaceMethod: Method OCP\DB\QueryBuilder\IQueryBuilder::execute does not exist (see https://psalm.dev/181)
Error: tests/lib/Service/DatabaseServiceTest.php:84:11: UndefinedInterfaceMethod: Method OCP\DB\QueryBuilder\IQueryBuilder::execute does not exist (see https://psalm.dev/181)

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Updated CHANGELOG.md file

Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
@nabim777 nabim777 merged commit 09592fa into master Oct 15, 2025
12 checks passed
@nabim777 nabim777 deleted the ci/fix-psalm branch October 15, 2025 05:40
@github-actions
Copy link

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

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.

3 participants