Commit 7a64deec authored by Youri van Koppen's avatar Youri van Koppen
Browse files

Issue #3261188 by MegaChriz: added note to add return types to...

Issue #3261188 by MegaChriz: added note to add return types to \Drupal\feeds\Component\CsvParser methods as soon as Drupal 9 is no longer supported.
parent e044eb20
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -187,6 +187,10 @@ class CsvParser implements \Iterator {

  /**
   * Implements \Iterator::current().
   *
   * @todo return type should be "mixed", but that keyword is only available
   * since PHP 8.0. Add that as soon as Drupal 9 is no longer supported. And
   * then remove the "#[\ReturnTypeWillChange]" line.
   */
  #[\ReturnTypeWillChange]
  public function current() {
@@ -195,6 +199,10 @@ class CsvParser implements \Iterator {

  /**
   * Implements \Iterator::key().
   *
   * @todo return type should be "mixed", but that keyword is only available
   * since PHP 8.0. Add that as soon as Drupal 9 is no longer supported. And
   * then remove the "#[\ReturnTypeWillChange]" line.
   */
  #[\ReturnTypeWillChange]
  public function key() {