Permalink
Browse files

Merge pull request #226 from SalmanPK/patch-1

Added error suppression to unlink() calls
  • Loading branch information...
2 parents d8c17cd + 263cd32 commit a836c86c13e964051549e234250cf665a5f5a190 @guilhermeblanco guilhermeblanco committed Nov 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Doctrine/Common/Annotations/FileCacheReader.php
@@ -138,7 +138,7 @@ public function getPropertyAnnotations(\ReflectionProperty $property)
if ($this->debug
&& (false !== $filename = $class->getFilename())
&& filemtime($path) < filemtime($filename)) {
- unlink($path);
+ @unlink($path);
$annot = $this->reader->getPropertyAnnotations($property);
$this->saveCacheFile($path, $annot);
@@ -176,7 +176,7 @@ public function getMethodAnnotations(\ReflectionMethod $method)
if ($this->debug
&& (false !== $filename = $class->getFilename())
&& filemtime($path) < filemtime($filename)) {
- unlink($path);
+ @unlink($path);
$annot = $this->reader->getMethodAnnotations($method);
$this->saveCacheFile($path, $annot);

0 comments on commit a836c86

Please sign in to comment.