Skip to content

v1.2.0

Latest

Choose a tag to compare

@paulbalandan paulbalandan released this 02 Aug 18:27
Immutable release. Only release title and notes can be modified.
v1.2.0
b21a4fe

Added

  • isIntOrNonEmptyString() expectation, narrowing to int|non-empty-string

Fixed

  • Restored type narrowing on PHPStan 2.2.7, which changed how the type specifier composes && and || conditions and left chained not() / nullOr() assertions widening back to their unnarrowed type

Changed

  • Bump shivammathur/setup-php from 2.37.0 to 2.37.1 in the actions group by @dependabot[bot] in #8
  • Bump the actions group across 1 directory with 2 updates by @dependabot[bot] in #10
  • Bump the actions group across 1 directory with 2 updates by @dependabot[bot] in #12
  • Bump actions/cache from 6.0.0 to 6.1.0 in the actions group by @dependabot[bot] in #13
  • Bump actions/checkout from 7.0.0 to 7.0.1 in the actions group by @dependabot[bot] in #14
  • Bump coverallsapp/github-action from 2.3.7 to 2.3.8 in the actions group by @dependabot[bot] in #15

Known issues

  • On PHPStan 2.2.7, a chain that negates two overlapping ranges (e.g. isInt()->not()->isNegativeInt()->isPositiveInt()) keeps only the first negation, narrowing to int<0, max> rather than 0. Tracked upstream at phpstan/phpstan#15039

Full Changelog: v1.1.1...v1.2.0