Skip to content

Commit fec300d

Browse files
committed
Leverage First-class callable syntax
1 parent 320a14e commit fec300d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Middleware/Debug/DebugDataHolder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function addQuery(string $connectionName, Query $query): void
2424
'sql' => $query->getSql(),
2525
'params' => $query->getParams(),
2626
'types' => $query->getTypes(),
27-
'executionMS' => [$query, 'getDuration'], // stop() may not be called at this point
27+
'executionMS' => $query->getDuration(...), // stop() may not be called at this point
2828
];
2929
}
3030

0 commit comments

Comments
 (0)