From 261d3c892eb167f9069d7ebf23b3363594e6dbc4 Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Sat, 30 Apr 2011 14:23:46 +0200 Subject: [PATCH] DDC-1133 - Ducktype AnnotationReader in AnnotationDriver --- lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php b/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php index b74fc860e..22e6d4d7e 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php @@ -67,10 +67,10 @@ class AnnotationDriver implements Driver * Initializes a new AnnotationDriver that uses the given AnnotationReader for reading * docblock annotations. * - * @param $reader The AnnotationReader to use. + * @param AnnotationReader $reader The AnnotationReader to use, duck-typed. * @param string|array $paths One or multiple paths where mapping classes can be found. */ - public function __construct(AnnotationReader $reader, $paths = null) + public function __construct($reader, $paths = null) { $this->_reader = $reader; if ($paths) {