Skip to content

Commit

Permalink
Rename Doctrine\DBAL\Result class functions (#257) (#292)
Browse files Browse the repository at this point in the history
Co-authored-by: johan Vlaar <johan@adivare.nl>
  • Loading branch information
JohJohan and JohJohan authored Feb 26, 2024
1 parent 803cb22 commit a9f411d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/sets/doctrine-dbal-211.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@
new MethodCallRename('Doctrine\DBAL\Statement', 'fetchAssoc', 'fetchAssociative'),
new MethodCallRename('Doctrine\DBAL\Statement', 'fetchColumn', 'fetchOne'),
new MethodCallRename('Doctrine\DBAL\Statement', 'fetchAll', 'fetchAllAssociative'),
new MethodCallRename('Doctrine\DBAL\Result', 'fetchAssoc', 'fetchAssociative'),
new MethodCallRename('Doctrine\DBAL\Result', 'fetchArray', 'fetchNumeric'),
new MethodCallRename('Doctrine\DBAL\Result', 'fetchColumn', 'fetchOne'),
new MethodCallRename('Doctrine\DBAL\Result', 'fetchAll', 'fetchAllAssociative'),
]);

$rectorConfig->ruleWithConfiguration(RenameClassRector::class, [
Expand Down

0 comments on commit a9f411d

Please sign in to comment.