Skip to content

autofix incomplete version constraints #309

Description

@staabm

I think we could think about whether errors like

Version requirement is incomplete.

can be made autofixable...?

most obvious examples would be

- #[RequiresPhp('^8.0')]
+ #[RequiresPhp('^8.0.0')]
- #[RequiresPhp('>=8.0')]
+- #[RequiresPhp('>=8.0.0')]
- #[RequiresPhp('>=8')]
+- #[RequiresPhp('>=8.0.0')]
- #[RequiresPhpunit('>=12')]
+- #[RequiresPhpunit('>=12.0.0')]

in which the comparison operator is given, but the version is not 3 digits

see

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