mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-09-23 10:22:37 +00:00
Merge "Replace gettype() with get_debug_type() in exception messages"
This commit is contained in:
commit
a1047fd2f6
|
@ -631,7 +631,7 @@ class SimpleCaptcha {
|
|||
if ( $newtext !== null && $wgCaptchaRegexes ) {
|
||||
if ( !is_array( $wgCaptchaRegexes ) ) {
|
||||
throw new UnexpectedValueException(
|
||||
'$wgCaptchaRegexes is required to be an array, ' . gettype( $wgCaptchaRegexes ) . ' given.'
|
||||
'$wgCaptchaRegexes is required to be an array, ' . get_debug_type( $wgCaptchaRegexes ) . ' given.'
|
||||
);
|
||||
}
|
||||
// Custom regex checks. Reuse $oldtext if set above.
|
||||
|
|
Loading…
Reference in a new issue