diff --git a/src/Util/XdebugFilterScriptGenerator.php b/src/Util/XdebugFilterScriptGenerator.php index 66c74eee58e..270e0714aaf 100644 --- a/src/Util/XdebugFilterScriptGenerator.php +++ b/src/Util/XdebugFilterScriptGenerator.php @@ -50,7 +50,9 @@ private function getWhitelistItems(array $filterData): array if (isset($filterData['include']['directory'])) { foreach ($filterData['include']['directory'] as $directory) { - if (\is_string($path = \realpath($directory['path']))) { + $path = \realpath($directory['path']); + + if (\is_string($path)) { $files[] = \sprintf('%s/', $path); } }