fix phpstan (#30032)

This commit is contained in:
Frédéric FRANCE 2024-06-15 15:07:15 +02:00 committed by GitHub
parent a3b05b6989
commit eecfb5fb43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,7 +5,8 @@
* Copyright (C) 2018 Ferran Marcet <fmarcet@2byte.es>
* Copyright (C) 2021 Alexandre Spangaro <aspangaro@open-dsi.fr>
* Copyright (C) 2023 Gauthier VERDOL <gauthier.verdol@atm-consulting.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* 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
@ -1351,7 +1352,7 @@ while ($i < $imaxinloop) {
if (!$i) {
$totalarray['pos'][$totalarray['nbfield']] = 't.planned_workload';
}
if (!isset($totalarray['val']['planned_workload'])) {
if (!isset($totalarray['val']['t.planned_workload'])) {
$totalarray['val']['t.planned_workload'] = 0;
}
$totalarray['val']['t.planned_workload'] += $obj->planned_workload;