Skip to content

fix issue #341: update generated files based on new DomHandler release#343

Merged
mikaelcom merged 1 commit into
developfrom
feature/issue-341
Jun 30, 2026
Merged

fix issue #341: update generated files based on new DomHandler release#343
mikaelcom merged 1 commit into
developfrom
feature/issue-341

Conversation

@mikaelcom

Copy link
Copy Markdown
Member

No description provided.

@mikaelcom
mikaelcom force-pushed the feature/issue-341 branch from 7b74cae to 9d09395 Compare June 16, 2026 22:01
@mikaelcom mikaelcom changed the title fix issue #341: update jsons based on new DomHandler release fix issue #341: update generated files based on new DomHandler release Jun 16, 2026
Comment thread tests/resources/generated/ValidAddressType.php Outdated
@mikaelcom
mikaelcom force-pushed the feature/issue-341 branch from 9d09395 to d5ccb55 Compare June 17, 2026 09:37
@github-actions

Copy link
Copy Markdown

Coverage Report

Totals Coverage
Statements: 97.1% ( 4089 / 4211 )
Methods: 93.54% ( 709 / 758 )
Lines: 97.89% ( 3380 / 3453 )

StandWithUkraine

@sonarqubecloud

Copy link
Copy Markdown

@mikaelcom
mikaelcom requested review from a team and AndreasA and removed request for AndreasA June 19, 2026 04:39
$generator->parse();

// uncomment the next line to easily regenerate file :)
// file_put_contents(sprintf('%sjson_serialized.json', self::getTestDirectory()), trim(json_encode($generator, JSON_PRETTY_PRINT)));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just wondering but what is the difference to using the generate_serialized_jsons file specified in the Makefile?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These files are used for the tests and it avoids loading the WSDL + the schema each time needs to test a scenario against an element from the WSDL. The JSONs are the results of the parsed WSDL + Schemas and are loaded "instantly", it's just for performance during the tests

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I read again your question I answered too fast! What you say is that the test could rely on one of the updated json files? I did not think of that before 😉 (if that's actually your question)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah. No, my fault for not articulating the question well.

I was actually just wondering regarding the commented out line. It says above that it can be used to regenerate the serialized.json file(s).

However, in the makefile there is a new json entry that is used to call generate_serialized_jsons.php which I guess regenerates all json files?

Just wondering, if one of those would not be enough actually?

However, I guess the commented out line could be helpful if one only runs individual tests?

@AndreasA AndreasA left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

due to the amount of lines changed and as it is basically always the same chage (and it is tricky to keep exact track of progress - espeically the large files):

for the generated files (json and php) I only did spot checks or fast scroll through the files that they only change the corresponding removable check/necessary changes regarding removable.

@AndreasA

Copy link
Copy Markdown

@mikaelcom Btw. thanks for the invitation to the organization but I don't think it currenlty makes sense as I currently do not have the necessary time to invest in such projects on a more time intensive scale - so I will have to decline (at least for now).
However, it is a really helpful project for SOAP APIs in combination with PHP.

@mikaelcom

Copy link
Copy Markdown
Member Author

@mikaelcom Btw. thanks for the invitation to the organization but I don't think it currenlty makes sense as I currently do not have the necessary time to invest in such projects on a more time intensive scale - so I will have to decline (at least for now). However, it is a really helpful project for SOAP APIs in combination with PHP.

Hello, there's no comitment attached/awaited to the organization and more precisely to the group I intend to invite you in, its only purpose is to allow to you validate the PRs. Would you simply agree to that or not at all?

@AndreasA

Copy link
Copy Markdown

@mikaelcom

is it for the purpose of approving this PR for merge?

I guess I can join the organization then for that purpose. I can always leave it again - only currently needing to access some SOAP APIs again which is why I noticed such issues again 😄

@mikaelcom

Copy link
Copy Markdown
Member Author

is it for the purpose of approving this PR for merge?

Yes :)

@mikaelcom
mikaelcom merged commit 8ad2eaf into develop Jun 30, 2026
8 of 10 checks passed
@mikaelcom
mikaelcom deleted the feature/issue-341 branch June 30, 2026 18:57
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.

minOccurs="0" uses "null" instead of removing the array if nillable is not set or false

2 participants