Problem/Motivation

When using PHP 8.4 this module is triggering a "use explicit nullable type" deprecation.

----------------------------------------------------------------------------------------------------------------------------------------------
elasticsearch_helper/src/Elasticsearch/Index/FieldDefinition.php
----------------------------------------------------------------------------------------------------------------------------------------------
Deprecated: Drupal\elasticsearch_helper\Elasticsearch\Index\FieldDefinition::toArray(): Implicitly marking parameter $source as nullable is deprecated, the explicit nullable type must be used instead
----------------------------------------------------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------------------------------------------------
elasticsearch_helper/src/Plugin/ElasticsearchIndexBase.php
----------------------------------------------------------------------------------------------------------------------------------------------
Deprecated: Drupal\elasticsearch_helper\Plugin\ElasticsearchIndexBase::dispatchOperationErrorEvent(): Implicitly marking parameter $request_wrapper as nullable is deprecated, the explicit nullable type must be used instead in 
------ ----------------------------------------------------------------------------------------------------------------------------------------

Proposed resolution

Use Implicitly nullable parameter as requested by PHP 8.4

Remaining tasks

  • make a patch
  • review
  • merge

User interface changes

None

API changes

None

Data model changes

None

CommentFileSizeAuthor
#2 3567466-02.patch2.36 KBwengerk

Comments

wengerk created an issue. See original summary.

wengerk’s picture

StatusFileSize
new2.36 KB

Here is the patch attached