소스 검색

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