Skip to content

Commit 9262d23

Browse files
committed
Replaced Laravel's SerializableClosure with standalone library
The Laravel's implementation was marked as deprecated and remove in Laravel 9. Laravel extracted this feature to the separate package which we used in this commit. remp/remp#1160
1 parent 4b176ac commit 9262d23

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
2525
- Added information about where to display to the detail page of campaign. remp/remp#1009
2626
- Changed the form of editing banner's custom JS - now JS code is displayed formatted and linted in separate window. remp/remp#1171
2727
- Added support for the inline editing of variables in the custom JS of banner. remp/remp#1172
28+
- Replaced Laravel's internal `SerializableClosure` with the separate forked implementation to avoid deprecation. remp/remp#1160
2829

2930
### [Mailer]
3031

Campaign/app/Contracts/SegmentAggregator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use App\CampaignSegment;
66
use Illuminate\Support\Collection;
7-
use Illuminate\Queue\SerializableClosure;
7+
use Laravel\SerializableClosure\SerializableClosure;
88
use Predis\Client;
99
use Illuminate\Support\Facades\Redis;
1010

Campaign/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"kouz/laravel-airbrake": "^0.7.0",
3232
"laracasts/flash": "^3.2",
3333
"laravel/framework": "v8.76.2",
34+
"laravel/serializable-closure": "^1.2",
3435
"laravelcollective/html": "^6.2",
3536
"nicolaslopezj/searchable": "^1.13",
3637
"php-amqplib/php-amqplib": "^2.7",

Campaign/composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)