tests: Support passing null to setExpectedException() in compat layer
[lhc/web/wiklou.git] / includes / auth / CreationReasonAuthenticationRequest.php
index 1711aec..146470e 100644 (file)
@@ -10,6 +10,8 @@ class CreationReasonAuthenticationRequest extends AuthenticationRequest {
        /** @var string Account creation reason (only used when creating for someone else) */
        public $reason;
 
+       public $required = self::OPTIONAL;
+
        public function getFieldInfo() {
                return [
                        'reason' => [