We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8ab0b5 commit 9a5dff7Copy full SHA for 9a5dff7
1 file changed
src/Util/FileSystemHelper.php
@@ -78,9 +78,9 @@ public function getContents(string $filePath): string
78
throw new UnableToProcessFileException(sprintf('File path is a directory: "%s".', $filePath));
79
}
80
81
- $contents = @file_get_contents($filePath) ?: null;
+ $contents = @file_get_contents($filePath);
82
83
- if ($contents === null) {
+ if ($contents === false) {
84
throw new UnableToProcessFileException(sprintf('Could not open file for reading: "%s".', $filePath));
85
86
0 commit comments