Skip to content
Snippets Groups Projects

Issue #3501046: Replace func_get_args with variable-length argument in hasAllTags and hasAnyTag

Open Issue #3501046: Replace func_get_args with variable-length argument in hasAllTags and hasAnyTag
4 files
+ 14
22
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -40,36 +40,28 @@ public function hasTag($tag);
*
* Each tag to check should be supplied as a separate argument.
*
* phpcs:ignore
* @param string ...$tags
* A variable number of arguments, one for each tag to check.
*
* @return bool
* TRUE if this query has been marked with all specified tags, FALSE
* otherwise.
*
* @todo Remove PHPCS ignore and uncomment new method parameters before
* drupal:12.0.0. See https://www.drupal.org/project/drupal/issues/3501046.
*/
public function hasAllTags(/* string ...$tags*/);
public function hasAllTags(string ...$tags);
/**
* Determines if a given query has any specified tag.
*
* Each tag to check should be supplied as a separate argument.
*
* phpcs:ignore
* @param string ...$tags
* A variable number of arguments, one for each tag to check.
*
* @return bool
* TRUE if this query has been marked with at least one of the specified
* tags, FALSE otherwise.
*
* @todo Remove PHPCS ignore and uncomment new method parameters before
* drupal:12.0.0. See https://www.drupal.org/project/drupal/issues/3501046.
*/
public function hasAnyTag(/* string ...$tags*/);
public function hasAnyTag(string ...$tags);
/**
* Adds additional metadata to the query.
Loading