-
Notifications
You must be signed in to change notification settings - Fork 823
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
Type hinting doesn’t work #2928
Comments
Silverstripe doesn't report E_RECOVERABLE_ERROR See http://www.php.net/manual/en/errorfunc.constants.php Not sure if this is desirable behaviour though; Certainly in a strict / dev environment, these should probably bubble up. |
Thanks for the explanation @tractorcow, definitely think these should be visible in dev environments. If I’m understanding those PHP docs correctly, we should be passing this to Is this just a simple patch here? |
@kinglozzer that looks right. @tractorcow Should we not have a default catch-all for any unrecognized errors? At the moment it looks like they would just be ignored (as is the case here). |
Fixed by 4544129 |
Am I going mad?
Something.php
Page.php
Expected: fatal error. Actual: no error. If I try this outside of a SilverStripe install it errors as expected. Am I being incredibly dumb here?
The text was updated successfully, but these errors were encountered: