Skip to content

refactor(QueryBuilder): Properly type the query builder#57763

Open
CarlSchwan wants to merge 2 commits into
masterfrom
carl/type-querybuilder
Open

refactor(QueryBuilder): Properly type the query builder#57763
CarlSchwan wants to merge 2 commits into
masterfrom
carl/type-querybuilder

Conversation

@CarlSchwan

@CarlSchwan CarlSchwan commented Jan 23, 2026

Copy link
Copy Markdown
Member
  • Resolves: #

Summary

TODO

  • ...

Checklist

@CarlSchwan CarlSchwan added this to the Nextcloud 34 milestone Jan 23, 2026
@CarlSchwan CarlSchwan self-assigned this Jan 23, 2026
@CarlSchwan CarlSchwan added 2. developing Work in progress feature: database Database related DB labels Jan 23, 2026
Comment thread lib/public/DB/QueryBuilder/IQueryBuilder.php Fixed
@CarlSchwan CarlSchwan force-pushed the carl/type-querybuilder branch 7 times, most recently from 4949aa8 to 27c24e9 Compare January 26, 2026 10:02
Comment thread lib/public/DB/QueryBuilder/IQueryBuilder.php Fixed
@CarlSchwan CarlSchwan force-pushed the carl/type-querybuilder branch 2 times, most recently from 75af4a1 to ca05129 Compare January 27, 2026 10:17
@CarlSchwan CarlSchwan added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jan 27, 2026
@CarlSchwan CarlSchwan marked this pull request as ready for review January 27, 2026 10:18
@CarlSchwan CarlSchwan requested review from Altahrim, ArtificialOwl, icewind1991 and sorbaugh and removed request for a team January 27, 2026 10:18
Comment thread lib/private/DB/QueryBuilder/ExpressionBuilder/ExpressionBuilder.php
Comment thread lib/private/DB/QueryBuilder/ExpressionBuilder/ExpressionBuilder.php Outdated
Comment thread lib/private/DB/QueryBuilder/ExpressionBuilder/ExpressionBuilder.php
Comment thread lib/private/DB/QueryBuilder/Sharded/ShardedQueryBuilder.php
Comment thread lib/public/DB/QueryBuilder/IFunctionBuilder.php Outdated
Comment thread lib/public/DB/QueryBuilder/IQueryBuilder.php Outdated
Comment thread lib/public/DB/QueryBuilder/IQueryBuilder.php
Comment thread lib/public/DB/QueryBuilder/IQueryBuilder.php Outdated
@CarlSchwan CarlSchwan force-pushed the carl/type-querybuilder branch 3 times, most recently from efaca86 to 4020f91 Compare January 30, 2026 14:28

@provokateurin provokateurin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add all files you touched to psalm:strict and rector:strict. That will probably result in some more issues being found, but I think it's worth fixing them in such an important part of our codebase.

Comment thread lib/public/DB/QueryBuilder/IQueryBuilder.php Outdated
Comment thread lib/public/DB/QueryBuilder/IQueryBuilder.php Outdated
Comment thread lib/public/DB/QueryBuilder/IQueryBuilder.php Outdated
Comment thread lib/public/DB/QueryBuilder/IQueryBuilder.php Outdated
Comment thread lib/public/DB/QueryBuilder/IQueryBuilder.php Outdated
Comment thread lib/public/DB/QueryBuilder/IQueryBuilder.php Outdated
Comment thread lib/public/DB/QueryBuilder/IQueryBuilder.php Outdated
Comment thread lib/public/DB/QueryBuilder/IQueryBuilder.php Outdated
Comment thread lib/public/DB/QueryBuilder/IQueryBuilder.php Outdated
Comment thread lib/public/DB/QueryBuilder/IQueryBuilder.php
And make sure the related unit tests are also typed and checked by
psalm.

Signed-off-by: Carl Schwan <carlschwan@kde.org>
@CarlSchwan CarlSchwan force-pushed the carl/type-querybuilder branch from 5c85223 to d5b81a1 Compare June 23, 2026 10:36
@CarlSchwan CarlSchwan requested a review from provokateurin June 23, 2026 10:37
@CarlSchwan CarlSchwan force-pushed the carl/type-querybuilder branch from d5b81a1 to bbaf603 Compare June 23, 2026 11:35
And put the files in rector strict and psalm strict

Signed-off-by: Carl Schwan <carlschwan@kde.org>
@CarlSchwan CarlSchwan force-pushed the carl/type-querybuilder branch from bbaf603 to fa0d136 Compare June 23, 2026 11:37
Comment thread lib/public/DB/QueryBuilder/IQueryBuilder.php Dismissed
* SPDX-License-Identifier: AGPL-3.0-only
*/

declare(strict_types=1);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be above license

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

Labels

3. to review Waiting for reviews feature: database Database related DB

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants