Initialisation des variables potentiellement non définies (PHPStan lvl 1)#3257
Open
kwizer15 wants to merge 1 commit intojeedom:developfrom
Open
Initialisation des variables potentiellement non définies (PHPStan lvl 1)#3257kwizer15 wants to merge 1 commit intojeedom:developfrom
kwizer15 wants to merge 1 commit intojeedom:developfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Ajout de l'initialisation des variables qui peuvent être utilisées avant d'être définies, détectées par PHPStan au niveau 1.
Chaque modification est une simple initialisation de variable (
$var = null,$var = [], etc.) avant un bloc conditionnel ou une boucle qui l'assigne. Aucun changement de comportement.Fichiers concernés :
core/ajax/eqLogic.ajax.php—$eqLogiccore/ajax/scenario.ajax.php—$convertscore/ajax/user.ajax.php—$configs(appelconfig::byKeysmanquant)core/api/jeeApi.php—$object,$cmd,$scenario,$update(x2)core/class/history.class.php—$goupingTypecore/class/interactQuery.class.php—$closest,$objects,$cmdcore/class/jeeObject.class.php—$eventscore/class/update.class.php—$urlcore/class/utils.class.php—$returncore/class/widgets.class.php—$_needRefreshWidgetcore/php/utils.inc.php—$returndanspageTitle()desktop/modal/planHeader.configure.php—$linkSuggested changelog entry
Initialisation de variables non définies détectées par PHPStan
Related issues/external references
Découpage de #3122
Types of changes
PR checklist