Implicitly marking a parameter as nullable is deprecated since PHP 8.4

Created on 14 July 2025, 4 days ago

Problem/Motivation

phpcs detects

FILE: /var/www/html/web/modules/contrib/gdpr/modules/anonymizer/src/Anonymizer/AnonymizerInterface.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
26 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable
| | parameter: $field.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/gdpr/modules/anonymizer/src/Plugin/Anonymizer/LongTextAnonymizer.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
26 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable
| | parameter: $field.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/gdpr/modules/anonymizer/src/Plugin/Anonymizer/NumberAnonymizer.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
29 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable
| | parameter: $field.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/gdpr/modules/anonymizer/src/Plugin/Anonymizer/DateAnonymizer.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
24 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable
| | parameter: $field.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/gdpr/modules/anonymizer/src/Plugin/Anonymizer/ClearAnonymizer.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
26 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable
| | parameter: $field.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/gdpr/modules/anonymizer/src/Plugin/Anonymizer/TextAnonymizer.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
27 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable
| | parameter: $field.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/gdpr/modules/anonymizer/src/Plugin/Anonymizer/UsernameAnonymizer.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
26 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable
| | parameter: $field.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/gdpr/modules/anonymizer/src/Plugin/Anonymizer/RandomTextAnonymizer.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
26 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable
| | parameter: $field.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/gdpr/modules/anonymizer/src/Plugin/Anonymizer/UriAnonymizer.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
24 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable
| | parameter: $field.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/gdpr/modules/anonymizer/src/Plugin/Anonymizer/PasswordAnonymizer.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
80 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable
| | parameter: $field.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/gdpr/modules/anonymizer/src/Plugin/Anonymizer/EmailAnonymizer.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
24 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable
| | parameter: $field.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/gdpr/modules/gdpr_consent/src/Form/ConsentAgreementForm.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
41 | WARNING | Declaring an optional parameter with a non-nullable type and a null default value before a required parameter is deprecated since PHP 8.4 Parameter
| | $entity_type_bundle_info is optional, while parameter $current_user is required. The $entity_type_bundle_info parameter is implicitly treated as a required
| | parameter.
41 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable
| | parameter: $entity_type_bundle_info.
42 | WARNING | Declaring an optional parameter with a non-nullable type and a null default value before a required parameter is deprecated since PHP 8.4 Parameter $time is
| | optional, while parameter $current_user is required. The $time parameter is implicitly treated as a required parameter.
42 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable
| | parameter: $time.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/gdpr/modules/gdpr_fields/src/EntityTraversal.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
150 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable
| | parameter: $parent_config.
249 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable
| | parameter: $parent_config.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/gdpr/modules/gdpr_tasks/src/TaskManager.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------
121 | WARNING | The $escape parameter must be passed when calling fputcsv() as its default value will change in a future PHP version.
---------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/gdpr/modules/gdpr_tasks/src/Plugin/QueueWorker/GdprTasksSarWorker.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------------------
441 | WARNING | The $escape parameter must be passed when calling fgetcsv() as its default value will change in a future PHP version.
463 | WARNING | The $escape parameter must be passed when calling fputcsv() as its default value will change in a future PHP version.
---------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/gdpr/modules/gdpr_tasks/src/Traversal/RightToAccessDisplayTraversal.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
22 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable
| | parameter: $parent_config.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/gdpr/modules/gdpr_tasks/src/Traversal/RightToBeForgottenDisplayTraversal.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
23 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable
| | parameter: $parent_config.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/gdpr/modules/gdpr_tasks/src/Traversal/RightToAccessEntityTraversal.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
32 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable
| | parameter: $parent_config.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/gdpr/modules/gdpr_tasks/src/Traversal/RightToBeForgottenEntityTraversal.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
89 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable
| | parameter: $parent_config.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/gdpr/modules/gdpr_tasks/src/Form/TaskActionsForm.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
75 | WARNING | Declaring an optional parameter with a non-nullable type and a null default value before a required parameter is deprecated since PHP 8.4 Parameter
| | $entity_type_bundle_info is optional, while parameter $event_dispatcher is required. The $entity_type_bundle_info parameter is implicitly treated as a
| | required parameter.
75 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable
| | parameter: $entity_type_bundle_info.
76 | WARNING | Declaring an optional parameter with a non-nullable type and a null default value before a required parameter is deprecated since PHP 8.4 Parameter $time is
| | optional, while parameter $event_dispatcher is required. The $time parameter is implicitly treated as a required parameter.
76 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable
| | parameter: $time.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

🐛 Bug report
Status

Active

Version

3.1

Component

Code

Created by

🇪🇸Spain abelass

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024