Skip to content

ConstraintOptionsToNamedArgumentsRector on GroupSequence #820

Closed
@MarijnDoeve

Description

@MarijnDoeve

The ConstraintOptionsToNamedArgumentsRector seems a bit too aggressive with refactoring, for example:

7) src/SomeFile.php

    ---------- begin diff ----------
@@ @@

-        $errors = $this->validator->validate($something, null, new GroupSequence(['Default', 'create']));
+        $errors = $this->validator->validate($something, null, new GroupSequence());
         if (\count($errors) > 0) {
             throw new ValidationException($errors);
         }
    ----------- end diff -----------

Applied rules:
 * ConstraintOptionsToNamedArgumentsRector

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions