Skip to content

Commit 2cd1e97

Browse files
committed
bug symfony#52488 [HttpKernel] Fix PHP deprecation (nicolas-grekas)
This PR was merged into the 5.4 branch. Discussion ---------- [HttpKernel] Fix PHP deprecation | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | - | License | MIT Commits ------- 9854346 [HttpKernel] Fix PHP deprecation
2 parents a454d0c + 9854346 commit 2cd1e97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/DataCollector/LoggerDataCollector.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ private function getContainerDeprecationLogs(): array
224224

225225
private function getContainerCompilerLogs(string $compilerLogsFilepath = null): array
226226
{
227-
if (!is_file($compilerLogsFilepath)) {
227+
if (!$compilerLogsFilepath || !is_file($compilerLogsFilepath)) {
228228
return [];
229229
}
230230

0 commit comments

Comments
 (0)