Repository navigation
|
Hello, I would like to get a clean way to get rid of this issue, any idea ? https://mago.carthage.software/playground#019c3cb7-2746-5525-146b-a14d1acf3019 Thanks ! |
Answered by
azjezz
Feb 8, 2026
Replies: 2 comments 1 reply
|
Not sure what attribute means in this context, is it a get/post parameter? If yes, you could mark the return type as null|string|array<array-key, string> as that are probably the only values that can be present in request parameters |
1 reply
|
These are the options to deal with
$field = Type\instance_of(Filed::class)->assert(
$request->getAttribute('field')
); |
0 replies
Answer selected by
fezfez
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These are the options to deal with
mixed-assignment:mixed-> https://mago.carthage.software/playground#019c3e2e-30b2-3cce-7dfe-7b639caf8cbdignore = ["mixed-assignment"])