diff --git a/src/ModuleAutoloader.php b/src/ModuleAutoloader.php index c2b5e85..cd88954 100644 --- a/src/ModuleAutoloader.php +++ b/src/ModuleAutoloader.php @@ -326,7 +326,7 @@ public function registerPaths($paths) throw new Exception\InvalidArgumentException( 'Parameter to \\Zend\\Loader\\ModuleAutoloader\'s ' . 'registerPaths method must be an array or ' - . 'implement the \\Traversable interface' + . 'implement the Traversable interface' ); } diff --git a/src/PluginClassLoader.php b/src/PluginClassLoader.php index 1c9e8ac..a2223d5 100644 --- a/src/PluginClassLoader.php +++ b/src/PluginClassLoader.php @@ -64,7 +64,7 @@ public static function addStaticMap($map) return; } - if (!is_array($map) && !$map instanceof \Traversable) { + if (!is_array($map) && !$map instanceof Traversable) { throw new Exception\InvalidArgumentException('Expects an array or Traversable object'); } foreach ($map as $key => $value) {