diff --git a/composer/Plugin/Scaffold/Handler.php b/composer/Plugin/Scaffold/Handler.php index cf43d9d13871871cb83cf9edca5a614f718e2a9d..8ee27990cec97fa0e46795467cea47895e12fa72 100644 --- a/composer/Plugin/Scaffold/Handler.php +++ b/composer/Plugin/Scaffold/Handler.php @@ -196,7 +196,7 @@ protected function getVendorPath() { /** * Gets a consolidated list of file mappings from all allowed packages. * - * @param \Composer\Package\PackageInterface[] $allowed_packages + * @param \Composer\Package\Package[] $allowed_packages * A multidimensional array of file mappings, as returned by * self::getAllowedPackages(). * diff --git a/composer/Plugin/VendorHardening/VendorHardeningPlugin.php b/composer/Plugin/VendorHardening/VendorHardeningPlugin.php index c4eb88b939a2ef18b1d3eb3221dca2d7bc1853c4..133640cc4be8e94892eac7a48651fbc674c6d2cd 100644 --- a/composer/Plugin/VendorHardening/VendorHardeningPlugin.php +++ b/composer/Plugin/VendorHardening/VendorHardeningPlugin.php @@ -331,7 +331,7 @@ public function cleanPackage(PackageInterface $package): void { * * @param \Composer\Package\PackageInterface $package * The package to clean. - * @param string[] $paths_for_package + * @param string $paths_for_package * List of directories in $package_name to remove */ protected function cleanPathsForPackage(PackageInterface $package, $paths_for_package): void { diff --git a/core/lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php b/core/lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php index 7298ee3ab4e08dbedb3b3d82b32b818af15db1ed..cb98bca41e82fea7b725b77bba61fb9deabf986d 100644 --- a/core/lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php +++ b/core/lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php @@ -353,7 +353,7 @@ protected function dumpCallable($callable) { /** * Gets a private service definition in a suitable format. * - * @param string|null $id + * @param string $id * The ID of the service to get a private definition for. * @param \Symfony\Component\DependencyInjection\Definition $definition * The definition to process. diff --git a/core/lib/Drupal/Component/Gettext/PoHeader.php b/core/lib/Drupal/Component/Gettext/PoHeader.php index 362d098cb767cefea6158fb268796f3240a891df..0449ba6f6b81471ed3aaee2aabcef4729c0a9ab6 100644 --- a/core/lib/Drupal/Component/Gettext/PoHeader.php +++ b/core/lib/Drupal/Component/Gettext/PoHeader.php @@ -39,7 +39,7 @@ class PoHeader { /** * Author(s) of the file. * - * @var string[] + * @var string */ protected $authors; diff --git a/core/lib/Drupal/Component/Gettext/PoItem.php b/core/lib/Drupal/Component/Gettext/PoItem.php index 41014c9648d639653966eec545e4035c1911fa32..9aa26cc5bfc182450850ba8916f4d3a3ecc75741 100644 --- a/core/lib/Drupal/Component/Gettext/PoItem.php +++ b/core/lib/Drupal/Component/Gettext/PoItem.php @@ -105,8 +105,7 @@ public function setContext($context) { /** * Gets the source string(s) if the translation has plurals. * - * @return string|array - * The source string or array of strings if it has plurals. + * @return string or array $translation */ public function getSource() { return $this->source; @@ -125,8 +124,7 @@ public function setSource($source) { /** * Gets the translation string(s) if the translation has plurals. * - * @return string|array - * The translation string or array of strings if it has plurals. + * @return string or array $translation */ public function getTranslation() { return $this->translation; diff --git a/core/lib/Drupal/Core/Ajax/InsertCommand.php b/core/lib/Drupal/Core/Ajax/InsertCommand.php index 8a83e795ee76816ef2ce3b560ee5fd7e38d81c5b..92f5155b793043f2397d6228642d53a6226cc580 100644 --- a/core/lib/Drupal/Core/Ajax/InsertCommand.php +++ b/core/lib/Drupal/Core/Ajax/InsertCommand.php @@ -24,7 +24,7 @@ class InsertCommand implements CommandInterface, CommandWithAttachedAssetsInterf * If the command is a response to a request from an #ajax form element then * this value can be NULL. * - * @var string|null + * @var string */ protected $selector; @@ -47,7 +47,7 @@ class InsertCommand implements CommandInterface, CommandWithAttachedAssetsInterf /** * Constructs an InsertCommand object. * - * @param string|null $selector + * @param string $selector * A CSS selector. * @param string|array $content * The content that will be inserted in the matched element(s), either a diff --git a/core/lib/Drupal/Core/Block/Attribute/Block.php b/core/lib/Drupal/Core/Block/Attribute/Block.php index c19487f291f4f72ef06573df8ea8aaf752302ca1..d5b6cafb758be4f06de77d7d470dec1f34cc5d55 100644 --- a/core/lib/Drupal/Core/Block/Attribute/Block.php +++ b/core/lib/Drupal/Core/Block/Attribute/Block.php @@ -25,8 +25,8 @@ class Block extends Plugin { * the plugin. The array is keyed by context names. * @param class-string|null $deriver * (optional) The deriver class. - * @param array<string, string|false> $forms - * (optional) An array of form class names or FALSE, keyed by a string. + * @param string[] $forms + * (optional) An array of form class names keyed by a string. */ public function __construct( public readonly string $id, diff --git a/core/lib/Drupal/Core/Config/ConfigInstallerInterface.php b/core/lib/Drupal/Core/Config/ConfigInstallerInterface.php index 5d90459d4f6c9571768aefc902626374727a9f18..d6ac429ce38b2df8c53351874c88ac99b806e0e0 100644 --- a/core/lib/Drupal/Core/Config/ConfigInstallerInterface.php +++ b/core/lib/Drupal/Core/Config/ConfigInstallerInterface.php @@ -40,7 +40,7 @@ public function installDefaultConfig($type, $name); * - it's a configuration entity. * - its dependencies can be met. * - * @param \Drupal\Core\Config\StorageInterface|null $storage + * @param \Drupal\Core\Config\StorageInterface $storage * (optional) The configuration storage to search for optional * configuration. If not provided, all enabled extension's optional * configuration directories including the install profile's will be diff --git a/core/lib/Drupal/Core/Extension/ModuleInstaller.php b/core/lib/Drupal/Core/Extension/ModuleInstaller.php index 3aed970d8e6c54bdf6cf33095d6ec0b65be514c7..8ef97b89a7542e2924adecc2ae2c5751cbfc8945 100644 --- a/core/lib/Drupal/Core/Extension/ModuleInstaller.php +++ b/core/lib/Drupal/Core/Extension/ModuleInstaller.php @@ -616,7 +616,7 @@ function ($definition) { /** * Updates the kernel module list. * - * @param \Drupal\Core\Extension\Extension[] $module_filenames + * @param string[] $module_filenames * The list of installed modules. */ protected function updateKernel($module_filenames) { diff --git a/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php b/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php index d795a2eb7d4a14bed2f12816adb57432cb06b190..5e0795239a81d652cb326001e794ebbf1fea910d 100644 --- a/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php +++ b/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php @@ -198,7 +198,7 @@ protected function writeSettings(array $settings) { * * @param string $name * The name of the parameter. - * @param string|array|bool $value + * @param string $value * The value of the parameter. */ protected function setContainerParameter($name, $value) { diff --git a/core/modules/rest/tests/src/Functional/ResourceTestBase.php b/core/modules/rest/tests/src/Functional/ResourceTestBase.php index e28270fe02e67a6e3a1408d8c69e4a8bc705d6d9..96fc9072d71929a0cb6c0348ef0ad80027c7c017 100644 --- a/core/modules/rest/tests/src/Functional/ResourceTestBase.php +++ b/core/modules/rest/tests/src/Functional/ResourceTestBase.php @@ -434,7 +434,7 @@ protected function assertResourceResponse($expected_status_code, $expected_body, * * @param int $expected_status_code * The expected response status. - * @param string|false $expected_message + * @param string $expected_message * The expected error message. * @param \Psr\Http\Message\ResponseInterface $response * The error response to assert. diff --git a/core/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php b/core/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php index 06c212486ce602dd4289b37ea833fc5deccfce55..a323484a68fa9ae23a2ffbe7bbd38d7714ea1f85 100644 --- a/core/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php +++ b/core/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php @@ -197,8 +197,8 @@ public function testAssembleWithStartingSlashEnabledProcessing(): void { /** * Setups the request stack for a given subdir. * - * @param bool $subdir - * TRUE to use a subdir. + * @param string $subdir + * The wanted subdir. */ protected function setupRequestStack($subdir) { $server = [];