Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: phpstan/phpstan-src
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.2.x
Choose a base ref
...
head repository: phpstan/phpstan-src
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: create-pull-request/patch-jt1hy00
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 5 files changed
  • 2 contributors

Commits on Feb 19, 2026

  1. Infer offset after array_key_first/array_key_last with null check

    - Added conditional expression holders in NodeScopeResolver for
      $key = array_key_first($arr) / array_key_last($arr) assignments
    - When $key !== null is checked, the array is narrowed to non-empty
      and $arr[$key] is recognized as having the array's value type
    - New regression tests in tests/PHPStan/Rules/Arrays/data/bug-14081.php
      and tests/PHPStan/Analyser/nsrt/bug-14081.php
    - Updated bug-13546 test assertion to reflect improved narrowing
    
    Fixes phpstan/phpstan#14081
    staabm authored and phpstan-bot committed Feb 19, 2026
    Configuration menu
    Copy the full SHA
    be1bfd4 View commit details
    Browse the repository at this point in the history
  2. Fix CI failures [claude-ci-fix]

    Automated fix attempt 1 for CI failures.
    phpstan-bot committed Feb 19, 2026
    Configuration menu
    Copy the full SHA
    3a4428f View commit details
    Browse the repository at this point in the history
Loading