Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: PhanPossiblyUnsetPropertyOfThis - variable is unset #28714

Merged
merged 2 commits into from
Mar 9, 2024

Conversation

mdeweerd
Copy link
Contributor

@mdeweerd mdeweerd commented Mar 8, 2024

Fix: PhanPossiblyUnsetPropertyOfThis - variable is unset

Because the variable is unset to force recomputation, the Phan message is valid and the if condition is always true.

Hence, the if condition was commented.

Also added an initialisation to an empty array before assigning array fields.

# Fix: PhanPossiblyUnsetPropertyOfThis - variable is unset

Because the variable is unset to force recomputation, the Phan message
is valid and the if condition is always true.

Hence, the if condition was commented.

Also added an initialisation to an empty array before assigning array fields.
@mdeweerd mdeweerd force-pushed the fix/PhanPossiblyUnsetPropertyOfThis branch from 6267162 to a45b29b Compare March 8, 2024 21:46
@eldy eldy merged commit d13d661 into Dolibarr:develop Mar 9, 2024
6 checks passed
@mdeweerd mdeweerd deleted the fix/PhanPossiblyUnsetPropertyOfThis branch March 9, 2024 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants