Skip to content

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 visitPhpFile(\SplFileInfo $file, MessageCatalogue $catalogue, array $ast) { }
}

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