From 4c7edcec676e9ac5962eb57985b2cd0cb7822366 Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Tue, 21 Mar 2023 16:09:25 -0700 Subject: [PATCH] Suppress missing php version file warnings (#1443) --- src/Helpers/LocalMachineHelper.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); } /**