René's URL Explorer Experiment


Title: Multiline array shapes with 'comments' · Issue #184 · phpstan/phpdoc-parser · GitHub

Open Graph Title: Multiline array shapes with 'comments' · Issue #184 · phpstan/phpdoc-parser

X Title: Multiline array shapes with 'comments' · Issue #184 · phpstan/phpdoc-parser

Description: Feature request For types that involve more complex associative arrays, it is nice to know what each of key/value pairs are for. Does there exist a way to have 'type comments' that allow you to insert comments/descriptions in multiline a...

Open Graph Description: Feature request For types that involve more complex associative arrays, it is nice to know what each of key/value pairs are for. Does there exist a way to have 'type comments' that allow you to ins...

X Description: Feature request For types that involve more complex associative arrays, it is nice to know what each of key/value pairs are for. Does there exist a way to have 'type comments' that allow yo...

Opengraph URL: https://github.com/phpstan/phpdoc-parser/issues/184

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Multiline array shapes with 'comments'","articleBody":"# Feature request\r\n\r\nFor types that involve more complex associative arrays, it is nice to know what each of key/value pairs are for. Does there exist a way to have 'type comments' that allow you to insert comments/descriptions in multiline array types?\r\n\r\nFor example, below is an associative array that has a bunch of expected key values, along with 'comments' to help describe what each key is for. Is there a standard for psalm to do this.\r\n\r\n```php\r\n/**\r\n *\r\n * @var array\u003c\r\n *  string,                   // name of the rule\r\n *  array{\r\n *   params: array\u003c           // list of parameters defined by the rule\r\n *    array{\r\n *     key: string,           // the key used to identify the value in the POST\r\n *     nullOK: bool,          // the key used to identify the value in the POST\r\n *     blankOK: bool,         // whether the param's value can be an empty string\r\n *     type: string,          // the type of value\r\n *     regExp?: string,       // regular expression used for validation if the type is 'regex'\r\n *     context?: string,      // extra data required for validation (currenlty only used if type is 'signed')\r\n *     name?: string,         // human readable name for the param (used by error messages, defaults to 'key')\r\n *     description?: string,  // a description of the parameter\r\n *     list?: bool,           // whether the param's value is a list\r\n *     delim?: string,        // delimeter to split the list on (e.g. [val => 'this,is,a,list', delim => ','])\r\n *     trim?: string,         // whether to strip whitespace from elements in list\r\n *     trimLevel?: string,    // 0 to trim whitespace from beginning and end of items,\r\n *     minErr?: int,          // minimum length of the param's value\r\n *     maxErr?: int,          // maximum length of the param's value\r\n *     allowedVals?: array,   // a list of allowed values\r\n *     blackList?: array      // a list of blacklisted/blocked values\r\n *    }>,\r\n *   handlers: array\u003c\r\n *    string,                 // name of the handler\r\n *    array{\r\n *     func: string,          // the name of the function in the app's validator (e.g. '\\ESP\\app\\Validator::func')\r\n *     extraArgs?: array,     // any parameters that are not $action, $post, or $postIn - ORDER MATTERS\r\n *     return?: bool          // whether error's are returned as a json or an exception is thrown (defaults to false)\r\n *    }>\r\n * }>\r\n */\r\npublic static $rules = [];\r\n```\r\nThis would be incredibly useful. Thanks!","author":{"url":"https://github.com/jlwoolf","@type":"Person","name":"jlwoolf"},"datePublished":"2023-04-05T14:47:50Z","url":"https://github.com/phpstan/phpdoc-parser/issues/184"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:431da485-2d4e-00fc-dcc2-a476d3d7f42a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9A6A:1A78DD:17DDE3:215DE9:6B006651
html-safe-noncec0828fc201ab83721799be7754db80427fc06165cd52ea63401316d43662af10
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTZBOjFBNzhERDoxN0RERTM6MjE1REU5OjZCMDA2NjUxIiwidmlzaXRvcl9pZCI6IjM0NzE0NzY4NTQzMDc3MTA1NDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac32efebd5d7acf900c63795f00a54cabcf1ecbb71af32173f56b86f430c028047
hovercard-subject-tagissue:1655786795
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/phpstan/phpdoc-parser/184/issue_layout
twitter:imagehttps://opengraph.githubassets.com/944d778f1f3a54855b23120b2b798d010f4d66c19236723df7c11abda3d3286e/phpstan/phpdoc-parser/issues/184
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/944d778f1f3a54855b23120b2b798d010f4d66c19236723df7c11abda3d3286e/phpstan/phpdoc-parser/issues/184
og:image:altFeature request For types that involve more complex associative arrays, it is nice to know what each of key/value pairs are for. Does there exist a way to have 'type comments' that allow you to ins...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejlwoolf
hostnamegithub.com
expected-hostnamegithub.com
None25854482a1773a7c1ebb8be3d2bc1c6e61d82d78126be63b5044474a86d44d9e
turbo-cache-controlno-preview
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
disable-turbofalse
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
react-app-nameissues

Links:

Skip to contenthttps://github.com/phpstan/phpdoc-parser/issues/184#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpdoc-parser%2Fissues%2F184
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%2Fissues%2F184
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=phpstan%2Fphpdoc-parser
Reloadhttps://github.com/phpstan/phpdoc-parser/issues/184
Reloadhttps://github.com/phpstan/phpdoc-parser/issues/184
Reloadhttps://github.com/phpstan/phpdoc-parser/issues/184
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
https://github.com/phpstan/phpdoc-parser
New issuehttps://github.com/login?return_to=https://github.com/phpstan/phpdoc-parser/issues/184
New issuehttps://github.com/login?return_to=https://github.com/phpstan/phpdoc-parser/issues/184
#264https://github.com/phpstan/phpdoc-parser/pull/264
Multiline array shapes with 'comments'https://github.com/phpstan/phpdoc-parser/issues/184#top
#264https://github.com/phpstan/phpdoc-parser/pull/264
https://github.com/jlwoolf
jlwoolfhttps://github.com/jlwoolf
on Apr 5, 2023https://github.com/phpstan/phpdoc-parser/issues/184#issue-1655786795
ondrejmirteshttps://github.com/ondrejmirtes
phpstan/phpstanhttps://github.com/phpstan/phpstan
on Apr 5, 2023https://github.com/phpstan/phpdoc-parser/issues/184#event-8936205477
https://github.com/nicolas-grekas
nicolas-grekashttps://github.com/nicolas-grekas
on Jan 21, 2025https://github.com/phpstan/phpdoc-parser/issues/184#issuecomment-2605160319
#213https://github.com/phpstan/phpdoc-parser/pull/213
ondrejmirteshttps://github.com/ondrejmirtes
completedhttps://github.com/phpstan/phpdoc-parser/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#264https://github.com/phpstan/phpdoc-parser/pull/264
on Feb 19, 2025https://github.com/phpstan/phpdoc-parser/issues/184#event-16365680727
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Mar 23, 2025https://github.com/phpstan/phpdoc-parser/issues/184#issuecomment-2745936472
GitHub Actionshttps://help.github.com/en/actions
github-actionshttps://github.com/apps/github-actions
on Mar 23, 2025https://github.com/phpstan/phpdoc-parser/issues/184#event-16942706833
Sign up for freehttps://github.com/signup?return_to=https://github.com/phpstan/phpdoc-parser/issues/184
Sign in to commenthttps://github.com/login?return_to=https://github.com/phpstan/phpdoc-parser/issues/184
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.