Commit 2584738b authored by catch's avatar catch
Browse files

fix: #3557346...

fix: #3557346 \Drupal\Core\Plugin\DefaultSingleLazyPluginCollection::addInstanceId() can cause deprecations on PHP 8.5

By: @alexpott
(cherry picked from commit 7f196889)
parent 54014181
Loading
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -46,6 +46,19 @@ public function &get($instance_id) {
    return parent::get($instance_id);
  }

  /**
   * {@inheritdoc}
   *
   * @return void
   *   Returns nothing.
   */
  public function addInstanceId($id, $configuration = NULL) {
    if (!$id) {
      throw new PluginException("The block '{$this->blockId}' did not specify a plugin.");
    }
    parent::addInstanceId($id, $configuration);
  }

  /**
   * {@inheritdoc}
   */