Commit 421d9636 authored by Kalle Kipinä's avatar Kalle Kipinä Committed by Markus Kalkbrenner
Browse files

Issue #3314863 by kekkis, mkalkbrenner: PHP 7 incompatibility - TypeError:...

Issue #3314863 by kekkis, mkalkbrenner: PHP 7 incompatibility - TypeError: Argument 2 passed to Drupal\search_api_solr\Event\PreAddLanguageFallbackFieldEvent::__construct() must be an instance of Drupal\search_api_solr\Event\mixed, array given
parent 3b2175da
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ final class PreAddLanguageFallbackFieldEvent extends Event {
   * @param \Drupal\search_api\Item\ItemInterface $item
   *   The Search API item the field belongs to.
   */
  public function __construct(string $langcode, mixed $value, string $type, ItemInterface $item) {
  public function __construct(string $langcode, $value, string $type, ItemInterface $item) {
    $this->langcode = $langcode;
    $this->value = $value;
    $this->type = $type;
@@ -76,7 +76,7 @@ final class PreAddLanguageFallbackFieldEvent extends Event {
   * @return mixed
   *   The field values.
   */
  public function getValue(): mixed {
  public function getValue() {
    return $this->value;
  }

@@ -87,7 +87,7 @@ final class PreAddLanguageFallbackFieldEvent extends Event {
   *   The field value. If you supply NULL as the value and no modifier the
   *   field will be removed.
   */
  public function setValue(mixed $value): void {
  public function setValue($value): void {
    $this->value = $value;
  }