Open
Description
Hi there,
at 1, the code quality checker reports some deprecation about the PDOStatement::fetchAll()
function. Is it right?
The function
Crate\PDO\PDOStatement::fetchAll()
has been deprecated: UsefetchAllNumeric()
,fetchAllAssociative()
orfetchFirstColumn()
instead.
IssueId: 46905417 Message: The function ``Crate\PDO\PDOStatement::fetchAll()`` has been deprecated: Use fetchAllNumeric(), fetchAllAssociative() or fetchFirstColumn() instead. Filename: src/Crate/PDO/PDOStatement.php LineNumber: 619 Link: https://scrutinizer-ci.com/g/crate/crate-pdo/code-structure/main/class/Crate%5CPDO%5CPDOStatement?issueId=46905417
With kind regards,
Andreas.
Footnotes
Metadata
Metadata
Assignees
Labels
No labels
Activity
amotl commentedon May 4, 2023
It looks like it is only for DBAL 12, and not for PDO 3. Why does Scrutinizer complain then? Is it misguided?
Footnotes
https://www.doctrine-project.org/2021/03/29/dbal-2.13.html ↩
https://stackoverflow.com/questions/64468289/how-to-fetch-results-into-a-custom-object-now-that-fetchall-and-fetchmode-are ↩
https://www.php.net/manual/en/pdostatement.fetchall.php ↩