Explorar o código

Swallow errors on `stat` in FilesystemSource.

Justin Hileman %!s(int64=8) %!d(string=hai) anos
pai
achega
7434e97df5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Mustache/Source/FilesystemSource.php

+ 1 - 1
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) {