René's URL Explorer Experiment


Title: Fix #12574: Erroneous Offset might not exist by phpstan-bot · Pull Request #4965 · phpstan/phpstan-src · GitHub

Open Graph Title: Fix #12574: Erroneous Offset might not exist by phpstan-bot · Pull Request #4965 · phpstan/phpstan-src

X Title: Fix #12574: Erroneous Offset might not exist by phpstan-bot · Pull Request #4965 · phpstan/phpstan-src

Description: PHPStan's source code. This is where development happens. Check https://github.com/phpstan/phpstan for the distribution repository. - Fix #12574: Erroneous Offset might not exist by phpstan-bot · Pull Request #4965 · phpstan/phpstan-src

Open Graph Description: Summary When the result of isset() on a property-accessed array element (e.g., $notEmpty = isset($a->worlds[0])) was stored in a variable and later used in a condition, PHPStan failed to narrow ...

X Description: Summary When the result of isset() on a property-accessed array element (e.g., $notEmpty = isset($a->worlds[0])) was stored in a variable and later used in a condition, PHPStan failed to nar...

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

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:f34dee68-13a2-8ea3-fa68-40c1601edf7a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC95C:275626:222732:2E7680:6B00AEC8
html-safe-nonceca309e47741ed0b9edc899fc52cf9e063ec5737da0fcc5887b9fb999d58c0cce
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTVDOjI3NTYyNjoyMjI3MzI6MkU3NjgwOjZCMDBBRUM4IiwidmlzaXRvcl9pZCI6IjgzNTEyNDY3NTEzMDIyMDEwMzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4dd1692ef555db0b059d93482f3f78b31ecd6e89c6ad9c0f546c0d469b6a09af
hovercard-subject-tagpull_request:3291950384
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/4965/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/ab58b0eccbbfc3bf89ab4c676ff05bda5fd1d146ba54fdc18f1be96f932770a0/phpstan/phpstan-src/pull/4965
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ab58b0eccbbfc3bf89ab4c676ff05bda5fd1d146ba54fdc18f1be96f932770a0/phpstan/phpstan-src/pull/4965
og:image:altSummary When the result of isset() on a property-accessed array element (e.g., $notEmpty = isset($a->worlds[0])) was stored in a variable and later used in a condition, PHPStan failed to narrow ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamephpstan-bot
hostnamegithub.com
expected-hostnamegithub.com
Nonec0dd5f5d6f515a591019ecd66df2c4eab3379c2d3b0777568a90d8c7ae10b79e
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
release729d8cda69b3d267995675dfbf89ff27ccf61bf6
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/phpstan/phpstan-src/pull/4965#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F4965
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%2F4965
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/4965
Reloadhttps://github.com/phpstan/phpstan-src/pull/4965
Reloadhttps://github.com/phpstan/phpstan-src/pull/4965
phpstanhttps://github.com/phpstan
phpstan-srchttps://github.com/phpstan/phpstan-src
Codehttps://github.com/phpstan/phpstan-src
Pull requests185 (185)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
phpstan-bothttps://github.com/phpstan-bot
2.1.xhttps://github.com/phpstan/phpstan-src/tree/2.1.x
create-pull-request/patch-8yeqewahttps://github.com/phpstan/phpstan-src/tree/create-pull-request/patch-8yeqewa
Conversationhttps://github.com/phpstan/phpstan-src/pull/4965
Commits9 (9)https://github.com/phpstan/phpstan-src/pull/4965/commits
Checkshttps://github.com/phpstan/phpstan-src/pull/4965/checks
Files changedhttps://github.com/phpstan/phpstan-src/pull/4965/files
Fix #12574: Erroneous Offset might not existhttps://github.com/phpstan/phpstan-src/pull/4965#top
phpstan-bothttps://github.com/phpstan-bot
2.1.xhttps://github.com/phpstan/phpstan-src/tree/2.1.x
create-pull-request/patch-8yeqewahttps://github.com/phpstan/phpstan-src/tree/create-pull-request/patch-8yeqewa
https://github.com/phpstan-bot
phpstan-bothttps://github.com/phpstan-bot
Feb 16, 2026https://github.com/phpstan/phpstan-src/pull/4965#issue-3949997809
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/4965
phpstan/phpstan#12574https://github.com/phpstan/phpstan/issues/12574
phpstan/phpstan#10040https://github.com/phpstan/phpstan/issues/10040
phpstan/phpstan#11102https://github.com/phpstan/phpstan/issues/11102
phpstan/phpstan#11870https://github.com/phpstan/phpstan/issues/11870
phpstan/phpstan#6991https://github.com/phpstan/phpstan/issues/6991
phpstan/phpstan#7716https://github.com/phpstan/phpstan/issues/7716
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/4965
phpstan-bothttps://github.com/phpstan-bot
February 16, 2026 23:43https://github.com/phpstan/phpstan-src/pull/4965#commits-pushed-86a07a2
https://github.com/phpstan-bot
Fix isset() type narrowing lost when result stored in variable for pr…https://github.com/phpstan/phpstan-src/pull/4965/commits/86a07a22055b134bca6de171fabf27e7cecc4d32
86a07a2https://github.com/phpstan/phpstan-src/pull/4965/commits/86a07a22055b134bca6de171fabf27e7cecc4d32
phpstan/phpstan#12574https://github.com/phpstan/phpstan/issues/12574
https://github.com/phpstan-bot
https://github.com/claude
Add regression test for #11870https://github.com/phpstan/phpstan-src/pull/4965/commits/71e33f80e66e4b5363b9234d7f6785b04ff8aa45
71e33f8https://github.com/phpstan/phpstan-src/pull/4965/commits/71e33f80e66e4b5363b9234d7f6785b04ff8aa45
phpstan/phpstan#11870https://github.com/phpstan/phpstan/issues/11870
https://github.com/phpstan-bot
https://github.com/claude
Add regression test for #11102https://github.com/phpstan/phpstan-src/pull/4965/commits/02719b13326985bcfd2be08b2c35bb9fab3e2713
02719b1https://github.com/phpstan/phpstan-src/pull/4965/commits/02719b13326985bcfd2be08b2c35bb9fab3e2713
phpstan/phpstan#11102https://github.com/phpstan/phpstan/issues/11102
https://github.com/phpstan-bot
https://github.com/claude
Add regression test for #10040https://github.com/phpstan/phpstan-src/pull/4965/commits/156b1eab259befd5bf80689584d51f9c390373b6
156b1eahttps://github.com/phpstan/phpstan-src/pull/4965/commits/156b1eab259befd5bf80689584d51f9c390373b6
phpstan/phpstan#10040https://github.com/phpstan/phpstan/issues/10040
https://github.com/phpstan-bot
https://github.com/claude
Add regression test for #7716https://github.com/phpstan/phpstan-src/pull/4965/commits/38363437044eb695a430c4c91458382fafb7327d
3836343https://github.com/phpstan/phpstan-src/pull/4965/commits/38363437044eb695a430c4c91458382fafb7327d
phpstan/phpstan#7716https://github.com/phpstan/phpstan/issues/7716
https://github.com/phpstan-bot
https://github.com/claude
Add regression test forhttps://github.com/phpstan/phpstan-src/pull/4965/commits/0ca189006b89c4f4fed14a9a2a59633875e93801
#6991https://github.com/phpstan/phpstan-src/pull/6991
0ca1890https://github.com/phpstan/phpstan-src/pull/4965/commits/0ca189006b89c4f4fed14a9a2a59633875e93801
phpstan/phpstan#6991https://github.com/phpstan/phpstan/issues/6991
https://github.com/phpstan-bot
https://github.com/claude
Add regression test forhttps://github.com/phpstan/phpstan-src/pull/4965/commits/2998d07a056c730ec2cac970a1392b9c28b74821
#6120https://github.com/phpstan/phpstan-src/pull/6120
2998d07https://github.com/phpstan/phpstan-src/pull/4965/commits/2998d07a056c730ec2cac970a1392b9c28b74821
phpstan/phpstan#6120https://github.com/phpstan/phpstan/issues/6120
https://github.com/staabm
staabmhttps://github.com/staabm
Feb 18, 2026 https://github.com/phpstan/phpstan-src/pull/4965#pullrequestreview-3818808540
View reviewed changes https://github.com/phpstan/phpstan-src/pull/4965/files/a56a74a4ca3720082fd994a9956f3a41b38e211f
https://github.com/staabm
staabmhttps://github.com/staabm
Feb 18, 2026 https://github.com/phpstan/phpstan-src/pull/4965#pullrequestreview-3819065055
View reviewed changes https://github.com/phpstan/phpstan-src/pull/4965/files/2998d07a056c730ec2cac970a1392b9c28b74821
tests/PHPStan/Analyser/nsrt/bug-10040.phphttps://github.com/phpstan/phpstan-src/pull/4965/files/2998d07a056c730ec2cac970a1392b9c28b74821#diff-a2d37ca80cff1e84910ee65c09f4a7641ac18ebe35297be7ad03561e7881480d
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/4965
https://github.com/staabm
staabmhttps://github.com/staabm
Feb 18, 2026https://github.com/phpstan/phpstan-src/pull/4965#issuecomment-3920254861
@phpstan-bothttps://github.com/phpstan-bot
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/4965
https://github.com/phpstan-bot
phpstan-bothttps://github.com/phpstan-bot
Feb 18, 2026https://github.com/phpstan/phpstan-src/pull/4965#issuecomment-3920264809
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/4965
@staabmhttps://github.com/staabm
View jobhttps://github.com/phpstan/phpstan-src/actions/runs/22137710259
a538aa4https://github.com/phpstan/phpstan-src/commit/a538aa4221bafb4e82d088ca31f2f9b3a1d19246
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/4965
https://github.com/phpstan-bot
https://github.com/staabm
Fix bug-10040.php: put declare(strict_types) after lint commenthttps://github.com/phpstan/phpstan-src/pull/4965/commits/a538aa4221bafb4e82d088ca31f2f9b3a1d19246
a538aa4https://github.com/phpstan/phpstan-src/pull/4965/commits/a538aa4221bafb4e82d088ca31f2f9b3a1d19246
https://github.com/staabm
staabmhttps://github.com/staabm
Feb 18, 2026https://github.com/phpstan/phpstan-src/pull/4965#issuecomment-3920278258
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/4965
@phpstan-bothttps://github.com/phpstan-bot
@VincentLanglethttps://github.com/VincentLanglet
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/4965
https://github.com/phpstan-bot
phpstan-bothttps://github.com/phpstan-bot
Feb 18, 2026https://github.com/phpstan/phpstan-src/pull/4965#issuecomment-3920287254
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/4965
@staabmhttps://github.com/staabm
View jobhttps://github.com/phpstan/phpstan-src/actions/runs/22137874995
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/4965
https://github.com/phpstan-bot
https://github.com/staabm
Revert "Fix bug-10040.php: put declare(strict_types) after lint comment"https://github.com/phpstan/phpstan-src/pull/4965/commits/a56a74a4ca3720082fd994a9956f3a41b38e211f
a56a74ahttps://github.com/phpstan/phpstan-src/pull/4965/commits/a56a74a4ca3720082fd994a9956f3a41b38e211f
a538aa4https://github.com/phpstan/phpstan-src/commit/a538aa4221bafb4e82d088ca31f2f9b3a1d19246
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Feb 18, 2026 https://github.com/phpstan/phpstan-src/pull/4965#pullrequestreview-3819460111
View reviewed changes https://github.com/phpstan/phpstan-src/pull/4965/files/a56a74a4ca3720082fd994a9956f3a41b38e211f
src/Analyser/NodeScopeResolver.phphttps://github.com/phpstan/phpstan-src/pull/4965/files/a56a74a4ca3720082fd994a9956f3a41b38e211f#diff-0c3f50d118357d9cb6d6f4d0eade75b83797d57056ff3b9c58ec881a13eaa6fe
VincentLanglethttps://github.com/VincentLanglet
Feb 18, 2026https://github.com/phpstan/phpstan-src/pull/4965#discussion_r2821936729
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://phpstan.org/r/838517f6-ed32-4fab-993a-d54d85ea6986https://phpstan.org/r/838517f6-ed32-4fab-993a-d54d85ea6986
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/4965
https://github.com/staabm
staabmhttps://github.com/staabm
Feb 18, 2026https://github.com/phpstan/phpstan-src/pull/4965#issuecomment-3920520005
#4988https://github.com/phpstan/phpstan-src/pull/4988
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/4965
https://github.com/staabm
staabmhttps://github.com/staabm
Feb 18, 2026https://github.com/phpstan/phpstan-src/pull/4965#event-22882673081
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%2F4965
https://github.com/staabm
staabm https://github.com/staabm
https://github.com/phpstan/phpstan-src/pull/4965/files/2998d07a056c730ec2cac970a1392b9c28b74821
https://github.com/VincentLanglet
VincentLanglet https://github.com/VincentLanglet
https://github.com/phpstan/phpstan-src/pull/4965/files/a56a74a4ca3720082fd994a9956f3a41b38e211f
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/4965
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/4965
https://github.com/phpstan-bot
https://github.com/staabm
https://github.com/VincentLanglet
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.