René's URL Explorer Experiment


Title: WIP: Resolve types in processExpr by ondrejmirtes · Pull Request #5224 · phpstan/phpstan-src · GitHub

Open Graph Title: WIP: Resolve types in processExpr by ondrejmirtes · Pull Request #5224 · phpstan/phpstan-src

X Title: WIP: Resolve types in processExpr by ondrejmirtes · Pull Request #5224 · phpstan/phpstan-src

Description: PHPStan's source code. This is where development happens. Check https://github.com/phpstan/phpstan for the distribution repository. - WIP: Resolve types in processExpr by ondrejmirtes · Pull Request #5224 · phpstan/phpstan-src

Open Graph Description: Hi, this is step ~7 out of 12 I have planned. The endgoal is to get rid of 17 % of performance penalty and repeated calls to MutatingScope::resolveType. Of course the performance improvement might ...

X Description: Hi, this is step ~7 out of 12 I have planned. The endgoal is to get rid of 17 % of performance penalty and repeated calls to MutatingScope::resolveType. Of course the performance improvement might ...

Opengraph URL: https://github.com/phpstan/phpstan-src/pull/5224

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:dc8ae70c-eb26-58bc-9f59-5a5c7555c733
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA534:31B4CC:C5B81C:1058D90:6B00F1EC
html-safe-nonce3773decd27991ee7257e2c192df495bff3fdec213793efcc4a516763d56564ab
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTM0OjMxQjRDQzpDNUI4MUM6MTA1OEQ5MDo2QjAwRjFFQyIsInZpc2l0b3JfaWQiOiI3MjM0NzU0MDAzOTUzODQwNjIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5e5e9155a01a7c061e80168b55ae729bf920b470ac5c1ba7039431d817fef61b
hovercard-subject-tagpull_request:3401624657
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/phpstan/phpstan-src/5224/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/5472a823b5230c218628a0341b77bd8a84a017e18d458ace1688e7ce844cae30/phpstan/phpstan-src/pull/5224
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5472a823b5230c218628a0341b77bd8a84a017e18d458ace1688e7ce844cae30/phpstan/phpstan-src/pull/5224
og:image:altHi, this is step ~7 out of 12 I have planned. The endgoal is to get rid of 17 % of performance penalty and repeated calls to MutatingScope::resolveType. Of course the performance improvement might ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameondrejmirtes
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
turbo-cache-controlno-cache
go-importgithub.com/phpstan/phpstan-src git https://github.com/phpstan/phpstan-src.git
octolytics-dimension-user_id16435710
octolytics-dimension-user_loginphpstan
octolytics-dimension-repository_id219334214
octolytics-dimension-repository_nwophpstan/phpstan-src
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id219334214
octolytics-dimension-repository_network_root_nwophpstan/phpstan-src
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9983dd5da06943f833c971dd5b6bc988e2858be5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/phpstan/phpstan-src/pull/5224#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F5224
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F5224
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=phpstan%2Fphpstan-src
Reloadhttps://github.com/phpstan/phpstan-src/pull/5224
Reloadhttps://github.com/phpstan/phpstan-src/pull/5224
Reloadhttps://github.com/phpstan/phpstan-src/pull/5224
phpstanhttps://github.com/phpstan
phpstan-srchttps://github.com/phpstan/phpstan-src
Codehttps://github.com/phpstan/phpstan-src
Pull requests186 (186)https://github.com/phpstan/phpstan-src/pulls
Actionshttps://github.com/phpstan/phpstan-src/actions
Security and qualityhttps://github.com/phpstan/phpstan-src/security
Insightshttps://github.com/phpstan/phpstan-src/insights
https://github.com/phpstan/phpstan-src
ondrejmirteshttps://github.com/ondrejmirtes
2.1.xhttps://github.com/phpstan/phpstan-src/tree/2.1.x
expression-result-typehttps://github.com/phpstan/phpstan-src/tree/expression-result-type
Conversationhttps://github.com/phpstan/phpstan-src/pull/5224
Commits11 (11)https://github.com/phpstan/phpstan-src/pull/5224/commits
Checkshttps://github.com/phpstan/phpstan-src/pull/5224/checks
Files changedhttps://github.com/phpstan/phpstan-src/pull/5224/files
WIP: Resolve types in processExprhttps://github.com/phpstan/phpstan-src/pull/5224#top
ondrejmirteshttps://github.com/ondrejmirtes
2.1.xhttps://github.com/phpstan/phpstan-src/tree/2.1.x
expression-result-typehttps://github.com/phpstan/phpstan-src/tree/expression-result-type
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
Mar 15, 2026https://github.com/phpstan/phpstan-src/pull/5224#issue-4079056581
phpstan-src/src/Analyser/MutatingScope.phphttps://github.com/phpstan/phpstan-src/blob/f1e88529a680470d23bbce177b8a57a1b429421b/src/Analyser/MutatingScope.php#L1069
f1e8852https://github.com/phpstan/phpstan-src/commit/f1e88529a680470d23bbce177b8a57a1b429421b
phpstan-src/src/Analyser/TypeSpecifier.phphttps://github.com/phpstan/phpstan-src/blob/c14518f41ee154d2e6a73a47a6b617404a65d203/src/Analyser/TypeSpecifier.php#L1994-L2001
c14518fhttps://github.com/phpstan/phpstan-src/commit/c14518f41ee154d2e6a73a47a6b617404a65d203
https://phpstan.org/r/51fc6cea-be4d-47f5-a4b8-e13416fd3f62https://phpstan.org/r/51fc6cea-be4d-47f5-a4b8-e13416fd3f62
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5224
ondrejmirteshttps://github.com/ondrejmirtes
March 14, 2026 17:45https://github.com/phpstan/phpstan-src/pull/5224#commits-pushed-2042c44
https://github.com/ondrejmirtes
Introduce ExpressionResultFactoryhttps://github.com/phpstan/phpstan-src/pull/5224/commits/2042c44bde3168f4a47fe7bc234cd30adfb8c8c9
2042c44https://github.com/phpstan/phpstan-src/pull/5224/commits/2042c44bde3168f4a47fe7bc234cd30adfb8c8c9
https://github.com/ondrejmirtes
Add Expr to ExpressionResulthttps://github.com/phpstan/phpstan-src/pull/5224/commits/af917b701502e361321e31cefe411751befebaa2
af917b7https://github.com/phpstan/phpstan-src/pull/5224/commits/af917b701502e361321e31cefe411751befebaa2
https://github.com/ondrejmirtes
Introduce Type getters on ExpressionResulthttps://github.com/phpstan/phpstan-src/pull/5224/commits/b2ce1a05580f70722b9c99e1f33d6da3ed703345
b2ce1a0https://github.com/phpstan/phpstan-src/pull/5224/commits/b2ce1a05580f70722b9c99e1f33d6da3ed703345
https://github.com/ondrejmirtes
Use ExpressionResult::getType() and getNativeType() instead of `$scop…https://github.com/phpstan/phpstan-src/pull/5224/commits/e94f8fdb8ccf1c2706213ec990171b4c80793ccb
e94f8fdhttps://github.com/phpstan/phpstan-src/pull/5224/commits/e94f8fdb8ccf1c2706213ec990171b4c80793ccb
https://github.com/ondrejmirtes
FuncCallHandler and MethodCallHandlerhttps://github.com/phpstan/phpstan-src/pull/5224/commits/57ee9ca6e3e05964b2bc084dda4e72075d65cec1
57ee9cahttps://github.com/phpstan/phpstan-src/pull/5224/commits/57ee9ca6e3e05964b2bc084dda4e72075d65cec1
https://github.com/ondrejmirtes
NewHandler and StaticCallHandlerhttps://github.com/phpstan/phpstan-src/pull/5224/commits/20ccc34e4b7a0a23fd67980ca875d84aa81c504f
20ccc34https://github.com/phpstan/phpstan-src/pull/5224/commits/20ccc34e4b7a0a23fd67980ca875d84aa81c504f
https://github.com/ondrejmirtes
earlyTerminating calls refactored to always infer expr type as NeverTypehttps://github.com/phpstan/phpstan-src/pull/5224/commits/35ed979b7458b7f5453f2f00d1f04c3635130fd5
35ed979https://github.com/phpstan/phpstan-src/pull/5224/commits/35ed979b7458b7f5453f2f00d1f04c3635130fd5
https://github.com/ondrejmirtes
Refactored issetCheck in MutatingScope to be usable inside typeCallbackhttps://github.com/phpstan/phpstan-src/pull/5224/commits/7fcae9c9cef3e6cb9d409d19c91c57e61e7a34d2
7fcae9chttps://github.com/phpstan/phpstan-src/pull/5224/commits/7fcae9c9cef3e6cb9d409d19c91c57e61e7a34d2
https://github.com/ondrejmirtes
Use earlyTerminating*Calls in handler resolveType to return NeverTypehttps://github.com/phpstan/phpstan-src/pull/5224/commits/c99ef33ae2c7d81a3dbc38ef742e97b6a8995e8b
c99ef33https://github.com/phpstan/phpstan-src/pull/5224/commits/c99ef33ae2c7d81a3dbc38ef742e97b6a8995e8b
https://github.com/ondrejmirtes
Implement typeCallback in Coalesce/Empty/Isset handlershttps://github.com/phpstan/phpstan-src/pull/5224/commits/fed60a2a77375963b193fde3f52afd15853b2357
fed60a2https://github.com/phpstan/phpstan-src/pull/5224/commits/fed60a2a77375963b193fde3f52afd15853b2357
https://github.com/ondrejmirtes
Remaining fixeshttps://github.com/phpstan/phpstan-src/pull/5224/commits/7fe5e4ec6b3c730db33677f1f0c62bcf9c6c9f6b
7fe5e4ehttps://github.com/phpstan/phpstan-src/pull/5224/commits/7fe5e4ec6b3c730db33677f1f0c62bcf9c6c9f6b
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
Mar 15, 2026https://github.com/phpstan/phpstan-src/pull/5224#event-23587802410
https://github.com/staabm
staabmhttps://github.com/staabm
Mar 16, 2026 https://github.com/phpstan/phpstan-src/pull/5224#pullrequestreview-3954814386
View reviewed changes https://github.com/phpstan/phpstan-src/pull/5224/files/7fe5e4ec6b3c730db33677f1f0c62bcf9c6c9f6b
staabmhttps://github.com/staabm
https://github.com/phpstan/phpstan-src/pull/5224#pullrequestreview-3954814386
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5224
src/Analyser/ExpressionResult.phphttps://github.com/phpstan/phpstan-src/pull/5224/files/7fe5e4ec6b3c730db33677f1f0c62bcf9c6c9f6b#diff-37913c962547c58d9f719018cc4a4e0aac597c5e051795eb4c4100f63e882ed6
staabmhttps://github.com/staabm
Mar 16, 2026https://github.com/phpstan/phpstan-src/pull/5224#discussion_r2941240813
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5224
ondrejmirteshttps://github.com/ondrejmirtes
Mar 16, 2026https://github.com/phpstan/phpstan-src/pull/5224#discussion_r2941397953
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5224
ondrejmirteshttps://github.com/ondrejmirtes
Mar 16, 2026https://github.com/phpstan/phpstan-src/pull/5224#discussion_r2941400611
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5224
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
Mar 18, 2026 https://github.com/phpstan/phpstan-src/pull/5224#ref-pullrequest-4079303942
Call operator type specifying extensions for bitwise and arithmetic operators #5226 https://github.com/phpstan/phpstan-src/pull/5226
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
Mar 29, 2026 https://github.com/phpstan/phpstan-src/pull/5224#ref-pullrequest-4163260520
flatten deep BooleanOr chains in TypeSpecifier to avoid O(n^2) recursion #5324 https://github.com/phpstan/phpstan-src/pull/5324
https://github.com/SanderMuller
SanderMullerhttps://github.com/SanderMuller
Mar 29, 2026 https://github.com/phpstan/phpstan-src/pull/5224#pullrequestreview-4026751170
View reviewed changes https://github.com/phpstan/phpstan-src/pull/5224/files/7fe5e4ec6b3c730db33677f1f0c62bcf9c6c9f6b
SanderMullerhttps://github.com/SanderMuller
https://github.com/phpstan/phpstan-src/pull/5224#pullrequestreview-4026751170
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5224
src/Analyser/ExpressionResult.phphttps://github.com/phpstan/phpstan-src/pull/5224/files/7fe5e4ec6b3c730db33677f1f0c62bcf9c6c9f6b#diff-37913c962547c58d9f719018cc4a4e0aac597c5e051795eb4c4100f63e882ed6
SanderMullerhttps://github.com/SanderMuller
Mar 29, 2026https://github.com/phpstan/phpstan-src/pull/5224#discussion_r3006175143
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5224
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
Jun 10, 2026https://github.com/phpstan/phpstan-src/pull/5224#issuecomment-4668246585
#5838https://github.com/phpstan/phpstan-src/pull/5838
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5224
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
Jun 10, 2026https://github.com/phpstan/phpstan-src/pull/5224#event-26563822531
ondrejmirteshttps://github.com/ondrejmirtes
Jun 11, 2026 https://github.com/phpstan/phpstan-src/pull/5224#ref-commit-cdcb73f
https://github.com/ondrejmirtes
https://github.com/claude
Deliver ExpressionResult (with type callbacks) to FiberScope and enginehttps://github.com/phpstan/phpstan-src/commit/cdcb73f86569a0a0172d455115138decf386f5a3
cdcb73fhttps://github.com/phpstan/phpstan-src/commit/cdcb73f86569a0a0172d455115138decf386f5a3
#5224https://github.com/phpstan/phpstan-src/pull/5224
https://github.co/hiddenchars
https://github.com/phpstan/phpstan-src/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F5224
https://github.com/staabm
staabm https://github.com/staabm
https://github.com/phpstan/phpstan-src/pull/5224/files/7fe5e4ec6b3c730db33677f1f0c62bcf9c6c9f6b
https://github.com/SanderMuller
SanderMuller https://github.com/SanderMuller
https://github.com/phpstan/phpstan-src/pull/5224/files/7fe5e4ec6b3c730db33677f1f0c62bcf9c6c9f6b
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5224
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5224
https://github.com/ondrejmirtes
https://github.com/staabm
https://github.com/SanderMuller
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.