-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bug where collections where not being correctly transformed
- Loading branch information
1 parent
19ae6b2
commit f8c1781
Showing
4 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,6 +78,7 @@ public function build() | |
*/ | ||
public function toArray() | ||
{ | ||
|
||
return $this->build(); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace Mateusjatenee\JsonFeed\Tests\Fakes; | ||
|
||
use Illuminate\Contracts\Support\Arrayable; | ||
use Mateusjatenee\JsonFeed\Tests\Fakes\DummyFeedItem; | ||
|
||
class DummyArrayableFeedItem extends DummyFeedItem implements Arrayable | ||
{ | ||
public function toArray() | ||
{ | ||
return ['foo' => 'bar']; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters