Skip to content

Commit 6e010af

Browse files
author
Wout Gevaert
committed
Give __METHOD__ to estimateRowCount to prevent warning 'SQL query did not specify the caller'
1 parent 946038f commit 6e010af

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/PropertyAnnotators/PageNumRevisionPropertyAnnotator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ private function getPageRevisions( $pageId ) {
7575
return $this->appFactory->getConnection()->estimateRowCount(
7676
"revision",
7777
"*",
78-
[ "rev_page" => $pageId ]
78+
[ "rev_page" => $pageId ],
79+
__METHOD__
7980
);
8081
}
8182

src/PropertyAnnotators/TalkPageNumRevisionPropertyAnnotator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ private function getPageRevisions( $pageId ) {
7575
return $this->appFactory->getConnection()->estimateRowCount(
7676
"revision",
7777
"*",
78-
[ "rev_page" => $pageId ]
78+
[ "rev_page" => $pageId ],
79+
__METHOD__
7980
);
8081
}
8182

0 commit comments

Comments
 (0)