1
0
mirror of synced 2025-02-20 22:23:14 +03:00

DDC-1133 - Ducktype AnnotationReader in AnnotationDriver

This commit is contained in:
Benjamin Eberlei 2011-04-30 14:23:46 +02:00
parent 2c50faf5b2
commit 261d3c892e

View File

@ -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) {