Skip to content

Commit 3a53cb8

Browse files
committed
Revert "[L5] Fatal Error in Lumen 5.2.* Query Collector"
1 parent e84c2cb commit 3a53cb8

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/DataCollector/QueryCollector.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,6 @@ public function setExplainSource($enabled, $types)
8080
*/
8181
public function addQuery($query, $bindings, $time, $connection)
8282
{
83-
// If the query argument is an instance of QueryExecuted the rest of the
84-
// arguments are probably wrong types and are going to crash
85-
// the collector.
86-
if ( $query instanceof \Illuminate\Database\Events\QueryExecuted )
87-
{
88-
$bindings = $query->bindings;
89-
$time = $query->time;
90-
$connection = $query->connection;
91-
$query = $query->sql;
92-
}
93-
9483
$explainResults = array();
9584
$time = $time / 1000;
9685
$endTime = microtime(true);

0 commit comments

Comments
 (0)