-
-
Notifications
You must be signed in to change notification settings - Fork 190
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
ErrorException (E_NOTICE) Undefined index: function #244
Comments
Hey @Nuranto could you show us a little more specific when this occurs and on what PHP version you are running we cannot seem to reproduce it on our side? |
PHP 7.3.5
This time, it happenned because I had two |
Thanks! It will help if we have a reproducible case to see why this is happening! |
Just tried to reproduce with double default in a switch in a controller, but I can't reproduce. So it is clearly not error-related. |
Ok, I found a way to reproduce :
and inside a blade view :
|
@Nuranto many thanks for giving us this case, it seems related to xdebug (which was the missing link in our tests). We're tracking a fix here: getsentry/sentry-php#823, so I'll close this one. Many thanks for giving us a reproducible case! |
vendor/sentry/sentry/src/Stacktrace.php
$functionName = sprintf('%s::%s', $backtraceFrame['class'], $backtraceFrame['function']);
The (stupid) error (which I get with sentry disabled) was :
Just a switch with 2
default:
The text was updated successfully, but these errors were encountered: