From 263cd32dd64c26497c22c9b537fee128bff00715 Mon Sep 17 00:00:00 2001 From: Salman Abbas Date: Fri, 23 Nov 2012 00:23:37 +0500 Subject: [PATCH] Added error suppression to unlink() calls Added error suppression to unlink() calls in the getPropertyAnnotations and getMethodAnnotations methods to be consistent with the getClassAnnotations method. --- lib/Doctrine/Common/Annotations/FileCacheReader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Common/Annotations/FileCacheReader.php b/lib/Doctrine/Common/Annotations/FileCacheReader.php index 53c52b11d..5e937a861 100644 --- a/lib/Doctrine/Common/Annotations/FileCacheReader.php +++ b/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);