Skip to content
Discussion options

You must be logged in to vote

These are the options to deal with mixed-assignment:

  1. explicitly state you are looking for mixed -> https://mago.carthage.software/playground#019c3e2e-30b2-3cce-7dfe-7b639caf8cbd
  2. completely ignore this error in your config ( ignore = ["mixed-assignment"] )
  3. instead of reading mixed values, assert them in place, using something like Psl:
$field = Type\instance_of(Filed::class)->assert(
  $request->getAttribute('field')
);

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@fezfez
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by fezfez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants