Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

Commit 626958b

Browse files
fix call to collect() method
1 parent cd05fed commit 626958b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2.0.1 - 2017-02-02
4+
5+
* Fix call to `collect` helper method not available in Laravel 4
6+
37
## 2.0.0 - 2017-02-02
48

59
* Update `superbalist/php-event-pubsub` to ^2.0

src/PubSubEventsServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ protected function registerValidators()
112112
$this->app->singleton('pubsub.events.validators.json_schema.loaders.array.schemas', function ($app) {
113113
$config = $this->getConfig();
114114
$schemas = $config['validators']['json_schema']['loaders']['array']['schemas'];
115-
return collect($schemas);
115+
return new Collection($schemas);
116116
});
117117

118118
$this->app->bind('pubsub.events.validators.json_schema.loaders.array', function ($app) {

0 commit comments

Comments
 (0)