diff --git a/core/lib/Drupal/Component/Gettext/PoItem.php b/core/lib/Drupal/Component/Gettext/PoItem.php index 3ef42cef4a8f6507e486b96a2cd4e51013507431..c5579641c58a0e5380128f355efd69f4c0646461 100644 --- a/core/lib/Drupal/Component/Gettext/PoItem.php +++ b/core/lib/Drupal/Component/Gettext/PoItem.php @@ -160,7 +160,7 @@ function getComment() { /** * Set the comment of this translation. * - * @param String $comment + * @param string $comment */ function setComment($comment) { $this->_comment = $comment; diff --git a/core/lib/Drupal/Core/Ajax/DataCommand.php b/core/lib/Drupal/Core/Ajax/DataCommand.php index fe838caced7db499f83744f851698a1e7b1bfa39..92b87bde8d8422eed1a9be5c01034636f7be8bf2 100644 --- a/core/lib/Drupal/Core/Ajax/DataCommand.php +++ b/core/lib/Drupal/Core/Ajax/DataCommand.php @@ -48,7 +48,7 @@ class DataCommand implements CommandInterface { * A CSS selector for the elements to which the data will be attached. * @param string $name * The key of the data to be attached to elements matched by the selector. - * @param type $value + * @param mixed $value * The value of the data to be attached to elements matched by the selector. */ public function __construct($selector, $name, $value) { diff --git a/core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldInstanceTest.php b/core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldInstanceTest.php index 76a8b0f89cadc9861c5dc09cfb27301866cd43cc..83279d03380122d007c74a54d08fbdcbe296a760 100644 --- a/core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldInstanceTest.php +++ b/core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldInstanceTest.php @@ -76,7 +76,7 @@ protected function createType($id) { * The expected field label. * @param string $expected_field_type * The expected field type. - * @param boolean $is_required + * @param bool $is_required * Whether or not the field is required. */ protected function assertEntity($id, $expected_label, $expected_field_type, $is_required) { diff --git a/core/modules/system/src/Tests/Routing/MockAliasManager.php b/core/modules/system/src/Tests/Routing/MockAliasManager.php index f2c9a0b02f4887c3bcc4c5cd2908884ed102ff9a..ff487858cf1f39a307d5670742bdc0a79fff3db5 100644 --- a/core/modules/system/src/Tests/Routing/MockAliasManager.php +++ b/core/modules/system/src/Tests/Routing/MockAliasManager.php @@ -40,11 +40,11 @@ class MockAliasManager implements AliasManagerInterface { /** * Adds an alias to the in-memory alias table for this object. * - * @param type $path + * @param string $path * The system path of the alias. - * @param type $alias + * @param string $alias * The alias of the system path. - * @param type $path_language + * @param string $path_language * The language of this alias. */ public function addAlias($path, $alias, $path_language = NULL) { diff --git a/core/modules/views/src/Plugin/views/query/QueryPluginBase.php b/core/modules/views/src/Plugin/views/query/QueryPluginBase.php index d41731e8ca7c629a71aca6588bb2f183fe5f3d64..5dfa0a0f75ac9b982a0add35ff476b4a5fb198a3 100644 --- a/core/modules/views/src/Plugin/views/query/QueryPluginBase.php +++ b/core/modules/views/src/Plugin/views/query/QueryPluginBase.php @@ -231,7 +231,7 @@ public function setupTimezone() { * An appropriate query expression pointing to the date field. * @param string $format * A format string for the result, like 'Y-m-d H:i:s'. - * @param boolean $string_date + * @param bool $string_date * For certain databases, date format functions vary depending on string or * numeric storage. * diff --git a/core/modules/views_ui/src/Tests/ArgumentValidatorTest.php b/core/modules/views_ui/src/Tests/ArgumentValidatorTest.php index 449a25c5d79dbf4dd3203b184150727f41ca9557..c3035530366c81890ffb3d1bc3bf4cc278149fb2 100644 --- a/core/modules/views_ui/src/Tests/ArgumentValidatorTest.php +++ b/core/modules/views_ui/src/Tests/ArgumentValidatorTest.php @@ -43,7 +43,7 @@ public function testSpecifyValidation() { * Saves the test_argument view with changes made to the argument handler * both with and without specify_validation turned on. * - * @param boolean $specify_validation + * @param bool $specify_validation */ protected function saveArgumentHandlerWithValidationOptions($specify_validation) { $options = array( diff --git a/core/phpcs.xml.dist b/core/phpcs.xml.dist index 09a6a315352edbf03f5a88aa3276b70b4b3b1c4e..d2197e72ad12e22475d90f65d8d123f02cc4470b 100644 --- a/core/phpcs.xml.dist +++ b/core/phpcs.xml.dist @@ -40,7 +40,6 @@ <rule ref="Drupal.Commenting.DocCommentStar"/> <rule ref="Drupal.Commenting.FileComment"/> <rule ref="Drupal.Commenting.FunctionComment"> - <exclude name="Drupal.Commenting.FunctionComment.IncorrectParamVarName"/> <exclude name="Drupal.Commenting.FunctionComment.IncorrectTypeHint"/> <exclude name="Drupal.Commenting.FunctionComment.$InReturnType"/> <exclude name="Drupal.Commenting.FunctionComment.InvalidNoReturn"/>