refactor(dbal): move from deprecated to modern calls#58891
refactor(dbal): move from deprecated to modern calls#58891
Conversation
e9754ab to
2a6989f
Compare
b8d7a73 to
21416b8
Compare
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
SebastianKrupinski
left a comment
There was a problem hiding this comment.
CalDav looks fine
| $row = array_shift($this->rows); | ||
| return $row !== null ? current($row) : false; |
There was a problem hiding this comment.
Why this change? Same for the other changes from current below. Is there a performance improvement?
There was a problem hiding this comment.
If a row is [0] or ['count' => '0'], the condition is false and the method returns false even though a valid row was fetched. The replacement uses !== null which correctly distinguishes "no row left" from "row with falsy content."
There was a problem hiding this comment.
that makes sense but seems like this constitutes a change in the current behaviour, thus I'd remove it from this refactoring.
There was a problem hiding this comment.
"It's not a bug, it's a feature!" :)
Please revert it, if this is expected (even if CI doesn't complain about it). 👍
miaulalala
left a comment
There was a problem hiding this comment.
as per my other comment
Summary
Give Doctrine DBAL some love 💘 by moving away from deprecated calls and a few RAW queries.
Checklist
3. to review, feature component)stable32)AI (if applicable)