Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 23... Línea 23...
23
     * @param array $constraints Associative array of constraints to enforce.
23
     * @param array $constraints Associative array of constraints to enforce.
24
     *                           Accepts the following keys: "required", "min",
24
     *                           Accepts the following keys: "required", "min",
25
     *                           "max", and "pattern". If a key is not
25
     *                           "max", and "pattern". If a key is not
26
     *                           provided, the constraint will assume false.
26
     *                           provided, the constraint will assume false.
27
     */
27
     */
28
    public function __construct(array $constraints = null)
28
    public function __construct(?array $constraints = null)
29
    {
29
    {
30
        static $assumedFalseValues = [
30
        static $assumedFalseValues = [
31
            'required' => false,
31
            'required' => false,
32
            'min'      => false,
32
            'min'      => false,
33
            'max'      => false,
33
            'max'      => false,