fix phpstan level 4 (#29954)

* fix phpstan level 4

* fix phpstan level 4
This commit is contained in:
Frédéric FRANCE
2024-06-09 13:26:45 +02:00
committed by GitHub
parent 5d5d1ea8c5
commit acd8fdc24e
5 changed files with 81 additions and 79 deletions

View File

@@ -2,6 +2,7 @@
/* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
* Copyright (C) 2020 Thibault FOUCART <support@ptibogxiv.net>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* 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
@@ -773,7 +774,7 @@ class Users extends DolibarrApi
* @return array
* @throws RestException
*/
private function _validate($data)
private function _validate($data) // @phpstan-ignore-line
{
$account = array();
foreach (Users::$FIELDS as $field) {