Skip to content

Commit

Permalink
ConnectionPanel: detecting source without filesystem check
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Nov 18, 2022
1 parent e9a6a96 commit f1400f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Bridges/DatabaseTracy/ConnectionPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ private function logQuery(Connection $connection, $result): void
: debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
foreach ($trace as $row) {
if (
(isset($row['file']) && is_file($row['file']) && !$this->blueScreen->isCollapsed($row['file']))
(isset($row['file'])
&& preg_match('~\.(php.?|phtml)$~', $row['file'])
&& !$this->blueScreen->isCollapsed($row['file']))
&& ($row['class'] ?? '') !== self::class
&& !is_a($row['class'] ?? '', Connection::class, true)
) {
Expand Down

0 comments on commit f1400f8

Please sign in to comment.