Skip to content

Commit

Permalink
Merge pull request doctrine#226 from SalmanPK/patch-1
Browse files Browse the repository at this point in the history
Added error suppression to unlink() calls
  • Loading branch information
guilhermeblanco committed Nov 22, 2012
2 parents d8c17cd + 263cd32 commit a836c86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Doctrine/Common/Annotations/FileCacheReader.php
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit a836c86

Please sign in to comment.