You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR: MixedAssignment
at /app/project/Infrastructure/Console/GenerateMutationControllerCommand.php:23:9
Unable to determine the type that $option is being assigned to (see https://psalm.dev/032)
$option = $input->getOption('test');
However it does know that the variable is boolean because if I add assert(is_bool($option)) then I get this:
ERROR: RedundantCondition
at /app/project/Infrastructure/Console/GenerateMutationControllerCommand.php:22:9
Type bool for $option is always bool (see https://psalm.dev/122)
assert(is_bool($option));
The text was updated successfully, but these errors were encountered:
Code:
Psalm throws:
However it does know that the variable is boolean because if I add
assert(is_bool($option))
then I get this:The text was updated successfully, but these errors were encountered: