diff --git a/src/Helpers/LocalMachineHelper.php b/src/Helpers/LocalMachineHelper.php index 5f140d9d2..2823aaf30 100644 --- a/src/Helpers/LocalMachineHelper.php +++ b/src/Helpers/LocalMachineHelper.php @@ -177,7 +177,9 @@ public function getFinder(): Finder { * @throws \Safe\Exceptions\FilesystemException */ public function readFile(string $filename): string { - return file_get_contents($this->getLocalFilepath($filename)); + // @todo remove this blasphemy once upstream issue is fixed + // @ see https://github.com/thecodingmachine/safe/issues/120 + return @file_get_contents($this->getLocalFilepath($filename)); } /**