Skip to content

QUAL: fix PHPStan warnings on project tasks mass actions#38

Merged
mapiolca merged 1 commit into2026-03-25-add-mass-actions-for-external-module-tasksfrom
2026-03-25-fix-phpstan-issues-in-codebase
Mar 25, 2026
Merged

QUAL: fix PHPStan warnings on project tasks mass actions#38
mapiolca merged 1 commit into2026-03-25-add-mass-actions-for-external-module-tasksfrom
2026-03-25-fix-phpstan-issues-in-codebase

Conversation

@mapiolca
Copy link
Copy Markdown
Owner

Motivation

  • Corriger des avertissements PHPStan relatifs aux actions de masse des tâches projet causés par des comparaisons lâches toujours vraies et un typage d'itérable manquant.

Description

  • Remplacement des conditions lâches par in_array($effectiveMassAction, array('update_selected_tasks_start_date', 'update_selected_tasks_deadline'), true) dans htdocs/projet/tasks/list.php et htdocs/projet/tasks.php.
  • Ajout de la précision de type @param array<int> $toselect pour la méthode Task::getAuthorizedTasksForMassAction() dans htdocs/projet/class/task.class.php.
  • Modifications comportementales nulles, visant uniquement à améliorer la qualité de l'analyse statique et la lisibilité.

Testing

  • Vérification de syntaxe PHP via php -l sur htdocs/projet/tasks/list.php, htdocs/projet/tasks.php et htdocs/projet/class/task.class.php — réussite.
  • Exécution de vendor/bin/phpstan analyse impossible car vendor/bin/phpstan est absent dans l'environnement de build.
  • Exécution globale phpstan analyse impossible car la commande phpstan n'est pas installée dans l'environnement de build.

Codex Task

@mapiolca mapiolca merged commit 3a88ddb into 2026-03-25-add-mass-actions-for-external-module-tasks Mar 25, 2026
3 checks passed
@mapiolca mapiolca deleted the 2026-03-25-fix-phpstan-issues-in-codebase branch March 25, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant