René's URL Explorer Experiment


Title: Support "one-line" comments (starting with //) by rhertogh · Pull Request #202 · phpstan/phpdoc-parser · GitHub

Open Graph Title: Support "one-line" comments (starting with //) by rhertogh · Pull Request #202 · phpstan/phpdoc-parser

X Title: Support "one-line" comments (starting with //) by rhertogh · Pull Request #202 · phpstan/phpdoc-parser

Description: This PR adds support for comments inside type definitions, e.g.: /** @return array { // Array with comments. * // Comments can be placed on their own line. * foo: string, // An array key description. * bar: array {, // Another array key description. * 'foo//bar': string, // Array key with "//" in it's name. * }, * } */ Fixes #184

Open Graph Description: This PR adds support for comments inside type definitions, e.g.: /** @return array { // Array with comments. * // Comments can be placed on their own line. * foo: string, // An array key...

X Description: This PR adds support for comments inside type definitions, e.g.: /** @return array { // Array with comments. * // Comments can be placed on their own line. * foo: string, // An array key...

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

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:4b47d4b6-059c-eb6c-7005-48fd5c1ae605
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB60E:3E191E:2D0A03:3D8714:6B006A3C
html-safe-noncef5c8eed7b045075ea265204d0997d42aff11215bc0ec0d549142993ed5a2de20
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjBFOjNFMTkxRToyRDBBMDM6M0Q4NzE0OjZCMDA2QTNDIiwidmlzaXRvcl9pZCI6IjcyNTgwOTQ3MjAyNTYwNzYzNDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacebbd86dff20da04112e1681fae9742727bb4203d7669e104d074921417a74c8a
hovercard-subject-tagpull_request:1436096506
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/202/files
twitter:imagehttps://avatars.githubusercontent.com/u/1292337?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1292337?s=400&v=4
og:image:altThis PR adds support for comments inside type definitions, e.g.: /** @return array { // Array with comments. * // Comments can be placed on their own line. * foo: string, // An array key...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None6527e91c60c0b29d16606ff32ac5df8ecdc37a2a62205ea057a14d7762c870fa
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
release46f1cd2ae3cd8ae1a81019b5d619742e76f13bbd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/phpstan/phpdoc-parser/pull/202/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpdoc-parser%2Fpull%2F202%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%2F202%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/202/files
Reloadhttps://github.com/phpstan/phpdoc-parser/pull/202/files
Reloadhttps://github.com/phpstan/phpdoc-parser/pull/202/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
rhertoghhttps://github.com/rhertogh
phpstan:1.22.xhttps://github.com/phpstan/phpdoc-parser/tree/1.22.x
rhertogh:support_one_line_commentshttps://github.com/rhertogh/phpstan-phpdoc-parser/tree/support_one_line_comments
Conversation 8 https://github.com/phpstan/phpdoc-parser/pull/202
Commits 2 https://github.com/phpstan/phpdoc-parser/pull/202/commits
Checks 0 https://github.com/phpstan/phpdoc-parser/pull/202/checks
Files changed https://github.com/phpstan/phpdoc-parser/pull/202/files
Please reload this pagehttps://github.com/phpstan/phpdoc-parser/pull/202/files
Support "one-line" comments (starting with //) https://github.com/phpstan/phpdoc-parser/pull/202/files#top
Show all changes 2 commits https://github.com/phpstan/phpdoc-parser/pull/202/files
e80305e Support "one-line" comments (starting with //) rhertogh Jul 15, 2023 https://github.com/phpstan/phpdoc-parser/pull/202/commits/e80305ead957e2f12a56b091c26ac4b7bb719c2c
5b055b1 Fixed coding standards and linting for 'support "one-line" comments' … rhertogh Jul 15, 2023 https://github.com/phpstan/phpdoc-parser/pull/202/commits/5b055b1591575384db1753491f5fa7f915c21007
Clear filters https://github.com/phpstan/phpdoc-parser/pull/202/files
Please reload this pagehttps://github.com/phpstan/phpdoc-parser/pull/202/files
Please reload this pagehttps://github.com/phpstan/phpdoc-parser/pull/202/files
TokenIterator.php https://github.com/phpstan/phpdoc-parser/pull/202/files#diff-62d19c66cc22434f96724388acd962198a200c0c0ced48aeace88157ae658586
TypeParser.php https://github.com/phpstan/phpdoc-parser/pull/202/files#diff-8310d893400b80c480ffe6d8b59b25a546791c2bb8c6eb03454869d14aecf666
TypeParserTest.php https://github.com/phpstan/phpdoc-parser/pull/202/files#diff-1f8ca9548d16a6ae6a38225df681a13d39762d18ad9d8b65a21fa6b141a76192
src/Parser/TokenIterator.phphttps://github.com/phpstan/phpdoc-parser/pull/202/files#diff-62d19c66cc22434f96724388acd962198a200c0c0ced48aeace88157ae658586
View file https://github.com/rhertogh/phpstan-phpdoc-parser/blob/5b055b1591575384db1753491f5fa7f915c21007/src/Parser/TokenIterator.php
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/phpstan/phpdoc-parser/pull/202/{{ revealButtonHref }}
https://github.com/phpstan/phpdoc-parser/pull/202/files#diff-62d19c66cc22434f96724388acd962198a200c0c0ced48aeace88157ae658586
https://github.com/phpstan/phpdoc-parser/pull/202/files#diff-62d19c66cc22434f96724388acd962198a200c0c0ced48aeace88157ae658586
https://github.com/phpstan/phpdoc-parser/pull/202/files#diff-62d19c66cc22434f96724388acd962198a200c0c0ced48aeace88157ae658586
src/Parser/TypeParser.phphttps://github.com/phpstan/phpdoc-parser/pull/202/files#diff-8310d893400b80c480ffe6d8b59b25a546791c2bb8c6eb03454869d14aecf666
View file https://github.com/rhertogh/phpstan-phpdoc-parser/blob/5b055b1591575384db1753491f5fa7f915c21007/src/Parser/TypeParser.php
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/phpstan/phpdoc-parser/pull/202/{{ revealButtonHref }}
https://github.com/phpstan/phpdoc-parser/pull/202/files#diff-8310d893400b80c480ffe6d8b59b25a546791c2bb8c6eb03454869d14aecf666
https://github.com/phpstan/phpdoc-parser/pull/202/files#diff-8310d893400b80c480ffe6d8b59b25a546791c2bb8c6eb03454869d14aecf666
tests/PHPStan/Parser/TypeParserTest.phphttps://github.com/phpstan/phpdoc-parser/pull/202/files#diff-1f8ca9548d16a6ae6a38225df681a13d39762d18ad9d8b65a21fa6b141a76192
View file https://github.com/rhertogh/phpstan-phpdoc-parser/blob/5b055b1591575384db1753491f5fa7f915c21007/tests/PHPStan/Parser/TypeParserTest.php
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/phpstan/phpdoc-parser/pull/202/{{ revealButtonHref }}
https://github.com/phpstan/phpdoc-parser/pull/202/files#diff-1f8ca9548d16a6ae6a38225df681a13d39762d18ad9d8b65a21fa6b141a76192
https://github.com/phpstan/phpdoc-parser/pull/202/files#diff-1f8ca9548d16a6ae6a38225df681a13d39762d18ad9d8b65a21fa6b141a76192
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.