What's Changed (tl;dr)
- Drop support for EOL'ed PHP versions - 8.1 is the new minimum
- Fix "unsafe function" error ID code
- Port phpstan's special-case support for
preg_match
so that it also applies toSafe\preg_match
(ie, the$matches
array is now accurately typed to match the regex pattern used, rather than being a generic?array
)
What's Changed (Full)
- flag this rule as compatible with thecodingmachine/safe v3 by @shish in #39
- fix error identifier by @shish in #41
- add composer test command by @shish in #42
- drop support for long-dead php versions by @shish in #44
- Type hints for Safe\preg_match, fixes #40 by @shish in #43
- enable formatting in tests/ by @shish in #45
- additional magic for preg_match, fixes #46 by @shish in #47
- consistently use phpstan's testing framework to test phpstan bits by @shish in #48
- More formatting by @shish in #50
- Require safe ^1.2 by @shish in #51
- Bump phpunit to be less-deprecated by @shish in #49
New Contributors
Full Changelog: v1.3.1...v1.4.0