phpunit icon indicating copy to clipboard operation
phpunit copied to clipboard

`@requires` should support `!=` for every type

Open mvorisek opened this issue 2 years ago • 2 comments

@requires OSFAMILY != Windows should be supported.

Currently the docs say the operators are supported for PHP, PHPUnit and extension version constraints only.

I belive all operators should be supported and <, >, >=, <= should emit a warning if the left/right side of the expression is non-version string.

mvorisek avatar Dec 10 '23 11:12 mvorisek

Annotations will not be changed. In fact, they will be deprecated in PHPUnit 11 and removed in PHPUnit 12.

sebastianbergmann avatar Dec 10 '23 12:12 sebastianbergmann

Should also work for the new attributes, I am assuming? Couldn't find it in the manual whether != is supported or not.

If it should be supported but currently isn't, might be a nice small project for me.

epdenouden avatar Jan 08 '24 16:01 epdenouden