René's URL Explorer Experiment


Title: feat: add support for property access in conditional types by brambaud · Pull Request #293 · phpstan/phpdoc-parser · GitHub

Open Graph Title: feat: add support for property access in conditional types by brambaud · Pull Request #293 · phpstan/phpdoc-parser

X Title: feat: add support for property access in conditional types by brambaud · Pull Request #293 · phpstan/phpdoc-parser

Description: See phpstan/phpstan#7545 From what I understood, we first need phpdoc-parser to be able to parse things like @return ($this->t is T::A ? string : null) and then we'll need follow-up PR to phpstan/phpstan-src. It also supports parent::$value, self::$value and static::$value because I thought it would be better to be consistent. If this is too much I understand.

Open Graph Description: See phpstan/phpstan#7545 From what I understood, we first need phpdoc-parser to be able to parse things like @return ($this->t is T::A ? string : null) and then we'll need follow-up PR to p...

X Description: See phpstan/phpstan#7545 From what I understood, we first need phpdoc-parser to be able to parse things like @return ($this->t is T::A ? string : null) and then we'll need follow-up...

Opengraph URL: https://github.com/phpstan/phpdoc-parser/pull/293

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:ca7a5584-b175-3bbe-6f96-82a87fb03e9c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id84FA:3401DB:E3F97:13E8C3:6B006363
html-safe-nonce1eb78ef387218b6efed36f148a009471fac8fe9e1249026fb31a97a566edf402
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEZBOjM0MDFEQjpFM0Y5NzoxM0U4QzM6NkIwMDYzNjMiLCJ2aXNpdG9yX2lkIjoiNzcyNzExNjU3MzU5MjI4MTk1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace2cf7ab97835b1b87f2ce638dc9b2fb35af95acff1c6e8fb85739b5b48ffa5e0
hovercard-subject-tagpull_request:3308711073
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/phpstan/phpdoc-parser/pull/293/files
twitter:imagehttps://avatars.githubusercontent.com/u/9115419?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/9115419?s=400&v=4
og:image:altSee phpstan/phpstan#7545 From what I understood, we first need phpdoc-parser to be able to parse things like @return ($this->t is T::A ? string : null) and then we'll need follow-up PR to p...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None25854482a1773a7c1ebb8be3d2bc1c6e61d82d78126be63b5044474a86d44d9e
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/phpstan/phpdoc-parser git https://github.com/phpstan/phpdoc-parser.git
octolytics-dimension-user_id16435710
octolytics-dimension-user_loginphpstan
octolytics-dimension-repository_id111290081
octolytics-dimension-repository_nwophpstan/phpdoc-parser
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id111290081
octolytics-dimension-repository_network_root_nwophpstan/phpdoc-parser
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee4f5c239e31f1f680e6bbc419ff92d774da616ec
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/phpstan/phpdoc-parser/pull/293/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpdoc-parser%2Fpull%2F293%2Ffiles
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%2Fphpdoc-parser%2Fpull%2F293%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=phpstan%2Fphpdoc-parser
Reloadhttps://github.com/phpstan/phpdoc-parser/pull/293/files
Reloadhttps://github.com/phpstan/phpdoc-parser/pull/293/files
Reloadhttps://github.com/phpstan/phpdoc-parser/pull/293/files
phpstanhttps://github.com/phpstan
phpdoc-parserhttps://github.com/phpstan/phpdoc-parser
Codehttps://github.com/phpstan/phpdoc-parser
Issues7 (7)https://github.com/phpstan/phpdoc-parser/issues
Pull requests14 (14)https://github.com/phpstan/phpdoc-parser/pulls
Actionshttps://github.com/phpstan/phpdoc-parser/actions
Projectshttps://github.com/phpstan/phpdoc-parser/projects
Security and qualityhttps://github.com/phpstan/phpdoc-parser/security
Insightshttps://github.com/phpstan/phpdoc-parser/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fphpstan%2Fphpdoc-parser%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fphpstan%2Fphpdoc-parser%2Fissues%2Fnew%2Fchoose
brambaudhttps://github.com/brambaud
phpstan:2.3.xhttps://github.com/phpstan/phpdoc-parser/tree/2.3.x
brambaud:issue/phpstan-src-7545/conditional-return-type-support-thishttps://github.com/brambaud/phpdoc-parser/tree/issue/phpstan-src-7545/conditional-return-type-support-this
Conversation 1 https://github.com/phpstan/phpdoc-parser/pull/293
Commits 1 https://github.com/phpstan/phpdoc-parser/pull/293/commits
Checks 51 https://github.com/phpstan/phpdoc-parser/pull/293/checks
Files changed https://github.com/phpstan/phpdoc-parser/pull/293/files
Please reload this pagehttps://github.com/phpstan/phpdoc-parser/pull/293/files
feat: add support for property access in conditional types https://github.com/phpstan/phpdoc-parser/pull/293/files#top
Show all changes 1 commit https://github.com/phpstan/phpdoc-parser/pull/293/files
d5ac20e feat: add support for property access in conditional types brambaud Feb 20, 2026 https://github.com/phpstan/phpdoc-parser/pull/293/commits/d5ac20e6c801f2ad0484e819d7ab5f14b82662c8
Clear filters https://github.com/phpstan/phpdoc-parser/pull/293/files
Please reload this pagehttps://github.com/phpstan/phpdoc-parser/pull/293/files
Please reload this pagehttps://github.com/phpstan/phpdoc-parser/pull/293/files
ConditionalTypeForPropertyNode.php https://github.com/phpstan/phpdoc-parser/pull/293/files#diff-1fc20e01c712fe63aa241ab6a5e76c4f58b4cd97d1a8c77cff5daf9c52f4cc1a
PropertyAccessNode.php https://github.com/phpstan/phpdoc-parser/pull/293/files#diff-51b66eaec0f8f9c43db8181c975b4d0e26ba8b517b1bd7d9b26b7788a8575fb9
PropertyAccessPathItem.php https://github.com/phpstan/phpdoc-parser/pull/293/files#diff-0617ba033165761345c0f38a4b10f20b5dfdff2a5a0697bec63a59354faab66d
Lexer.php https://github.com/phpstan/phpdoc-parser/pull/293/files#diff-5b2a6ad326ef6352f776b19087e035f332c2c60673c6ca09c0c06fb4080e9097
TypeParser.php https://github.com/phpstan/phpdoc-parser/pull/293/files#diff-8310d893400b80c480ffe6d8b59b25a546791c2bb8c6eb03454869d14aecf666
Printer.php https://github.com/phpstan/phpdoc-parser/pull/293/files#diff-b363ae918f8fc38470412b221b8b7d4e42632542713d776ce34d06961a83d62c
TypeParserTest.php https://github.com/phpstan/phpdoc-parser/pull/293/files#diff-1f8ca9548d16a6ae6a38225df681a13d39762d18ad9d8b65a21fa6b141a76192
src/Ast/Type/ConditionalTypeForPropertyNode.phphttps://github.com/phpstan/phpdoc-parser/pull/293/files#diff-1fc20e01c712fe63aa241ab6a5e76c4f58b4cd97d1a8c77cff5daf9c52f4cc1a
View file https://github.com/phpstan/phpdoc-parser/blob/d5ac20e6c801f2ad0484e819d7ab5f14b82662c8/src/Ast/Type/ConditionalTypeForPropertyNode.php
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/phpstan/phpdoc-parser/pull/293/{{ revealButtonHref }}
src/Ast/Type/PropertyAccessNode.phphttps://github.com/phpstan/phpdoc-parser/pull/293/files#diff-51b66eaec0f8f9c43db8181c975b4d0e26ba8b517b1bd7d9b26b7788a8575fb9
View file https://github.com/phpstan/phpdoc-parser/blob/d5ac20e6c801f2ad0484e819d7ab5f14b82662c8/src/Ast/Type/PropertyAccessNode.php
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/phpstan/phpdoc-parser/pull/293/{{ revealButtonHref }}
src/Ast/Type/PropertyAccessPathItem.phphttps://github.com/phpstan/phpdoc-parser/pull/293/files#diff-0617ba033165761345c0f38a4b10f20b5dfdff2a5a0697bec63a59354faab66d
View file https://github.com/phpstan/phpdoc-parser/blob/d5ac20e6c801f2ad0484e819d7ab5f14b82662c8/src/Ast/Type/PropertyAccessPathItem.php
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/phpstan/phpdoc-parser/pull/293/{{ revealButtonHref }}
src/Lexer/Lexer.phphttps://github.com/phpstan/phpdoc-parser/pull/293/files#diff-5b2a6ad326ef6352f776b19087e035f332c2c60673c6ca09c0c06fb4080e9097
View file https://github.com/phpstan/phpdoc-parser/blob/d5ac20e6c801f2ad0484e819d7ab5f14b82662c8/src/Lexer/Lexer.php
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/phpstan/phpdoc-parser/pull/293/{{ revealButtonHref }}
https://github.com/phpstan/phpdoc-parser/pull/293/files#diff-5b2a6ad326ef6352f776b19087e035f332c2c60673c6ca09c0c06fb4080e9097
https://github.com/phpstan/phpdoc-parser/pull/293/files#diff-5b2a6ad326ef6352f776b19087e035f332c2c60673c6ca09c0c06fb4080e9097
Please reload this pagehttps://github.com/phpstan/phpdoc-parser/pull/293/files
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.