Skip to content

Commit b82cc6e

Browse files
authored
Class/interface constants are already found fine
1 parent 0beb15c commit b82cc6e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Rules/Deprecations/AccessDeprecatedConstant.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,6 @@ public function processNode(Node $node, Scope $scope): array
9797
'USER_REGISTER_ADMINISTRATORS_ONLY' => 'Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\user\UserInterface::REGISTER_ADMINISTRATORS_ONLY instead.',
9898
'USER_REGISTER_VISITORS' => 'Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\user\UserInterface::REGISTER_VISITORS instead.',
9999
'USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL' => 'Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\user\UserInterface::REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL instead.',
100-
// 'BlockInterface::BLOCK_LABEL_VISIBLE' => 'Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Block\BlockPluginInterface::BLOCK_LABEL_VISIBLE.',
101-
// 'BlockInterface::BLOCK_REGION_NONE' => 'Deprecated in drupal:8.?.? and is removed from drupal:9.0.0.',
102-
// 'WorkspaceInterface::DEFAULT_WORKSPACE' => 'Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\workspaces\WorkspaceManager::hasActiveWorkspace() instead.',
103-
// 'PluralTranslatableMarkup::DELIMITER' => 'Deprecated in drupal:8.7.0 and is removed from drupal:9.0.0. Use Drupal\Component\Gettext\PoItem::DELIMITER instead.',
104-
// 'FieldMigration::PLUGIN_METHOD' => 'Deprecated in drupal:8.7.0 and is removed from drupal:9.0.0. Use the migrate_drupal.field_discovery service instead. See https://www.drupal.org/node/3006076.',
105100
];
106101
$constantName = $this->broker->resolveConstantName($node->name, $scope);
107102
if (isset($deprecatedConstants[$constantName])) {

0 commit comments

Comments
 (0)