Skip to content

Commit

Permalink
Fix for QuerySelector by adding parameter type check instead of versi…
Browse files Browse the repository at this point in the history
…on check
  • Loading branch information
ltsochev-dev committed Feb 11, 2016
1 parent 1f5f617 commit d125fbc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/LaravelDebugbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,9 @@ function ($query, $bindings = null, $time = null, $connectionName = null) use ($
// Laravel 5.2 changed the way some core events worked. We must account for
// the first argument being an "event object", where arguments are passed
// via object properties, instead of individual arguments.
// In my opinion it is better to type check rather than version check for the
// long term.
// In my opinion it is better to type check rather than version check in the
// long term. Lumen doesn't support SemVer standard either, thus breaking
// the version_compare function
if ( $query instanceof \Illuminate\Database\Events\QueryExecuted ) {
$bindings = $query->bindings;
$time = $query->time;
Expand Down

0 comments on commit d125fbc

Please sign in to comment.