/** @var assign $assign */
[$assign] = $this->create_assignment(...);
/** @var assign $assign */
foreach ($assignments as $name => $assign) {
I think the first is explained by the switch from list(...) to [...]. The rule probably needs to be updated. Not sure why the second one is not working.
Both of these should be allowed (at least judging by the comment at https://github.com/moodlehq/moodle-cs/blob/main/moodle/Sniffs/Commenting/InlineCommentSniff.php#L191-L194) but I am currently getting them reported as errors in my code:
I think the first is explained by the switch from list(...) to [...]. The rule probably needs to be updated. Not sure why the second one is not working.