Verified Commit 6a004b1f authored by godotislate's avatar godotislate
Browse files

fix: #3591520 Fix format of some deprecation messages

By: bbrala
By: quietone
By: dcam
parent eeb5c183
Loading
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -467,28 +467,28 @@ public static function getSubscribedEvents(): array {
   * {@inheritdoc}
   */
  public function write($name, array $data): never {
    throw new \BadMethodCallException(__METHOD__ . ' is not allowed on a CheckpointStorage');
    throw new \BadMethodCallException(__METHOD__ . '() is not allowed on a CheckpointStorage');
  }

  /**
   * {@inheritdoc}
   */
  public function delete($name): never {
    throw new \BadMethodCallException(__METHOD__ . ' is not allowed on a CheckpointStorage');
    throw new \BadMethodCallException(__METHOD__ . '() is not allowed on a CheckpointStorage');
  }

  /**
   * {@inheritdoc}
   */
  public function rename($name, $new_name): never {
    throw new \BadMethodCallException(__METHOD__ . ' is not allowed on a CheckpointStorage');
    throw new \BadMethodCallException(__METHOD__ . '() is not allowed on a CheckpointStorage');
  }

  /**
   * {@inheritdoc}
   */
  public function deleteAll($prefix = ''): never {
    throw new \BadMethodCallException(__METHOD__ . ' is not allowed on a CheckpointStorage');
    throw new \BadMethodCallException(__METHOD__ . '() is not allowed on a CheckpointStorage');
  }

}
+4 −4
Original line number Diff line number Diff line
@@ -49,21 +49,21 @@ public function readMultiple(array $names) {
   * {@inheritdoc}
   */
  public function write($name, array $data) {
    throw new \BadMethodCallException(__METHOD__ . ' is not allowed on a ReadOnlyStorage');
    throw new \BadMethodCallException(__METHOD__ . '() is not allowed on a ReadOnlyStorage');
  }

  /**
   * {@inheritdoc}
   */
  public function delete($name) {
    throw new \BadMethodCallException(__METHOD__ . ' is not allowed on a ReadOnlyStorage');
    throw new \BadMethodCallException(__METHOD__ . '() is not allowed on a ReadOnlyStorage');
  }

  /**
   * {@inheritdoc}
   */
  public function rename($name, $new_name) {
    throw new \BadMethodCallException(__METHOD__ . ' is not allowed on a ReadOnlyStorage');
    throw new \BadMethodCallException(__METHOD__ . '() is not allowed on a ReadOnlyStorage');
  }

  /**
@@ -91,7 +91,7 @@ public function listAll($prefix = '') {
   * {@inheritdoc}
   */
  public function deleteAll($prefix = '') {
    throw new \BadMethodCallException(__METHOD__ . ' is not allowed on a ReadOnlyStorage');
    throw new \BadMethodCallException(__METHOD__ . '() is not allowed on a ReadOnlyStorage');
  }

  /**
+1 −1
Original line number Diff line number Diff line
@@ -865,7 +865,7 @@ public function getUriCallback() {
   * {@inheritdoc}
   */
  public function setUriCallback($callback) {
    @trigger_error(__METHOD__ . ' is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. Use link templates or a route provider to specify entity URIs. See https://www.drupal.org/node/3575062', E_USER_DEPRECATED);
    @trigger_error(__METHOD__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. Use link templates or a route provider to specify entity URIs. See https://www.drupal.org/node/3575062', E_USER_DEPRECATED);
    $this->uri_callback = $callback;
    return $this;
  }
+1 −1
Original line number Diff line number Diff line
@@ -550,7 +550,7 @@ protected function mapFromStorageRecords(array $records, $load_from_revision = F
   * @see https://www.drupal.org/node/3586362
   */
  protected function loadFromSharedTables(array &$values, array &$translations, $load_from_revision) {
    @trigger_error(__METHOD__ . ' is deprecated in drupal:11.4.0 and is removed from drupal:12.0.0. There is no replacement. See https://www.drupal.org/node/3586362');
    @trigger_error(__METHOD__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:12.0.0. There is no replacement. See https://www.drupal.org/node/3586362');
    $record_key = !$load_from_revision ? $this->idKey : $this->revisionKey;
    if ($this->dataTable) {
      // If a revision table is available, we need all the properties of the
+1 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ public function __construct(
  ) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
    if ($toolkit instanceof ImageToolkitInterface) {
      @trigger_error('The $toolkit argument of ' . __METHOD__ . ' is deprecated in drupal:11.4.0 and the argument is removed from drupal:13.0.0. Use ::setToolkit() instead. See https://www.drupal.org/node/3562304', E_USER_DEPRECATED);
      @trigger_error('The $toolkit argument of ' . __METHOD__ . '() is deprecated in drupal:11.4.0 and the argument is removed from drupal:13.0.0. Use ::setToolkit() instead. See https://www.drupal.org/node/3562304', E_USER_DEPRECATED);
      $this->toolkit = $toolkit;
      $this->logger = $logger;
    }
Loading