-
-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix rehydration of subscription args with differing internal representations #1415
base: master
Are you sure you want to change the base?
Changes from 14 commits
8e9a34c
3a6585b
227b29e
371989a
b1803ed
64efa2a
1dc6c9b
7491d2f
f10644b
b519942
bb0c8b3
0d748c4
b66e36b
b0d4cab
5249df8
9cc782f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace Tests\Utils\Subscriptions; | ||
|
||
use Illuminate\Http\Request; | ||
use Nuwave\Lighthouse\Schema\Types\GraphQLSubscription; | ||
use Nuwave\Lighthouse\Subscriptions\Subscriber; | ||
|
||
class OnPostUpdated extends GraphQLSubscription | ||
{ | ||
/** | ||
* Check if subscriber is allowed to listen to the subscription. | ||
*/ | ||
public function authorize(Subscriber $subscriber, Request $request): bool | ||
{ | ||
return true; | ||
} | ||
|
||
/** | ||
* Filter which subscribers should receive the subscription. | ||
*/ | ||
public function filter(Subscriber $subscriber, $root): bool | ||
Check failure on line 22 in tests/Utils/Subscriptions/OnPostUpdated.php
|
||
{ | ||
return true; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @stayallive, I think this might fix the issue at least for enums from
bensampo/laravel-enum
. I don't know what we can do about the enums modified by@enum
tnough.