Permalink
Browse files

#2968 getAuthors always returns Collection\Author

  • Loading branch information...
1 parent 3cc1b09 commit 2d3c5273814a3df79bd2872535a4c598f491dcdf Matthias Tylkowski committed with weierophinney Nov 19, 2012
@@ -45,7 +45,7 @@ public function getAuthor($index = 0)
/**
* Get an array with feed authors
*
- * @return array
+ * @return Collection\Author
*/
public function getAuthors()
{
@@ -73,7 +73,7 @@ public function getAuthors()
}
if (count($authors) == 0) {
- $authors = null;
+ $authors = new Collection\Author();
} else {
$authors = new Collection\Author(
Reader\Reader::arrayUnique($authors)
@@ -43,7 +43,7 @@ public function getAuthor($index = 0)
/**
* Get an array with feed authors
*
- * @return array
+ * @return Collection\Author
*/
public function getAuthors()
{
@@ -65,7 +65,7 @@ public function getAuthors()
}
if (count($authors) == 0) {
- $authors = null;
+ $authors = new Collection\Author();
} else {
$authors = new Collection\Author(
Reader\Reader::arrayUnique($authors)

0 comments on commit 2d3c527

Please sign in to comment.