Skip to content

Commit

Permalink
Suggest that the line is unknown when is null/zero on xdebug link (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikn69 committed Mar 30, 2024
1 parent 94a16d7 commit e903b29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DebugBar/DataFormatter/HasXdebugLinks.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function getXdebugLink($file, $line = null)
'url' => $url,
'ajax' => $this->getXdebugShouldUseAjax(),
'filename' => basename($file),
'line' => (string) $line
'line' => (string) $line ?: '?'
];
}
}
Expand Down

0 comments on commit e903b29

Please sign in to comment.