-
Notifications
You must be signed in to change notification settings - Fork 54
Separate regular PhD output from error handling #176
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
Separate regular PhD output from error handling #176
Conversation
Move error handling code into a class and remove PhD message output handling from it. Introduce a new class to handle PhD message output. Make the implicit dependency on the output functionality of classes explicit. Update PEAR package.xml. Fix tests.
| if (\LIBXML_VERSION >= 20620) { | ||
| return self::readString(); | ||
| } | ||
| v("You are using libxml2 v%d, but v20620 or newer is preferred", \LIBXML_VERSION, VERBOSE_OLD_LIBXML); | ||
| $this->outputHandler->v("You are using libxml2 v%d, but v20620 or newer is preferred", \LIBXML_VERSION, VERBOSE_OLD_LIBXML); | ||
|
|
||
| $node = $this->name; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside, how old/recent is this version? Might make sense to drop this in a follow-up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's from July of 2005. :-)
Girgias
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor final comment, but LGTM thank you!
|
Test failure is PHP 8.0 tests failing due the first-class callable syntax. We already had Edit: |
Move error handling code into a class and remove PhD message output handling from it.
Introduce a new class to handle PhD message output.
Make the implicit dependency on the output functionality of classes explicit.
Update PEAR package.xml.
Fix tests.