Skip to content
Snippets Groups Projects
Commit df6936e1 authored by Jon Minder's avatar Jon Minder
Browse files

Issue #3456989: Fatal error after Upgrade to Drupal 10.3 and Search API 1.53

parent cb0ccc7c
No related branches found
No related tags found
No related merge requests found
...@@ -461,12 +461,23 @@ class ElasticSearchBackend extends BackendPluginBase implements PluginFormInterf ...@@ -461,12 +461,23 @@ class ElasticSearchBackend extends BackendPluginBase implements PluginFormInterf
* *
* Make sure that the client does not get serialized. * Make sure that the client does not get serialized.
*/ */
public function __sleep() { public function __sleep(): array {
$vars = $this->traitSleep(); $vars = $this->traitSleep();
unset($vars[array_search('client', $vars)]); unset($vars[array_search('client', $vars)]);
return $vars; return $vars;
} }
/**
* {@inheritdoc}
*
* @todo Method overriding is to support return types in 10.x. Remove
* once drupal:10.x support is dropped.
*/
// phpcs:ignore
public function __wakeup(): void {
parent::__wakeup();
}
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment