Skip to content

refactor: remove unnecessary parameter (plus cleanup) - #2186

Merged
blizzz merged 1 commit into
mainfrom
fix/noid/row2mapper-cleanup
Dec 5, 2025
Merged

refactor: remove unnecessary parameter (plus cleanup)#2186
blizzz merged 1 commit into
mainfrom
fix/noid/row2mapper-cleanup

Conversation

@blizzz

@blizzz blizzz commented Dec 5, 2025

Copy link
Copy Markdown
Member

Spotted that parseEntities() is accepting a columnTypes parameter, which it actually does not use. The callee however runs a DB query for that. Since it is in getRows and often called, a good thing to shave off. Though probably not much of effect, hence not daring to call it a performance improvement 😅 Added more cleanup in the course.

… and with this a DB query that would run often enough. More cleanups
include:

- remove call-by-ref indicators where objects were passed
- removed unused variables
- remove wrong and unneeded PHP doc
- a few simplifictations (if, available PHP methods)
- fix some minor code smells
- add missing return type hint

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
@blizzz
blizzz requested review from enjeck and juliusknorr December 5, 2025 13:17
@blizzz blizzz added bug Something isn't working technical debt Technical issue 3. to review Waiting for reviews labels Dec 5, 2025
@blizzz

blizzz commented Dec 5, 2025

Copy link
Copy Markdown
Member Author

/backport to stable0.9

@backportbot backportbot Bot added the backport-request Pending backport by the backport-bot label Dec 5, 2025
@blizzz
blizzz merged commit 22af467 into main Dec 5, 2025
73 of 79 checks passed
@blizzz
blizzz deleted the fix/noid/row2mapper-cleanup branch December 5, 2025 15:00
@backportbot backportbot Bot removed the backport-request Pending backport by the backport-bot label Dec 5, 2025
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 bug Something isn't working technical debt Technical issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants