소스 검색

Changed the AnnotationReader type hint to associated the Annotation Reader Interface

Harmen Mojet 12 년 전
부모
커밋
a29f1e5083
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/JMS/Serializer/SerializerBuilder.php

+ 2 - 1
src/JMS/Serializer/SerializerBuilder.php

@@ -36,6 +36,7 @@ use JMS\Serializer\Construction\ObjectConstructorInterface;
 use JMS\Serializer\EventDispatcher\Subscriber\DoctrineProxySubscriber;
 use JMS\Serializer\Naming\CamelCaseNamingStrategy;
 use JMS\Serializer\Naming\PropertyNamingStrategyInterface;
+use Doctrine\Common\Annotations\Reader;
 use Doctrine\Common\Annotations\AnnotationReader;
 use Doctrine\Common\Annotations\FileCacheReader;
 use Metadata\Cache\FileCache;
@@ -80,7 +81,7 @@ class SerializerBuilder
         $this->deserializationVisitors = new Map();
     }
 
-    public function setAnnotationReader(AnnotationReader $reader)
+    public function setAnnotationReader(Reader $reader)
     {
         $this->annotationReader = $reader;