-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Runtime exception originating from sniff fixers are not handled #2871
Comments
The discussion in #2851 is related to this and contains some additional considerations to take into account. |
I found a case where a code (contains syntax error) produce crash in test.php: <?php
trait A {
private static $a = "output\n";
public static function getA(): string {
return self::$a;
}
}
class B {
use A {
A::$a as $b;
};
private static $a = "new\n";
}
$b = new B();
echo $b->getA();
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See the original discussion starting #2851 (comment).
Currently, the runtime exceptions originating from sniff fixers are not handled by the runner and cause the application to crash. The downsides of such behavior are:
The text was updated successfully, but these errors were encountered: