fix phpstan (#28568)

This commit is contained in:
Frédéric FRANCE
2024-03-02 12:40:25 +01:00
committed by GitHub
parent 39debebe27
commit 99d7b76ba9
4 changed files with 20 additions and 44 deletions

View File

@@ -1,5 +1,6 @@
<?php
/* Copyright (C) 2006-2011 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -37,20 +38,6 @@ class modGeneratePassStandard extends ModeleGenPassword
public $picto = 'fa-shield-alt';
/**
* Minimum length (text visible by end user)
*
* @var int
*/
public $length;
/**
* Minimum length in number of characters
*
* @var integer
*/
public $length2;
/**
* Constructor
*
@@ -62,7 +49,7 @@ class modGeneratePassStandard extends ModeleGenPassword
public function __construct($db, $conf, $langs, $user)
{
$this->id = "standard";
$this->length = 12;
$this->length = '12';
$this->length2 = 12;
$this->db = $db;