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.
16 class PasswordDef
extends StringDef
{
18 public function normalizeSettings( array $settings ) {
19 $settings[ParamValidator
::PARAM_SENSITIVE
] = true;
20 return parent
::normalizeSettings( $settings );