Commit ca48d0ff authored by Markus Kalkbrenner's avatar Markus Kalkbrenner Committed by Thomas Seidl
Browse files

Issue #3253738 by mkalkbrenner, alexpott, drunken monkey: Fixed deprecation warnings in PHP 8.1.

parent 3fd58153
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
Search API 1.x, dev (xxxx-xx-xx):
---------------------------------
- #3253738 by mkalkbrenner, alexpott, drunken monkey: Fixed deprecation
  warnings in PHP 8.1.
- #3091198 by alexpott, drunken monkey: Fixed problems on MySQL 5.6/5.7.
- #3249801 by paulocs, beatrizrodrigues, drunken monkey: Fixed failing tests
  against Drupal HEAD.
+7 −1
Original line number Diff line number Diff line
@@ -540,9 +540,15 @@ class Database extends BackendPluginBase implements PluginFormInterface {
  public function viewSettings() {
    $info = [];

    if ($this->configuration['database']) {
      $database = str_replace(':', ' > ', $this->configuration['database']);
    }
    else {
      $database = $this->t('None selected yet');
    }
    $info[] = [
      'label' => $this->t('Database'),
      'info' => str_replace(':', ' > ', $this->configuration['database']),
      'info' => $database,
    ];
    if ($this->configuration['min_chars'] > 1) {
      $info[] = [
+2 −1
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ class Field implements \IteratorAggregate, FieldInterface {
  /**
   * The human-readable label for this field.
   *
   * @var string
   * @var string|null
   */
  protected $label;

@@ -665,6 +665,7 @@ class Field implements \IteratorAggregate, FieldInterface {
  /**
   * {@inheritdoc}
   */
  #[\ReturnTypeWillChange]
  public function getIterator() {
    return new \ArrayIterator($this->values);
  }
+2 −7
Original line number Diff line number Diff line
@@ -153,13 +153,8 @@ interface FieldInterface extends \Traversable {
  /**
   * Retrieves this field's label.
   *
   * The field's label, contrary to the label returned by the field's data
   * definition, contains a human-readable representation of the full property
   * path. The datasource label is not included, though – use getPrefixedLabel()
   * for that.
   *
   * @return string
   *   A human-readable label representing this field's property path.
   * @return string|null
   *   A human-readable label for this field, or NULL if none has been set yet.
   */
  public function getLabel();

+1 −0
Original line number Diff line number Diff line
@@ -455,6 +455,7 @@ class Item implements \IteratorAggregate, ItemInterface {
  /**
   * {@inheritdoc}
   */
  #[\ReturnTypeWillChange]
  public function getIterator() {
    return new \ArrayIterator($this->getFields());
  }
Loading