We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b389a15 commit 1377125Copy full SHA for 1377125
src/QueryResult.php
@@ -55,9 +55,6 @@ public function __construct($result)
55
throw new Exception('Unknown result');
56
}
57
58
- if(isset($result->costInfo)){
59
- $this->costInfo = $result->costInfo;
60
- }
61
if (method_exists($result, 'getQueryStats'))
62
{
63
$this->queryStats = $result->getQueryStats();
@@ -255,11 +252,11 @@ protected function fillRows($rows)
255
252
256
253
257
254
/**
258
- * @return CostInfo|null
+ * @return QueryStats|null
259
*/
260
- public function costInfo()
+ public function getQueryStats(): ?QueryStats
261
262
- return $this->costInfo;
+ return $this->queryStats;
263
264
265
0 commit comments