<commit_before><?php

declare(strict_types=1);

namespace Overblog\GraphQLBundle\Tests\Config\Parser;

use Overblog\GraphQLBundle\Config\Parser\AttributeParser;

/**
 * @requires PHP 8.
 */
class AttributeParserTest extends MetadataParserTest
{
    public function parser(string $method, ...$args)
    {
        return AttributeParser::$method(...$args);
    }

    public function formatMetadata(string $metadata): string
    {
        return sprintf('#\[%s\]', $metadata);
    }
}<commit_msg>Add `AttributeParserTest` to `legacy` group to suppress triggered deprecations<commit_after><?php

declare(strict_types=1);

namespace Overblog\GraphQLBundle\Tests\Config\Parser;

use Overblog\GraphQLBundle\Config\Parser\AttributeParser;

/**
 * @group legacy
 * @requires PHP 8.
 */
class AttributeParserTest extends MetadataParserTest
{
    public function parser(string $method, ...$args)
    {
        return AttributeParser::$method(...$args);
    }

    public function formatMetadata(string $metadata): string
    {
        return sprintf('#\[%s\]', $metadata);
    }
}
{'fraction_non_alphanumeric': 0.13271028037383178, 'fraction_numerical': 0.003738317757009346, 'mean_word_length': 3.935483870967742, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2483781', 'n_tokens_mistral': 313, 'n_tokens_neox': 308, 'n_words': 66}