-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add v13 compatibility #14
Conversation
403bb05
to
043bf0c
Compare
if ($row === false) { | ||
->executeQuery() | ||
->fetchAllAssociative(); | ||
if ($row === []) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fetchAssociative()
"Returns the next row of the result as an associative array or FALSE if there are no more rows."
i think the old condition was right.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, sorry, here you use fetchAllAssociative(), so conditiion is correct, but above it is wrong.
but here the fetchAllAssociative() seems the wrong method, you should use fetchAssociative(), to get a single row, because
(new Job())->fromDatabaseRow($row)
expect on database row, and not an array of database rows
i think you have to recheck the fetch-Methods
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @achimfritz fixed it.
No description provided.