mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-03 15:42:29 +01:00
fix phpstan (#28568)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user