Преглед изворни кода

Swallow errors on `stat` in FilesystemSource.

Justin Hileman пре 8 година
родитељ
комит
7434e97df5
1 измењених фајлова са 1 додато и 1 уклоњено
  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) {