Skip to content

Releases: thecodingmachine/phpstan-safe-rule

v1.4.7

Choose a tag to compare

@staabm staabm released this 23 Jun 07:49
51fa2a3

What's Changed

  • ReplaceSafeFunctionsDynamicReturnTypeExtension: fix typo by @staabm in #71

Full Changelog: v.1.4.5...v1.4.7

v1.4.4

Choose a tag to compare

@staabm staabm released this 21 Jun 07:31
93a9f4d

What's Changed

  • Sync preg_match extensions with PHPStan upstream + expose identity-check narrowing bug by @mvhirsch in #65
  • work on fixing CI, fixes #66 by @shish in #67
  • Improve ReplaceSafeFunctions type inference by @staabm in #70

New Contributors

Full Changelog: v1.4.3...v1.4.4

v.1.4.6

Choose a tag to compare

@staabm staabm released this 21 Jun 07:56
51fa2a3

What's Changed

  • ReplaceSafeFunctionsDynamicReturnTypeExtension: fix typo by @staabm in #71

Full Changelog: v.1.4.5...v.1.4.6

v1.4.3

Choose a tag to compare

@staabm staabm released this 21 Nov 09:43
5c80488

What's Changed

Full Changelog: v1.4.2...v1.4.3

v1.4.2

Choose a tag to compare

@staabm staabm released this 20 Nov 17:20
1b231d1

What's Changed

  • feat: infer preg_replace_callback return type by @mRoca in #60
  • Add json decode return type extension by @Khartir in #61

New Contributors

Full Changelog: v1.4.1...v1.4.2

v1.4.1

Choose a tag to compare

@shish shish released this 21 May 15:29
5f9795e

What's Changed

  • Consider named argument flags: JSON_THROW_ON_ERROR for json_ functions as "Safe" by @shish in #56
  • Fix tests with latest dependencies by @spawnia in #59
  • Handle FuncCall nodes that represent first class callables by @spawnia in #32

New Contributors

Full Changelog: v1.4.0...v1.4.1

v1.4.0

Choose a tag to compare

@shish shish released this 11 Feb 12:58

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 to Safe\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

  • @shish made their first contribution in #39

Full Changelog: v1.3.1...v1.4.0

v1.3.1

Choose a tag to compare

@shish shish released this 11 Feb 12:43

Same as v1.3.0, but marked compatible with Safe v3.0.0

v1.3.0

Choose a tag to compare

@moufmouf moufmouf released this 31 Dec 15:08
5b4522c

What's Changed

This new release brings support for PHPStan 2.0 (and drops support for PHPStan 1.0)

New Contributors

Full Changelog: v1.2.0...v1.3.0

v1.2.0

Choose a tag to compare

@dbrekelmans dbrekelmans released this 17 Jan 10:13
8a7b88e

What's Changed

New Contributors

Full Changelog: v1.1.0...v1.2.0