Skip to content
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

Merged
merged 4 commits into from
Jan 15, 2025
Merged

Add v13 compatibility #14

merged 4 commits into from
Jan 15, 2025

Conversation

ochorocho
Copy link
Contributor

No description provided.

@ochorocho ochorocho force-pushed the task/v13 branch 7 times, most recently from 403bb05 to 043bf0c Compare January 14, 2025 14:55
if ($row === false) {
->executeQuery()
->fetchAllAssociative();
if ($row === []) {
Copy link
Contributor

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.

Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @achimfritz fixed it.

@jschlier jschlier changed the title Add v13 compatability Add v13 compatibility Jan 15, 2025
@ochorocho ochorocho merged commit ff9a301 into master Jan 15, 2025
4 checks passed
@ochorocho ochorocho deleted the task/v13 branch January 15, 2025 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants