3 namespace Wikimedia\ParamValidator\TypeDef
;
5 use Wikimedia\ParamValidator\ParamValidator
;
8 * Type definition for "password" types
10 * This is a string type that forces PARAM_SENSITIVE = true.
15 class PasswordDef
extends StringDef
{
17 public function normalizeSettings( array $settings ) {
18 $settings[ParamValidator
::PARAM_SENSITIVE
] = true;
19 return parent
::normalizeSettings( $settings );