Commit f8247057 authored by catch's avatar catch
Browse files

Issue #3236769 by andypost, alexpott, larowlan: PoItem causes deprecation errors on PHP 8.1

parent fb545897
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -197,7 +197,7 @@ public function setFromArray(array $values = []) {
    if (isset($this->source) &&
        strpos($this->source, self::DELIMITER) !== FALSE) {
      $this->setSource(explode(self::DELIMITER, $this->source));
      $this->setTranslation(explode(self::DELIMITER, $this->translation));
      $this->setTranslation(explode(self::DELIMITER, $this->translation ?? ''));
      $this->setPlural(count($this->source) > 1);
    }
  }