1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-06-10 08:05:49 +02:00

Early return when no file string (#549)

This commit is contained in:
erikn69 2023-09-19 10:02:06 -05:00 committed by GitHub
parent fdc4eec1f5
commit 1b1419202f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,6 +87,10 @@ abstract class DataCollector implements DataCollectorInterface
*/
public function getXdebugLink($file, $line = 1)
{
if (empty($file)) {
return null;
}
if (file_exists($file)) {
$file = realpath($file);
}