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 & Enable PhanTypeInvalidPropertyName #29037

Merged
merged 13 commits into from
Mar 24, 2024

Conversation

mdeweerd
Copy link
Contributor

@mdeweerd mdeweerd commented Mar 23, 2024

Fix & Enable PhanTypeInvalidPropertyName

This PR fixes several PhanTypeInvalidPropertyName occurences, except the follwoing.

htdocs\comm\mailing\class\html.formadvtargetemailing.class.php

There is a test empty($InfoFieldList[1]) suggesting that this field can be empty, but it is then used untested as a property name - strange.

pdf_ classes

The $arrayidcontact = $object->$origin->getIdContact('external', 'SHIPPING'); assignments in the pdf_* classes were not fixed.
It seems that this assignment should be avoided: it seems to be done already once earlier in the method and IMHO the $arrayidcontact value should be reused as the first assignement qualifies that $object->$origin is an object, where the second assignement does not.
However, I prefer that a person with more dolibarr experience checks that out.

(Apart from the above, the PhanTypeInvalidPropertyName are fixed.

@mdeweerd mdeweerd force-pushed the fix/PhanTypeInvalidPropertyName branch 4 times, most recently from 23705de to 913b89d Compare March 23, 2024 22:57
@mdeweerd mdeweerd changed the title Fix & Enable PhanTypeInvalidPropertyName (WIP) Fix & Enable PhanTypeInvalidPropertyName Mar 23, 2024
@mdeweerd mdeweerd force-pushed the fix/PhanTypeInvalidPropertyName branch 3 times, most recently from d4c6daf to 7f5dc89 Compare March 24, 2024 01:11
@mdeweerd mdeweerd marked this pull request as ready for review March 24, 2024 01:24
eldy added a commit that referenced this pull request Mar 24, 2024
@mdeweerd mdeweerd force-pushed the fix/PhanTypeInvalidPropertyName branch from 299eac7 to 96d1f25 Compare March 24, 2024 10:05
@mdeweerd mdeweerd force-pushed the fix/PhanTypeInvalidPropertyName branch from 96d1f25 to f357056 Compare March 24, 2024 10:10
@eldy eldy merged commit 8414276 into Dolibarr:develop Mar 24, 2024
7 checks passed
@mdeweerd mdeweerd deleted the fix/PhanTypeInvalidPropertyName branch March 24, 2024 13:58
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