Commit d130c43b authored by catch's avatar catch
Browse files

fix: #3557557...

fix: #3557557 Drupal\Core\FileTransfer\Form\FileTransferAuthorizeForm->setConnectionSettingsDefaults()() (Line: 312) triggers deprecations in PHP 8.5

By: @alexpott
(cherry picked from commit 751b48f9)
parent 2c5cae15
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -291,7 +291,7 @@ protected function addConnectionSettings($backend) {
   *
   * @param array $element
   *   Reference to the Form API form element we're operating on.
   * @param string $key
   * @param string|null $key
   *   The key for our current form element, if any.
   * @param array $defaults
   *   The default settings for the file transfer backend we're operating on.
@@ -309,7 +309,7 @@ protected function setConnectionSettingsDefaults(&$element, $key, array $default
    // processing, pass in that subarray to the recursive call. Otherwise, just
    // pass on the whole $defaults array.
    foreach (Element::children($element) as $child_key) {
      $this->setConnectionSettingsDefaults($element[$child_key], $child_key, ((isset($defaults[$key]) && is_array($defaults[$key])) ? $defaults[$key] : $defaults));
      $this->setConnectionSettingsDefaults($element[$child_key], $child_key, ((isset($key, $defaults[$key]) && is_array($defaults[$key])) ? $defaults[$key] : $defaults));
    }
  }