Skip to content

Commit 98a152b

Browse files
author
Harrison Ifeanyichukwu
committed
refactor: return feed items collection as an array rather than as a parameter bag
1 parent c086af4 commit 98a152b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Feeds/BaseFeed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public function __get(string $property)
134134
if (property_exists($this, $this_property))
135135
{
136136
$value = $this->{$this_property};
137-
if (is_array($value))
137+
if (is_array($value) && $property !== 'items')
138138
return new ParameterBag($value);
139139
else
140140
return $value;

0 commit comments

Comments
 (0)