-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
wp_die()
not exclusively an early terminating function
#200
Comments
wp_die()
not exclusively a early terminating functionwp_die()
not exclusively an early terminating function
WordPress is so weird PHPStan cannot follow. What is your plan? |
😆 Don't know. Maybe putting Or adding an extension checking for the exit key in |
Okay! Thank you. |
Related php-stubs/wordpress-stubs#36 |
wp_die()
is treated as if it terminated script execution early:phpstan-wordpress/extension.neon
Lines 126 to 127 in 76f7835
But for
wp_die('', '', ['exit' => false])
the script execution will not be terminated in any of WP's wp_die handlers.The text was updated successfully, but these errors were encountered: