Releases: thecodingmachine/phpstan-safe-rule
Releases · thecodingmachine/phpstan-safe-rule
v1.4.0
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
v1.3.1
v1.3.0
What's Changed
This new release brings support for PHPStan 2.0 (and drops support for PHPStan 1.0)
- PHPStan 2 + GHA CI by @Jean85 in #35
- Fix broken test by @Jean85 in #36
- Increase static analysis by @Jean85 in #37
- Adding CODECOV_TOKEN in CI by @moufmouf in #38
New Contributors
Full Changelog: v1.2.0...v1.3.0
v1.2.0
What's Changed
- Support safe ^2.0 by @dbrekelmans in #28
New Contributors
- @dbrekelmans made their first contribution in #28
Full Changelog: v1.1.0...v1.2.0
v1.1.0
v1.0.1
v1.0.0
v1.0.0-beta1
This new version:
- targets Safe 1.0.0-beta1
- is compatible with PHPStan 0.12 (while keeping compatibility with 0.10 and 0.11)