Title: autofix incomplete version constraints · Issue #309 · phpstan/phpstan-phpunit · GitHub
Open Graph Title: autofix incomplete version constraints · Issue #309 · phpstan/phpstan-phpunit
X Title: autofix incomplete version constraints · Issue #309 · phpstan/phpstan-phpunit
Description: I think we could think about whether errors like Version requirement is incomplete. can be made autofixable...? most obvious examples would be - #[RequiresPhp('^8.0')] + #[RequiresPhp('^8.0.0')] - #[RequiresPhp('>=8.0')] +- #[RequiresPhp...
Open Graph Description: I think we could think about whether errors like Version requirement is incomplete. can be made autofixable...? most obvious examples would be - #[RequiresPhp('^8.0')] + #[RequiresPhp('^8.0.0')] - ...
X Description: I think we could think about whether errors like Version requirement is incomplete. can be made autofixable...? most obvious examples would be - #[RequiresPhp('^8.0')] + #[RequiresPhp('...
Opengraph URL: https://github.com/phpstan/phpstan-phpunit/issues/309
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"autofix incomplete version constraints","articleBody":"I think we could think about whether errors like\n\n> Version requirement is incomplete.\n\ncan be made autofixable...?\n\nmost obvious examples would be\n\n```diff\n- #[RequiresPhp('^8.0')]\n+ #[RequiresPhp('^8.0.0')]\n```\n\n```diff\n- #[RequiresPhp('>=8.0')]\n+- #[RequiresPhp('>=8.0.0')]\n```\n\n```diff\n- #[RequiresPhp('>=8')]\n+- #[RequiresPhp('>=8.0.0')]\n```\n\n```diff\n- #[RequiresPhpunit('>=12')]\n+- #[RequiresPhpunit('>=12.0.0')]\n```\n\nin which the comparison operator is given, but the version is not 3 digits\n\nsee \n- https://github.com/phpstan/phpstan-phpunit/pull/268\n- https://github.com/phpstan/phpstan-phpunit/pull/308","author":{"url":"https://github.com/staabm","@type":"Person","name":"staabm"},"datePublished":"2026-06-25T12:39:11Z","url":"https://github.com/phpstan/phpstan-phpunit/issues/309"}
| 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:99bf893c-3396-c1a6-eeb7-1fd17165ebd8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CC40:3D53C:2DEBAB:40164F:6B006B52 |
| html-safe-nonce | e3771c78a43083495c5cd7c5ad4645c29d3b12072c14795956fafd232aacbbd8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzQwOjNENTNDOjJERUJBQjo0MDE2NEY6NkIwMDZCNTIiLCJ2aXNpdG9yX2lkIjoiODcwNTg5Mzc5NzM0NDYwMjk2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0c6b8afa911e4ed9e1c837a7c645c76249d1590718942d939ca884245ef92d0e |
| hovercard-subject-tag | issue:4743864634 |
| 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-phpunit/309/issue_layout |
| twitter:image | https://opengraph.githubassets.com/61585406607a2ca74a7bdc7da103af02eb6b4d801b81cb9d78f41d2639500446/phpstan/phpstan-phpunit/issues/309 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/61585406607a2ca74a7bdc7da103af02eb6b4d801b81cb9d78f41d2639500446/phpstan/phpstan-phpunit/issues/309 |
| og:image:alt | I think we could think about whether errors like Version requirement is incomplete. can be made autofixable...? most obvious examples would be - #[RequiresPhp('^8.0')] + #[RequiresPhp('^8.0.0')] - ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | staabm |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6527e91c60c0b29d16606ff32ac5df8ecdc37a2a62205ea057a14d7762c870fa |
| turbo-cache-control | no-preview |
| go-import | github.com/phpstan/phpstan-phpunit git https://github.com/phpstan/phpstan-phpunit.git |
| octolytics-dimension-user_id | 16435710 |
| octolytics-dimension-user_login | phpstan |
| octolytics-dimension-repository_id | 105883921 |
| octolytics-dimension-repository_nwo | phpstan/phpstan-phpunit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 105883921 |
| octolytics-dimension-repository_network_root_nwo | phpstan/phpstan-phpunit |
| 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 | 46f1cd2ae3cd8ae1a81019b5d619742e76f13bbd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width