Verified Commit a997dea2 authored by Jess's avatar Jess
Browse files

Issue #3327853 by Spokje, bbrala, longwave: Don't allow {@inheritDoc} annotation in PHPDocBlocks

(cherry picked from commit 36a8edd9)
parent 580555e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ public function __construct(SelectionPluginManagerInterface $selection_manager)
  }

  /**
   * {@inheritDoc}
   * {@inheritdoc}
   */
  public function getMatches($target_type, $selection_handler, $selection_settings, $string = '') {
    $matches = [];
+1 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ public function __construct(array $configuration, string $plugin_id, CKEditor5Pl
  }

  /**
   * {@inheritDoc}
   * {@inheritdoc}
   */
  public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
    return new static(
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ public function __construct(array $configuration, string $plugin_id, CKEditor5Pl
  }

  /**
   * {@inheritDoc}
   * {@inheritdoc}
   */
  public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
    return new static(
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ public function getValueOptions() {
  }

  /**
   * {@inheritDoc}
   * {@inheritdoc}
   */
  protected function valueForm(&$form, FormStateInterface $form_state) {
    parent::valueForm($form, $form_state);
+19 −19
Original line number Diff line number Diff line
@@ -13,28 +13,28 @@
class DummyExternalReadOnlyWrapper extends ReadOnlyStream {

  /**
   * @inheritDoc
   * {@inheritdoc}
   */
  public static function getType() {
    return StreamWrapperInterface::READ_VISIBLE;
  }

  /**
   * @inheritDoc
   * {@inheritdoc}
   */
  public function getName() {
    return t('Dummy external stream wrapper (readonly)');
  }

  /**
   * @inheritDoc
   * {@inheritdoc}
   */
  public function getDescription() {
    return t('Dummy external read-only stream wrapper for testing.');
  }

  /**
   * @inheritDoc
   * {@inheritdoc}
   */
  public function getExternalUrl() {
    [, $target] = explode('://', $this->uri, 2);
@@ -42,105 +42,105 @@ public function getExternalUrl() {
  }

  /**
   * @inheritDoc
   * {@inheritdoc}
   */
  public function realpath() {
    return FALSE;
  }

  /**
   * @inheritDoc
   * {@inheritdoc}
   */
  public function dirname($uri = NULL) {
    return FALSE;
  }

  /**
   * @inheritDoc
   * {@inheritdoc}
   */
  public function dir_closedir() {
    return FALSE;
  }

  /**
   * @inheritDoc
   * {@inheritdoc}
   */
  public function dir_opendir($path, $options) {
    return FALSE;
  }

  /**
   * @inheritDoc
   * {@inheritdoc}
   */
  public function dir_readdir() {
    return FALSE;
  }

  /**
   * @inheritDoc
   * {@inheritdoc}
   */
  public function dir_rewinddir() {
    return FALSE;
  }

  /**
   * @inheritDoc
   * {@inheritdoc}
   */
  public function stream_cast($cast_as) {
    return FALSE;
  }

  /**
   * @inheritDoc
   * {@inheritdoc}
   */
  public function stream_close() {
    return FALSE;
  }

  /**
   * @inheritDoc
   * {@inheritdoc}
   */
  public function stream_eof() {
    return FALSE;
  }

  /**
   * @inheritDoc
   * {@inheritdoc}
   */
  public function stream_read($count) {
    return FALSE;
  }

  /**
   * @inheritDoc
   * {@inheritdoc}
   */
  public function stream_seek($offset, $whence = SEEK_SET) {
    return FALSE;
  }

  /**
   * @inheritDoc
   * {@inheritdoc}
   */
  public function stream_set_option($option, $arg1, $arg2) {
    return FALSE;
  }

  /**
   * @inheritDoc
   * {@inheritdoc}
   */
  public function stream_stat() {
    return FALSE;
  }

  /**
   * @inheritDoc
   * {@inheritdoc}
   */
  public function stream_tell() {
    return FALSE;
  }

  /**
   * @inheritDoc
   * {@inheritdoc}
   */
  public function url_stat($path, $flags) {
    return FALSE;
Loading