Last active
August 22, 2024 08:38
-
-
Save marxjohnson/29e596efb40d16f3e2a54964b5531b5a to your computer and use it in GitHub Desktop.
match
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$default = match (true) { | |
isset($this->sebdata[$name]) => $this->sebdata[$name], | |
isset($this->quiz->{$name}) => $this->quiz->{$name}, | |
default => $defaults[$name], | |
}; | |
$mform->setDefault($name, $default); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment