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

Ignore unknown node types #8

Closed
wants to merge 2 commits into from
Closed

Ignore unknown node types #8

wants to merge 2 commits into from

Conversation

thijskok
Copy link

@thijskok thijskok commented Mar 7, 2024

We came across a Jira issue description that included a type called mediaInline. It caused the parser to crash:

Undefined array key "mediaInline"
vendor/damienharper/adf-tools/src/Node/BlockNode.php:40 DH\Adf\Node\BlockNode::load

This PR includes a condition that ignores undefined types and allows the loading process to continue.

Copy link

codecov bot commented Mar 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.54%. Comparing base (b7bb3d7) to head (587f884).

Additional details and impacted files
@@             Coverage Diff              @@
##               main       #8      +/-   ##
============================================
+ Coverage     91.52%   91.54%   +0.01%     
- Complexity      276      277       +1     
============================================
  Files            76       76              
  Lines           861      863       +2     
============================================
+ Hits            788      790       +2     
  Misses           73       73              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@thijskok thijskok closed this by deleting the head repository Apr 16, 2024
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.

1 participant