diff --git a/core/lib/Drupal/Component/DependencyInjection/Container.php b/core/lib/Drupal/Component/DependencyInjection/Container.php index 7f6d54b4c0..44fa2390ef 100644 --- a/core/lib/Drupal/Component/DependencyInjection/Container.php +++ b/core/lib/Drupal/Component/DependencyInjection/Container.php @@ -304,6 +304,8 @@ protected function createService(array $definition, $id) { /** * {@inheritdoc} + * + * @return void */ public function set($id, $service) { $this->services[$id] = $service; @@ -340,6 +342,8 @@ public function hasParameter($name): bool { /** * {@inheritdoc} + * + * @return void */ public function setParameter($name, $value) { if ($this->frozen) { diff --git a/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php b/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php index 4e0d579e25..3196abe19a 100644 --- a/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php +++ b/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php @@ -210,6 +210,8 @@ public function hasListeners($event_name = NULL): bool { /** * {@inheritdoc} + * + * @return void */ public function addListener($event_name, $listener, $priority = 0) { $this->listeners[$event_name][$priority][] = ['callable' => $listener]; @@ -218,6 +220,8 @@ public function addListener($event_name, $listener, $priority = 0) { /** * {@inheritdoc} + * + * @return void */ public function removeListener($event_name, $listener) { if (!isset($this->listeners[$event_name])) { @@ -255,6 +259,8 @@ public function removeListener($event_name, $listener) { /** * {@inheritdoc} + * + * @return void */ public function addSubscriber(EventSubscriberInterface $subscriber) { foreach ($subscriber->getSubscribedEvents() as $event_name => $params) { @@ -274,6 +280,8 @@ public function addSubscriber(EventSubscriberInterface $subscriber) { /** * {@inheritdoc} + * + * @return void */ public function removeSubscriber(EventSubscriberInterface $subscriber) { foreach ($subscriber->getSubscribedEvents() as $event_name => $params) { diff --git a/core/lib/Drupal/Core/Command/DbCommandBase.php b/core/lib/Drupal/Core/Command/DbCommandBase.php index ff620e4d9b..bed5092b2f 100644 --- a/core/lib/Drupal/Core/Command/DbCommandBase.php +++ b/core/lib/Drupal/Core/Command/DbCommandBase.php @@ -14,6 +14,8 @@ class DbCommandBase extends Command { /** * {@inheritdoc} + * + * @return void */ protected function configure() { $this->addOption('database', NULL, InputOption::VALUE_OPTIONAL, 'The database connection name to use.', 'default') diff --git a/core/lib/Drupal/Core/DependencyInjection/Compiler/AuthenticationProviderPass.php b/core/lib/Drupal/Core/DependencyInjection/Compiler/AuthenticationProviderPass.php index 20708e1221..939966cf17 100644 --- a/core/lib/Drupal/Core/DependencyInjection/Compiler/AuthenticationProviderPass.php +++ b/core/lib/Drupal/Core/DependencyInjection/Compiler/AuthenticationProviderPass.php @@ -12,6 +12,8 @@ class AuthenticationProviderPass implements CompilerPassInterface { /** * {@inheritdoc} + * + * @return void */ public function process(ContainerBuilder $container) { $authentication_providers = []; diff --git a/core/lib/Drupal/Core/DependencyInjection/Compiler/BackendCompilerPass.php b/core/lib/Drupal/Core/DependencyInjection/Compiler/BackendCompilerPass.php index b139bb71d5..994a60b158 100644 --- a/core/lib/Drupal/Core/DependencyInjection/Compiler/BackendCompilerPass.php +++ b/core/lib/Drupal/Core/DependencyInjection/Compiler/BackendCompilerPass.php @@ -35,6 +35,8 @@ class BackendCompilerPass implements CompilerPassInterface { /** * {@inheritdoc} + * + * @return void */ public function process(ContainerBuilder $container) { $driver_backend = NULL; diff --git a/core/lib/Drupal/Core/DependencyInjection/Compiler/ProxyServicesPass.php b/core/lib/Drupal/Core/DependencyInjection/Compiler/ProxyServicesPass.php index 1b1f03577c..9ae2828633 100644 --- a/core/lib/Drupal/Core/DependencyInjection/Compiler/ProxyServicesPass.php +++ b/core/lib/Drupal/Core/DependencyInjection/Compiler/ProxyServicesPass.php @@ -16,6 +16,8 @@ class ProxyServicesPass implements CompilerPassInterface { /** * {@inheritdoc} + * + * @return void */ public function process(ContainerBuilder $container) { foreach ($container->getDefinitions() as $service_id => $definition) { diff --git a/core/lib/Drupal/Core/DependencyInjection/Compiler/StackedKernelPass.php b/core/lib/Drupal/Core/DependencyInjection/Compiler/StackedKernelPass.php index da17bb5c64..81907c1f0d 100644 --- a/core/lib/Drupal/Core/DependencyInjection/Compiler/StackedKernelPass.php +++ b/core/lib/Drupal/Core/DependencyInjection/Compiler/StackedKernelPass.php @@ -50,6 +50,8 @@ class StackedKernelPass implements CompilerPassInterface { /** * {@inheritdoc} + * + * @return void */ public function process(ContainerBuilder $container) { diff --git a/core/lib/Drupal/Core/DependencyInjection/Compiler/TaggedHandlersPass.php b/core/lib/Drupal/Core/DependencyInjection/Compiler/TaggedHandlersPass.php index 8022440efa..2e0fa74c32 100644 --- a/core/lib/Drupal/Core/DependencyInjection/Compiler/TaggedHandlersPass.php +++ b/core/lib/Drupal/Core/DependencyInjection/Compiler/TaggedHandlersPass.php @@ -101,6 +101,8 @@ class TaggedHandlersPass implements CompilerPassInterface { * If a tagged handler does not implement the required interface. * @throws \Symfony\Component\DependencyInjection\Exception\LogicException * If at least one tagged service is required but none are found. + * + * @return void */ public function process(ContainerBuilder $container) { // Avoid using ContainerBuilder::findTaggedServiceIds() as that results in diff --git a/core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php b/core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php index c7b4648704..37a5b35e4e 100644 --- a/core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php +++ b/core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php @@ -39,6 +39,8 @@ public function __construct(ParameterBagInterface $parameterBag = NULL) { * @todo Restrict this to synthetic services only. Ideally, the upstream * ContainerBuilder class should be fixed to allow setting synthetic * services in a frozen builder. + * + * @return void */ public function set($id, $service) { SymfonyContainer::set($id, $service); @@ -67,6 +69,8 @@ public function setAlias($alias, $id): Alias { /** * {@inheritdoc} + * + * @return void */ public function setParameter($name, $value) { if (strtolower($name) !== $name) { diff --git a/core/lib/Drupal/Core/DrupalKernel.php b/core/lib/Drupal/Core/DrupalKernel.php index a2eb065c7a..a5b5cc33b6 100644 --- a/core/lib/Drupal/Core/DrupalKernel.php +++ b/core/lib/Drupal/Core/DrupalKernel.php @@ -531,6 +531,8 @@ public function getContainer() { /** * {@inheritdoc} + * + * @return void */ public function setContainer(ContainerInterface $container = NULL) { if (isset($this->container)) { @@ -670,6 +672,8 @@ public function getServiceProviders($origin) { /** * {@inheritdoc} + * + * @return void */ public function terminate(Request $request, Response $response) { // Only run terminate() when essential services have been set up properly diff --git a/core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php b/core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php index c31a404414..ebf0cf8b7c 100644 --- a/core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php +++ b/core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php @@ -187,6 +187,8 @@ public function getEntity() { /** * {@inheritdoc} + * + * @return void */ public function add(ConstraintViolationInterface $violation) { parent::add($violation); @@ -196,6 +198,8 @@ public function add(ConstraintViolationInterface $violation) { /** * {@inheritdoc} + * + * @return void */ public function remove($offset) { parent::remove($offset); @@ -205,6 +209,8 @@ public function remove($offset) { /** * {@inheritdoc} + * + * @return void */ public function set($offset, ConstraintViolationInterface $violation) { parent::set($offset, $violation); diff --git a/core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraintValidator.php b/core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraintValidator.php index 39e99afc5e..f8e3fc7da5 100644 --- a/core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraintValidator.php +++ b/core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraintValidator.php @@ -12,6 +12,8 @@ class BundleConstraintValidator extends ConstraintValidator { /** * {@inheritdoc} + * + * @return void */ public function validate($entity, Constraint $constraint) { if (!isset($entity)) { diff --git a/core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityTypeConstraintValidator.php b/core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityTypeConstraintValidator.php index acb000ad6b..089be609e2 100644 --- a/core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityTypeConstraintValidator.php +++ b/core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityTypeConstraintValidator.php @@ -12,6 +12,8 @@ class EntityTypeConstraintValidator extends ConstraintValidator { /** * {@inheritdoc} + * + * @return void */ public function validate($entity, Constraint $constraint) { if (!isset($entity)) { diff --git a/core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php b/core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php index 482f6dffe7..3a0040dc0d 100644 --- a/core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php +++ b/core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php @@ -49,6 +49,8 @@ public function __construct(UrlGeneratorInterface $url_generator, RendererInterf /** * {@inheritdoc} + * + * @return void */ public function setContext(SymfonyRequestContext $context) { $this->urlGenerator->setContext($context); diff --git a/core/lib/Drupal/Core/Routing/AccessAwareRouter.php b/core/lib/Drupal/Core/Routing/AccessAwareRouter.php index 0e18492567..be122530f8 100644 --- a/core/lib/Drupal/Core/Routing/AccessAwareRouter.php +++ b/core/lib/Drupal/Core/Routing/AccessAwareRouter.php @@ -65,6 +65,8 @@ public function __call($name, $arguments) { /** * {@inheritdoc} + * + * @return void */ public function setContext(SymfonyRequestContext $context) { $this->router->setContext($context); diff --git a/core/lib/Drupal/Core/Routing/UrlGenerator.php b/core/lib/Drupal/Core/Routing/UrlGenerator.php index 5e2ccab69d..08d385436f 100644 --- a/core/lib/Drupal/Core/Routing/UrlGenerator.php +++ b/core/lib/Drupal/Core/Routing/UrlGenerator.php @@ -96,6 +96,8 @@ public function __construct(RouteProviderInterface $provider, OutboundPathProces /** * {@inheritdoc} + * + * @return void */ public function setContext(SymfonyRequestContext $context) { $this->context = $context; diff --git a/core/lib/Drupal/Core/Session/MetadataBag.php b/core/lib/Drupal/Core/Session/MetadataBag.php index be0017177a..716cccf542 100644 --- a/core/lib/Drupal/Core/Session/MetadataBag.php +++ b/core/lib/Drupal/Core/Session/MetadataBag.php @@ -51,6 +51,8 @@ public function getCsrfTokenSeed() { /** * {@inheritdoc} + * + * @return void */ public function stampNew($lifetime = NULL) { parent::stampNew($lifetime); diff --git a/core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php b/core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php index 0503925226..8af74633cc 100644 --- a/core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php +++ b/core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php @@ -214,6 +214,8 @@ public function setCause($cause): static /** * {@inheritdoc} + * + * @return void */ public function addViolation() { diff --git a/core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php b/core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php index cc4b8b668e..42e669c375 100644 --- a/core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php +++ b/core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php @@ -156,6 +156,8 @@ public function setConstraint(Constraint $constraint): void { /** * {@inheritdoc} + * + * @return void */ public function addViolation($message, array $parameters = []) { $this->violations->add(new ConstraintViolation($this->translator->trans($message, $parameters, $this->translationDomain), $message, $parameters, $this->root, $this->propertyPath, $this->value, NULL, NULL, $this->constraint)); diff --git a/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/NotNullConstraintValidator.php b/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/NotNullConstraintValidator.php index 6d423e4a59..3ff5f04154 100644 --- a/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/NotNullConstraintValidator.php +++ b/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/NotNullConstraintValidator.php @@ -19,6 +19,8 @@ class NotNullConstraintValidator extends NotNullValidator { /** * {@inheritdoc} + * + * @return void */ public function validate($value, Constraint $constraint) { $typed_data = $this->getTypedData(); diff --git a/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidator.php b/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidator.php index be11f80049..1484a90372 100644 --- a/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidator.php +++ b/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidator.php @@ -24,6 +24,8 @@ class PrimitiveTypeConstraintValidator extends ConstraintValidator { /** * {@inheritdoc} + * + * @return void */ public function validate($value, Constraint $constraint) { diff --git a/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/RangeConstraintValidator.php b/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/RangeConstraintValidator.php index f78a29fbd8..3ce2a2a183 100644 --- a/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/RangeConstraintValidator.php +++ b/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/RangeConstraintValidator.php @@ -14,6 +14,8 @@ class RangeConstraintValidator extends ConstraintValidator { /** * {@inheritdoc} + * + * @return void */ public function validate($value, Constraint $constraint) { if (!$constraint instanceof Range) { diff --git a/core/modules/link/src/Plugin/Validation/Constraint/LinkAccessConstraintValidator.php b/core/modules/link/src/Plugin/Validation/Constraint/LinkAccessConstraintValidator.php index 16ccae0fc7..36018286cc 100644 --- a/core/modules/link/src/Plugin/Validation/Constraint/LinkAccessConstraintValidator.php +++ b/core/modules/link/src/Plugin/Validation/Constraint/LinkAccessConstraintValidator.php @@ -41,6 +41,8 @@ public static function create(ContainerInterface $container) { /** * {@inheritdoc} + * + * @return void */ public function validate($value, Constraint $constraint) { if (isset($value)) { diff --git a/core/modules/serialization/src/RegisterSerializationClassesCompilerPass.php b/core/modules/serialization/src/RegisterSerializationClassesCompilerPass.php index dd3dd9a107..c28f46c205 100644 --- a/core/modules/serialization/src/RegisterSerializationClassesCompilerPass.php +++ b/core/modules/serialization/src/RegisterSerializationClassesCompilerPass.php @@ -16,6 +16,8 @@ class RegisterSerializationClassesCompilerPass implements CompilerPassInterface * * @param \Symfony\Component\DependencyInjection\ContainerBuilder $container * The container to process. + * + * @return void */ public function process(ContainerBuilder $container) { $definition = $container->getDefinition('serializer'); diff --git a/core/modules/user/src/Plugin/Validation/Constraint/ProtectedUserFieldConstraintValidator.php b/core/modules/user/src/Plugin/Validation/Constraint/ProtectedUserFieldConstraintValidator.php index 1a65aba978..80b1b7dacb 100644 --- a/core/modules/user/src/Plugin/Validation/Constraint/ProtectedUserFieldConstraintValidator.php +++ b/core/modules/user/src/Plugin/Validation/Constraint/ProtectedUserFieldConstraintValidator.php @@ -53,6 +53,8 @@ public static function create(ContainerInterface $container) { /** * {@inheritdoc} + * + * @return void */ public function validate($items, Constraint $constraint) { if (!isset($items)) { diff --git a/core/modules/user/src/Plugin/Validation/Constraint/UserMailRequiredValidator.php b/core/modules/user/src/Plugin/Validation/Constraint/UserMailRequiredValidator.php index b40ce9bb57..f85a5847e9 100644 --- a/core/modules/user/src/Plugin/Validation/Constraint/UserMailRequiredValidator.php +++ b/core/modules/user/src/Plugin/Validation/Constraint/UserMailRequiredValidator.php @@ -16,6 +16,8 @@ class UserMailRequiredValidator extends ConstraintValidator { /** * {@inheritdoc} + * + * @return void */ public function validate($items, Constraint $constraint) { /** @var \Drupal\Core\Field\FieldItemListInterface $items */ diff --git a/core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php b/core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php index 0f660717ca..c247629020 100644 --- a/core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php +++ b/core/tests/Drupal/Tests/Core/DependencyInjection/DependencySerializationTest.php @@ -79,6 +79,8 @@ public function __construct(\stdClass $service) { /** * {@inheritdoc} + * + * @return void */ public function setContainer(ContainerInterface $container = NULL) { $this->container = $container;