Deprecations message in PHP 8.4 Implicitly marking parameter as nullable
-
When using PHP 8.4 and the latest version of the Cookiebot plugin installed, the following Deprecation message shows up:
Deprecated: cybot\cookiebot\lib\traits\Class_Constant_Override_Validator_Trait::validate_required_array_class_constant(): Implicitly marking parameter $allowed_item_values as nullable is deprecated, the explicit nullable type must be used instead in /path/to/project/wp-content/plugins/cookiebot/src/lib/traits/Class_Constant_Override_Validator_Trait.php on line 124It should be quite easy to resolve. Inside the
Class_Constant_Override_Validator_Trait::validate_required_array_class_constantfunction, set the$allowed_item_valuesparameter type toarray|null, or remove the type.Hopefully you’re able to take a look into it, thanks in advance !
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.