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

merge-requests/3272/head
xjm 2023-01-20 13:54:35 -06:00
parent 88cf76a010
commit 8813ad5cab
No known key found for this signature in database
GPG Key ID: 206B0B8743BDF4C2
13 changed files with 32 additions and 32 deletions

View File

@ -29,7 +29,7 @@ class EntityAutocompleteMatcher implements EntityAutocompleteMatcherInterface {
}
/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function getMatches($target_type, $selection_handler, $selection_settings, $string = '') {
$matches = [];

View File

@ -34,7 +34,7 @@ class AjaxCssForm extends FormBase {
}
/**
* @inheritDoc
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
return new static($container->get('file_url_generator'));

View File

@ -55,7 +55,7 @@ class Media extends CKEditor5PluginDefault implements ContainerFactoryPluginInte
}
/**
* {@inheritDoc}
* {@inheritdoc}
*/
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static(

View File

@ -48,7 +48,7 @@ class MediaLibrary extends CKEditor5PluginDefault implements ContainerFactoryPlu
}
/**
* {@inheritDoc}
* {@inheritdoc}
*/
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static(

View File

@ -23,7 +23,7 @@ class DblogTypes extends InOperator {
}
/**
* {@inheritDoc}
* {@inheritdoc}
*/
protected function valueForm(&$form, FormStateInterface $form_state) {
parent::valueForm($form, $form_state);

View File

@ -13,28 +13,28 @@ use Drupal\Core\StreamWrapper\StreamWrapperInterface;
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 @@ class DummyExternalReadOnlyWrapper extends ReadOnlyStream {
}
/**
* @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;

View File

@ -46,7 +46,7 @@ class LinkCollectionNormalizerTest extends KernelTestBase {
protected $testUsers;
/**
* {@inheritDoc}
* {@inheritdoc}
*/
protected static $modules = [
'jsonapi',
@ -56,7 +56,7 @@ class LinkCollectionNormalizerTest extends KernelTestBase {
];
/**
* {@inheritDoc}
* {@inheritdoc}
*/
protected function setUp(): void {
parent::setUp();

View File

@ -496,7 +496,7 @@ class Migration extends PluginBase implements MigrationInterface, RequirementsIn
}
/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function getRequirements(): array {
return $this->requirements;

View File

@ -368,7 +368,7 @@ class Connection extends DatabaseConnection {
}
/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function hasJson(): bool {
try {

View File

@ -12,7 +12,7 @@ use Drupal\Core\Url;
class JSInteractionTestForm extends FormBase {
/**
* @inheritDoc
* {@inheritdoc}
*/
public function getFormId() {
return __CLASS__;

View File

@ -40,7 +40,7 @@ class UserControllerTest extends KernelTestBase {
];
/**
* {@inheritDoc}
* {@inheritdoc}
*/
protected function setUp(): void {

View File

@ -18,7 +18,7 @@ class ViewsConfigEntityTestViewsData implements EntityViewsDataInterface {
}
/**
* @inheritDoc
* {@inheritdoc}
*/
public function getViewsTableForEntityType(EntityTypeInterface $entity_type) {
return 'views_config_entity_test';

View File

@ -93,7 +93,7 @@ class WorkspaceRequestSubscriber implements EventSubscriberInterface {
}
/**
* {@inheritDoc}
* {@inheritdoc}
*/
public static function getSubscribedEvents() {
// Use a priority of 190 in order to run after the generic core subscriber.