- Issue created by @idebr
- 🇮🇳India divyansh.gupta Jaipur
I have reviewed the issue and the changes looks good to me because now the code allowds $response to be NULL.
Thus moving this to RTBC.
hook_rabbit_hole_response_alter generates a TypeError for nodes with default settings:
TypeError: rabbit_hole_rabbit_hole_response_alter(): Argument #1 ($response) must be of type Response, null given, called in /[...]/core/lib/Drupal/Core/Extension/ModuleHandler.php on line 459 in rabbit_hole_rabbit_hole_response_alter() (line 85 of modules/contrib/rabbit_hole/rabbit_hole.module).
Allow $response
in hook_rabbit_hole_response_alter() to be NULL.
None
hook_rabbit_hole_response_alter() now allows $response
to be NULL.
None
Active
2.0
Code
I have reviewed the issue and the changes looks good to me because now the code allowds $response to be NULL.
Thus moving this to RTBC.