From a137564c695041a91ccf546e7858d1f4eebb9d4c Mon Sep 17 00:00:00 2001 From: Michel Hunziker Date: Mon, 7 Apr 2014 11:00:52 +0200 Subject: [PATCH] Fix undefined classes in phpDoc --- src/DateTimeFormatter.php | 2 +- src/FilterChain.php | 3 ++- src/Inflector.php | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/DateTimeFormatter.php b/src/DateTimeFormatter.php index 9b0065d6..b24897b2 100644 --- a/src/DateTimeFormatter.php +++ b/src/DateTimeFormatter.php @@ -23,7 +23,7 @@ class DateTimeFormatter extends AbstractFilter /** * Sets filter options * - * @param array|Traversable $options + * @param array|\Traversable $options */ public function __construct($options = null) { diff --git a/src/FilterChain.php b/src/FilterChain.php index 4202ffbe..cb74bda5 100644 --- a/src/FilterChain.php +++ b/src/FilterChain.php @@ -10,6 +10,7 @@ namespace Zend\Filter; use Countable; +use Traversable; use Zend\Stdlib\PriorityQueue; class FilterChain extends AbstractFilter implements Countable @@ -52,7 +53,7 @@ public function __construct($options = null) */ public function setOptions($options) { - if (!is_array($options) && !$options instanceof \Traversable) { + if (!is_array($options) && !$options instanceof Traversable) { throw new Exception\InvalidArgumentException(sprintf( 'Expected array or Traversable; received "%s"', (is_object($options) ? get_class($options) : gettype($options)) diff --git a/src/Inflector.php b/src/Inflector.php index 0b18a5c7..4120a68f 100644 --- a/src/Inflector.php +++ b/src/Inflector.php @@ -217,7 +217,7 @@ public function getTarget() /** * Set Target Reference * - * @param reference $target + * @param string $target * @return self */ public function setTargetReference(&$target)