Skip to content

Conversation

@ArtificialOwl
Copy link
Member

No description provided.

return -3;
} elseif ($input->getOption('user') && $input->getOption('group')) {
$output->writeln('<error>--user and --group can not be used at the same time</error>');
} elseif ((int)(bool)$input->getOption('user') + (int)(bool)$input->getOption('group') + (int)(bool)$input->getOption('team') > 1) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uhm what? 🙈
Is there no way to write this in a simpler and cleaner way?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:D
This is the simpler way

@ArtificialOwl ArtificialOwl merged commit 0ab9190 into master May 14, 2025
50 checks passed
@ArtificialOwl ArtificialOwl deleted the feat/noid/occ-manage-perm-team branch May 14, 2025 10:09
@ArtificialOwl
Copy link
Member Author

/backport to stable31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants