Skip to content

Faster UnionType->isCallable() - #6233

Merged
staabm merged 1 commit into
phpstan:2.2.xfrom
staabm:call
Aug 18, 2026
Merged

Faster UnionType->isCallable()#6233
staabm merged 1 commit into
phpstan:2.2.xfrom
staabm:call

Conversation

@staabm

@staabm staabm commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

before this PR

➜  phpstan-src git:(2.2.x) ✗ hyperfine 'php bin/phpstan analyze big-constant-string-union.php --debug -vv'
Benchmark 1: php bin/phpstan analyze big-constant-string-union.php --debug -vv
  Time (mean ± σ):     842.5 ms ±   2.8 ms    [User: 646.9 ms, System: 192.9 ms]
  Range (min … max):   839.2 ms … 848.4 ms    10 runs

after this PR

➜  phpstan-src git:(2.2.x) ✗ hyperfine 'php bin/phpstan analyze big-constant-string-union.php --debug -vv'
Benchmark 1: php bin/phpstan analyze big-constant-string-union.php --debug -vv
  Time (mean ± σ):     810.6 ms ±   2.5 ms    [User: 613.7 ms, System: 194.4 ms]
  Range (min … max):   807.8 ms … 814.3 ms    10 runs

refs phpstan/phpstan#15088

@staabm
staabm marked this pull request as ready for review August 18, 2026 11:42
@phpstan-bot

Copy link
Copy Markdown
Collaborator

This pull request has been marked as ready for review.

@staabm
staabm merged commit 0d109aa into phpstan:2.2.x Aug 18, 2026
756 of 758 checks passed
@staabm
staabm deleted the call branch August 18, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants