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:
parent
fdc4eec1f5
commit
1b1419202f
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user