Fix undefined variable in AJAX remove after market→repo migration #3118
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Cette PR corrige un problème détecté par PHPStan : une variable
$market
était utilisée sans avoir été définie au préalable dans le processus de suppression de dépôt via AJAX.En analysant le code, il semble que la variable
$repo
était initialement utilisée mais a été renommée en$market
à un moment donné, probablement lors d'une évolution du système. Cependant, l'assignation de la variable n'avait pas été mise à jour en conséquence.Le correctif renomme
$repo
en$market
dans l'assignation pour maintenir la cohérence avec le reste du code qui utilise cette variable.Suggested changelog entry
Correction d'une variable non définie détectée par PHPStan lors de la suppression de dépôt via AJAX
Related issues/external references
N/A
Types of changes
PR checklist