Skip to content
Snippets Groups Projects
Verified Commit 80adfea4 authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3029729 by quietone, longwave, smustgrave, gábor hojtsy, nod_: Restore...

Issue #3029729 by quietone, longwave, smustgrave, gábor hojtsy, nod_: Restore documentation on variable arguments in Drupal\Core\Database\Query\AlterableInterface::hasAllTags() and hasAnyTag()
parent bd70656b
No related branches found
No related tags found
No related merge requests found
Pipeline #465279 passed with warnings
Pipeline: drupal

#465300

    Pipeline: drupal

    #465297

      Pipeline: drupal

      #465285

        ......@@ -32,3 +32,12 @@
        # Symfony 7.2
        %Since symfony/http-foundation 7.2: NativeSessionStorage's "sid_length" option is deprecated and will be ignored in Symfony 8.0.%
        %Since symfony/http-foundation 7.2: NativeSessionStorage's "sid_bits_per_character" option is deprecated and will be ignored in Symfony 8.0.%
        # PHPUnit 12.
        %The "Drupal\\Core\\Database\\Query\\Select::hasAllTags\(\)" method will require a new "string \.\.\. \$tags" argument in the next major version of its interface%
        %The "Drupal\\Core\\Database\\Query\\Select::hasAnyTag\(\)" method will require a new "string \.\.\. \$tags" argument in the next major version of its interface%
        %The "Drupal\\Core\\Database\\Query\\SelectExtender::hasAllTags\(\)" method will require a new "string \.\.\. \$tags" argument in the next major version of its interface%
        %The "Drupal\\Core\\Database\\Query\\SelectExtender::hasAnyTag\(\)" method will require a new "string \.\.\. \$tags" argument in the next major version of its interface%
        %The "Drupal\\Core\\Entity\\Query\\QueryBase::hasAllTags\(\)" method will require a new "string \.\.\. \$tags" argument in the next major version of its interface%
        %The "Drupal\\Core\\Entity\\Query\\QueryBase::hasAnyTag\(\)" method will require a new "string \.\.\. \$tags" argument in the next major version of its interface%
        ......@@ -40,28 +40,36 @@ public function hasTag($tag);
        *
        * Each tag to check should be supplied as a separate argument.
        *
        * @todo Restore PHPDoc of variadic argument in Drupal 8.8, see
        * https://www.drupal.org/project/drupal/issues/3029729
        * 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();
        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.
        *
        * @todo Restore PHPDoc of variadic argument in Drupal 8.8, see
        * https://www.drupal.org/project/drupal/issues/3029729
        * 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();
        public function hasAnyTag(/* string ...$tags*/);
        /**
        * Adds additional metadata to the query.
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Finish editing this message first!
        Please register or to comment