- Issue created by @DhruvR
- Merge request !82fix the multiple implicit nullable variable in php 8.4 → (Open) created by Unnamed author
The Rabbit Hole module in Drupal is generating multiple PHP deprecation warnings related to implicitly marking parameters as nullable. These warnings indicate that the codebase needs to be updated to use explicit nullable types to comply with modern PHP standards. This is causing noise in logs and potential compatibility issues with newer PHP versions.
error_reporting(E_ALL | E_DEPRECATED)
).Update the Rabbit Hole module's codebase to use explicit nullable types (e.g., ?Type
) for the affected parameters in the following files and methods:
PageRedirect.php
: Update performAction($current_response)
and settingsForm($entity, $bundle_settings)
.RabbitHoleBehaviorPluginBase.php
: Update settingsForm($entity, $bundle_settings)
.RabbitHoleBehaviorPluginInterface.php
: Update settingsForm($entity, $bundle_settings)
.AccessDenied.php
: Update performAction($current_response)
.PageNotFound.php
: Update performAction($current_response)
.This will eliminate the deprecation warnings and ensure compatibility with PHP standards moving forward.
Active
1.0
Code