From 7434e97df5662d0c9c5d02ec679ca9e7169798e0 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Mon, 3 Jul 2017 00:16:38 -0700 Subject: [PATCH] Swallow errors on `stat` in FilesystemSource. --- src/Mustache/Source/FilesystemSource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mustache/Source/FilesystemSource.php b/src/Mustache/Source/FilesystemSource.php index b09f46e..1284ac7 100644 --- a/src/Mustache/Source/FilesystemSource.php +++ b/src/Mustache/Source/FilesystemSource.php @@ -50,7 +50,7 @@ class Mustache_Source_FilesystemSource implements Mustache_Source if (!empty($this->statProps)) { if (!isset($this->stat)) { - $this->stat = stat($this->fileName); + $this->stat = @stat($this->fileName); } if ($this->stat === false) {