Skip to content

fix issue #646 - #649

Merged
phil-davis merged 4 commits into
sabre-io:masterfrom
JohnRDOrazio:validation-fix
May 9, 2024
Merged

phil-davis merged 4 commits into
sabre-io:masterfrom
JohnRDOrazio:validation-fix

Conversation

@JohnRDOrazio

@JohnRDOrazio JohnRDOrazio commented Apr 23, 2024 •

Copy link
Copy Markdown
Contributor

add lineIndex and lineString properties to a Property Node

issue #646

@JohnRDOrazio

Copy link
Copy Markdown
Contributor Author

if this PR is accepted, perhaps documentation could be updated to explain how to access the properties of a node, and warn against simply trying to json_encode the resulting errors...

@JohnRDOrazio

Copy link
Copy Markdown
Contributor Author

I added a Unit Test that will check for lineIndex and lineString properties when validating defective calendar data.

@codecov

codecov Bot commented May 7, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.78%. Comparing base (f14092f) to head (ec31757).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #649   +/-   ##
=========================================
  Coverage     98.78%   98.78%           
- Complexity     1866     1868    +2     
=========================================
  Files            71       71           
  Lines          5249     5253    +4     
=========================================
+ Hits           5185     5189    +4     
  Misses           64       64           

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

@phil-davis

Copy link
Copy Markdown
Contributor

@JohnRDOrazio php-cs-fixer wants some formatting adjusted.
You can:
composer cs-fixer
and commit and push the changes it makes.

@phil-davis
phil-davis requested review from phil-davis and staabm May 8, 2024 10:30

@phil-davis phil-davis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM - this implements error handling features similar to what happens elsewhere (see the PR and issue #646 discussions.

@staabm staabm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I like the change!

@staabm staabm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thank you!

@phil-davis
phil-davis merged commit 8a2dab4 into sabre-io:master May 9, 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.

3 participants