diff --git a/SimpleCaptcha/SimpleCaptcha.php b/SimpleCaptcha/SimpleCaptcha.php index 3d06ef59c..43a244920 100644 --- a/SimpleCaptcha/SimpleCaptcha.php +++ b/SimpleCaptcha/SimpleCaptcha.php @@ -630,7 +630,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.