-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Exception getCode() is not final method #4380
Comments
I will look at it. |
@hamidre13: Have a look at http://php.net/manual/en/class.exception.php, there is probably more methods that need to be made final. |
@Majkl578 : I will go through all of them. |
…ion class,in order to match with php
Reviewed By: @paroski, @JoelMarcey Differential Revision: D1736352 Signature: t1:1736352:1418398167:2b6d408c99a41f5224331b0837b4fb50cb283b5a
Hmm, any particular reason why this was reverted? cc @paroski @JoelMarcey |
Yup I read that, this comment is older than the reply there. |
Shouldn't this be re-opened? |
@steelbrain: We can re-open the issue, good point; but can't re-open the pull request yet until we decide on a good course of action here. |
Actually I do not understand why in Zend engine getCode() has final keyword. This incompatibility does not kill any cats in the world. Anyone that knows the rationale of final keyword in Zend engine? |
Since cleaning this up will be a mess, and it's probably not going to matter much in the end I'm going to close this issue. If anyone can think of a good reason this method needs to be final please comment below. |
In original PHP Exception class getCode() has final keyword, not overridable. But in HHVM it can be overriden. It's an incompability.
See: http://3v4l.org/j5h20
Related with #4379
The text was updated successfully, but these errors were encountered: