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

Add a way to avoid throwing Exceptions #324

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

bburnichon
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? no
Fixed tickets
License MIT

Description

Currently, there are ways to continue extraction as soon as an invalid Node is encountered. This PR does not throw exception if a logger is present.

Todos

  • Tests
  • Documentation
  • Changelog

@bburnichon bburnichon force-pushed the feature/avoid-throwing-exceptions branch from d80563b to 667a141 Compare March 24, 2016 15:09

public function setLogger(LoggerInterface $logger)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add PHP doc block

@Nyholm
Copy link
Collaborator

Nyholm commented Mar 24, 2016

Thank you for this PR. I really like the idea of removing that ugly FIXME. But I believe we should do it on a case-by-case basis instead of just logging the error if a logger exists.

Also, I would like to see some tests to this PR.

@bburnichon bburnichon force-pushed the feature/avoid-throwing-exceptions branch from 657a498 to 9710dec Compare April 6, 2016 08:23
@bburnichon
Copy link
Contributor Author

@Nyholm rebased and restored ugly FIXME comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants