Skip to content

Commit 8f2e189

Browse files
Girgiasnicolas-grekas
authored andcommitted
Remove some implicit bool type juggling
1 parent 95d9a37 commit 8f2e189

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Command/DebugAutowiringCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ private function getFileLink(string $class): string
184184
return '';
185185
}
186186

187-
return (string) $this->fileLinkFormatter->format($r->getFileName(), $r->getStartLine());
187+
return $r->getFileName() ? ($this->fileLinkFormatter->format($r->getFileName(), $r->getStartLine()) ?: '') : '';
188188
}
189189

190190
public function complete(CompletionInput $input, CompletionSuggestions $suggestions): void

0 commit comments

Comments
 (0)