-
Notifications
You must be signed in to change notification settings - Fork 75
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
Warnings invisible #644
Comments
Those deprecation warnings are reported following the Symfony convention, which avoids that an error handler turns them into exceptions (which would break things). Several projects (Symfony, Drupal, maybe Laravel but I'm not sure) have tooling that support that convention. |
I'm fine with deprecated. But the @ makes them invisible. |
This And as said before, if you have a tooling that is aware of this convention, it can make them visible. |
if you add scssphp as a library, you never see the deprecation-flag. I think the implementation of Symfony to turn deprecations to errors is nonsense. If someone intends to raise exceptions (errors) they will do this. Even php raises deprecations as a fundamental instrument to warn that this feature is soon removed. If you now suppress all warnings already in the lib, how should I distinguish between intenionally suppressed warnings and warnings in libs? Leave it, I don't put too much effort in this - but I don't think this is a wise decission, others like me, will never see this warning and get an fatal error in case you ever remove that piece of code. |
We follow semver. So the removal will only happen in the next major version. |
like php - so you remove the @ at the last release before the next final? At least this is the point where it should be intrusive. |
Setting warnings with
@trigger_error
does not show any warnings, if an custom error handler is installed!
Since php 7.x the error handler should check for error_reporting() and the reported type.
If an @ is added to trigger_error, this disables the error_reporting for this type.
I don't see, why you add an @ before trigger_error... What is the intention to suppress here. I suggest to remove the @, so the warning is visible to the users.
The text was updated successfully, but these errors were encountered: