<commit_before><?php

namespace App\Validator;

use Symfony\Component\Validator\Constraints\GroupSequence;

class MaterialItemUpdateGroupSequence {
    public function __invoke() {
        return new GroupSequence(['materialItem:update', 'Default']); // now, no matter which is first in the class declaration, it will be tested in this order.
    }
}<commit_msg>Fix deprecation warnings for api platform 2.6<commit_after><?php

namespace App\Validator;

use ApiPlatform\Core\Bridge\Symfony\Validator\ValidationGroupsGeneratorInterface;
use Symfony\Component\Validator\Constraints\GroupSequence;

class MaterialItemUpdateGroupSequence implements ValidationGroupsGeneratorInterface {
    public function __invoke($object) {
        return new GroupSequence(['materialItem:update', 'Default']); // now, no matter which is first in the class declaration, it will be tested in this order.
    }
}
{'fraction_non_alphanumeric': 0.08529741863075196, 'fraction_numerical': 0.002244668911335578, 'mean_word_length': 5.326241134751773, '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': '7553583', 'n_tokens_mistral': 218, 'n_tokens_neox': 215, 'n_words': 72}