René's URL Explorer Experiment


Title: Check `#[RequiresPhpunit(....)]` in the same way we check `#[RequiresPhp(...)]` · Issue #302 · phpstan/phpstan-phpunit · GitHub

Open Graph Title: Check `#[RequiresPhpunit(....)]` in the same way we check `#[RequiresPhp(...)]` · Issue #302 · phpstan/phpstan-phpunit

X Title: Check `#[RequiresPhpunit(....)]` in the same way we check `#[RequiresPhp(...)]` · Issue #302 · phpstan/phpstan-phpunit

Description: there is a RequiresPhpunit attribute which supports similar version constraints RequiresPhp does, e.g. #[RequiresPhpunit('>= 10.1.0')] https://docs.phpunit.de/en/10.5/attributes.html#requiresphpunit we should run the same sanity checks o...

Open Graph Description: there is a RequiresPhpunit attribute which supports similar version constraints RequiresPhp does, e.g. #[RequiresPhpunit('>= 10.1.0')] https://docs.phpunit.de/en/10.5/attributes.html#requiresphpuni...

X Description: there is a RequiresPhpunit attribute which supports similar version constraints RequiresPhp does, e.g. #[RequiresPhpunit('>= 10.1.0')] https://docs.phpunit.de/en/10.5/attributes.html#req...

Opengraph URL: https://github.com/phpstan/phpstan-phpunit/issues/302

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Check `#[RequiresPhpunit(....)]` in the same way we check `#[RequiresPhp(...)]`","articleBody":"there is a `RequiresPhpunit` attribute which supports similar version constraints `RequiresPhp` does, e.g. `#[RequiresPhpunit('>= 10.1.0')]`\n\nhttps://docs.phpunit.de/en/10.5/attributes.html#requiresphpunit\n\nwe should run the same sanity checks on it. see initial implementation in \n- https://github.com/phpstan/phpstan-phpunit/pull/268\n- https://github.com/phpstan/phpstan-phpunit/pull/269\n\n---\n\nexample\n\n```\n\t#[RequiresPhp('>= 8.3')]\n\t#[RequiresPhpunit('>= 8.5')]\n\tpublic function testFixWithPipe(): void\n\t{\n\t\t$this->fix(__DIR__ . '/data/final-class-rule-pipe.php', __DIR__ . '/data/final-class-rule-pipe.php.fixed');\n\t}\n```\n\nresults in \n```\n➜  phpstan-src git:(2.2.x) ✗ /Users/m.staab/dvl/phpunit/phpunit tests/PHPStan/Build/FinalClassRuleTest.php\nPHPUnit 13.3-gab1fecc8a by Sebastian Bergmann and contributors.\n\nRuntime:       PHP 8.5.7\nConfiguration: /Users/m.staab/dvl/phpstan-src/phpunit.xml\nRandom Seed:   1782378584\n\n...                                                                 3 / 3 (100%)\n\nTime: 00:02.046, Memory: 78.50 MB\n\nThere were 2 PHPUnit test runner warnings:\n\n1) Incomplete version requirement \"8.3\" used by PHPStan\\Build\\FinalClassRuleTest::testFixWithPipe()\n\n2) Incomplete version requirement \"8.5\" used by PHPStan\\Build\\FinalClassRuleTest::testFixWithPipe()\n\nOK, but there were issues!\nTests: 3, Assertions: 3, PHPUnit Warnings: 4.\n```","author":{"url":"https://github.com/staabm","@type":"Person","name":"staabm"},"datePublished":"2026-06-18T09:44:43Z","url":"https://github.com/phpstan/phpstan-phpunit/issues/302"}

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:7ca32247-39ee-48f2-570e-c6630b302444
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE4F6:0DB8:3D68B1:553A5B:6B008D0F
html-safe-nonce2cabb2d14b7fb0b9db76ca49df4767fcc066eb7d8ce2cf35af9b456c205d6ee8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNEY2OjBEQjg6M0Q2OEIxOjU1M0E1Qjo2QjAwOEQwRiIsInZpc2l0b3JfaWQiOiIzMTQ4MTI1ODk0OTIxNDU2OTExIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4304f59ea52c2835d4e5e9df860f64c768e879859d765c59d5d9b51b0214f60b
hovercard-subject-tagissue:4691162704
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/phpstan-phpunit/302/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0a739e2b767acbb6f9dc9e3c6d79644d2cedc04151b5ad3701ad661ebd9e922b/phpstan/phpstan-phpunit/issues/302
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0a739e2b767acbb6f9dc9e3c6d79644d2cedc04151b5ad3701ad661ebd9e922b/phpstan/phpstan-phpunit/issues/302
og:image:altthere is a RequiresPhpunit attribute which supports similar version constraints RequiresPhp does, e.g. #[RequiresPhpunit('>= 10.1.0')] https://docs.phpunit.de/en/10.5/attributes.html#requiresphpuni...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamestaabm
hostnamegithub.com
expected-hostnamegithub.com
Nonec710a5cb5c47be60abfe6e8410436d409906979dbed614ef09f29c60f5535b08
turbo-cache-controlno-preview
go-importgithub.com/phpstan/phpstan-phpunit git https://github.com/phpstan/phpstan-phpunit.git
octolytics-dimension-user_id16435710
octolytics-dimension-user_loginphpstan
octolytics-dimension-repository_id105883921
octolytics-dimension-repository_nwophpstan/phpstan-phpunit
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id105883921
octolytics-dimension-repository_network_root_nwophpstan/phpstan-phpunit
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
releasebe616a2a6ec1c609d6e002896dff5352d5c5f28b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/phpstan/phpstan-phpunit/issues/302#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-phpunit%2Fissues%2F302
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%2Fphpstan-phpunit%2Fissues%2F302
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%2Fphpstan-phpunit
Reloadhttps://github.com/phpstan/phpstan-phpunit/issues/302
Reloadhttps://github.com/phpstan/phpstan-phpunit/issues/302
Reloadhttps://github.com/phpstan/phpstan-phpunit/issues/302
phpstanhttps://github.com/phpstan
phpstan-phpunithttps://github.com/phpstan/phpstan-phpunit
Codehttps://github.com/phpstan/phpstan-phpunit
Issues34 (34)https://github.com/phpstan/phpstan-phpunit/issues
Pull requests7 (7)https://github.com/phpstan/phpstan-phpunit/pulls
Actionshttps://github.com/phpstan/phpstan-phpunit/actions
Projectshttps://github.com/phpstan/phpstan-phpunit/projects
Security and qualityhttps://github.com/phpstan/phpstan-phpunit/security
Insightshttps://github.com/phpstan/phpstan-phpunit/insights
https://github.com/phpstan/phpstan-phpunit
New issuehttps://github.com/login?return_to=https://github.com/phpstan/phpstan-phpunit/issues/302
New issuehttps://github.com/login?return_to=https://github.com/phpstan/phpstan-phpunit/issues/302
#308https://github.com/phpstan/phpstan-phpunit/pull/308
Check #[RequiresPhpunit(....)] in the same way we check #[RequiresPhp(...)]https://github.com/phpstan/phpstan-phpunit/issues/302#top
#308https://github.com/phpstan/phpstan-phpunit/pull/308
https://github.com/staabm
staabmhttps://github.com/staabm
on Jun 18, 2026https://github.com/phpstan/phpstan-phpunit/issues/302#issue-4691162704
https://docs.phpunit.de/en/10.5/attributes.html#requiresphpunithttps://docs.phpunit.de/en/10.5/attributes.html#requiresphpunit
Implement AttributeRequiresPhpVersionRule #268https://github.com/phpstan/phpstan-phpunit/pull/268
Sanity check #[RequiresPhp] value and range #269https://github.com/phpstan/phpstan-phpunit/pull/269
staabmhttps://github.com/staabm
completedhttps://github.com/phpstan/phpstan-phpunit/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#308https://github.com/phpstan/phpstan-phpunit/pull/308
on Jun 25, 2026https://github.com/phpstan/phpstan-phpunit/issues/302#event-27198753118
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Jul 27, 2026https://github.com/phpstan/phpstan-phpunit/issues/302#issuecomment-5086272157
GitHub Actionshttps://help.github.com/en/actions
github-actionshttps://github.com/apps/github-actions
on Jul 27, 2026https://github.com/phpstan/phpstan-phpunit/issues/302#event-28511785866
Sign up for freehttps://github.com/signup?return_to=https://github.com/phpstan/phpstan-phpunit/issues/302
Sign in to commenthttps://github.com/login?return_to=https://github.com/phpstan/phpstan-phpunit/issues/302
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.