you should explain the allowed values here: a PHP type with the naming used by the associated ``is_*`` function or a class name.

And you should document that you can also pass an array of allowed types to allow several ones, for instance ``array('null', 'string')`` to allow ``null`` and strings.