Skip to content

Commit

Permalink
Merge pull request barryvdh#464 from barryvdh/revert-463-master
Browse files Browse the repository at this point in the history
Revert "[L5] Fatal Error in Lumen 5.2.* Query Collector"
  • Loading branch information
barryvdh committed Feb 11, 2016
2 parents e84c2cb + 3a53cb8 commit 9e73be3
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/DataCollector/QueryCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,6 @@ public function setExplainSource($enabled, $types)
*/
public function addQuery($query, $bindings, $time, $connection)
{
// If the query argument is an instance of QueryExecuted the rest of the
// arguments are probably wrong types and are going to crash
// the collector.
if ( $query instanceof \Illuminate\Database\Events\QueryExecuted )
{
$bindings = $query->bindings;
$time = $query->time;
$connection = $query->connection;
$query = $query->sql;
}

$explainResults = array();
$time = $time / 1000;
$endTime = microtime(true);
Expand Down

0 comments on commit 9e73be3

Please sign in to comment.