-
Notifications
You must be signed in to change notification settings - Fork 461
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
Fix withNoArgs() to work with PHP 7.2 #646
Conversation
@@ -330,7 +330,8 @@ protected function _matchArg($expected, &$actual) | |||
} | |||
if (is_string($expected) && !is_array($actual) && !is_object($actual)) { | |||
# push/pop an error handler here to to make sure no error/exception thrown if $expected is not a regex | |||
set_error_handler(function () {}); | |||
set_error_handler(function () { | |||
}); |
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.
that makes no difference for php 7.2
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.
ah, I see :)
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.
I fixed it because styleCI complained, no other reason
Thanks! |
I have rerun the travis project that tests this feature, and I am happy to report that this has resolved it. |
Simplest way I could think of of fixing #645 .