Fix warnings

This commit is contained in:
ldestailleur
2025-08-06 13:19:01 +02:00
parent 96708d985b
commit 16e7c54947
3 changed files with 17 additions and 17 deletions

View File

@@ -628,7 +628,6 @@ function reWriteAllPermissions($file, $permissions, $key, $right, $objectname, $
'@phan-var-force array<int,string[]> $permissions';
if (!$error) {
// prepare permissions array
$count_perms = count($permissions);
foreach (array_keys($permissions) as $i) {
$permissions[$i][0] = "\$this->rights[\$r][0] = \$this->numero . sprintf('%02d', \$r + 1)";
$permissions[$i][1] = "\$this->rights[\$r][1] = '".$permissions[$i][1]."'";