Title: Reported line of method call should be more precise · Issue #8564 · phpstan/phpstan · GitHub
Open Graph Title: Reported line of method call should be more precise · Issue #8564 · phpstan/phpstan
X Title: Reported line of method call should be more precise · Issue #8564 · phpstan/phpstan
Description: Bug report Method chaining is very common and I expect this can be improved to report the problem on the AST method call expression start line. I hit this problem when I was adding a @phpstan-ignore-line comment, currently, the comment h...
Open Graph Description: Bug report Method chaining is very common and I expect this can be improved to report the problem on the AST method call expression start line. I hit this problem when I was adding a @phpstan-ignor...
X Description: Bug report Method chaining is very common and I expect this can be improved to report the problem on the AST method call expression start line. I hit this problem when I was adding a @phpstan-ignor...
Opengraph URL: https://github.com/phpstan/phpstan/issues/8564
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Reported line of method call should be more precise","articleBody":"# Bug report\r\n\r\nMethod chaining is very common and I expect this can be improved to report the problem on the AST method call expression start line.\r\n\r\nI hit this problem when I was adding a `@phpstan-ignore-line` comment, currently, the comment has to be placed on the first statement line which is quite illogical with many lines long chained calls.\r\n\r\n### Code snippet that reproduces the problem\r\n\r\nhttps://phpstan.org/r/7fca2cd9-5953-4b30-87c6-c1895a92a3f7\r\n\r\n### Expected output\r\n\r\nI expect line 13 to be reported instead of line 11.","author":{"url":"https://github.com/mvorisek","@type":"Person","name":"mvorisek"},"datePublished":"2022-12-20T14:18:59Z","url":"https://github.com/phpstan/phpstan/issues/8564"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:78ecac06-2b56-07ee-b89d-053c4e2f744d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8256:785A9:6F06B3:8EAF29:6B00E272 |
| html-safe-nonce | fa6b15678ef01508e0eb805b0cbdea546493a96321e8b7c34585f0413fb39ae8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjU2Ojc4NUE5OjZGMDZCMzo4RUFGMjk6NkIwMEUyNzIiLCJ2aXNpdG9yX2lkIjoiNjI1Mjg5MTA1NjY1MjczOTE4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a09a42930f8b755b3cd6edb46c0660c34a8cf7231550d3c4da246b8542743b8b |
| hovercard-subject-tag | issue:1504637257 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/phpstan/phpstan/8564/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c5fbb48cc9def4d5aa063afd28820b67d38112ac00cc18c0d84b448b3ffeab58/phpstan/phpstan/issues/8564 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c5fbb48cc9def4d5aa063afd28820b67d38112ac00cc18c0d84b448b3ffeab58/phpstan/phpstan/issues/8564 |
| og:image:alt | Bug report Method chaining is very common and I expect this can be improved to report the problem on the AST method call expression start line. I hit this problem when I was adding a @phpstan-ignor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mvorisek |
| hostname | github.com |
| expected-hostname | github.com |
| None | 27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14 |
| turbo-cache-control | no-preview |
| go-import | github.com/phpstan/phpstan git https://github.com/phpstan/phpstan.git |
| octolytics-dimension-user_id | 16435710 |
| octolytics-dimension-user_login | phpstan |
| octolytics-dimension-repository_id | 49014795 |
| octolytics-dimension-repository_nwo | phpstan/phpstan |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49014795 |
| octolytics-dimension-repository_network_root_nwo | phpstan/phpstan |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 624179fb8b88d26ba5bba08894eb60a1c5a1d93d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width