Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Phpstan Phpunit Laravel Package

phpstan/phpstan-phpunit

PHPStan extension for PHPUnit: improves type inference for mocks (intersection types for createMock/getMock), understands Foo|MockObject phpDocs, adds early-terminating methods to avoid undefined vars, and refines assert() types. Optional strict rules catch improper assertion usage.

View on GitHub
Deep Wiki
Context7
2.0.16
  • 6ab598e - DataProviderDataRule: Optimize hot path
2.0.15
  • 0f6ba8e - DataProviderReturnTypeIgnoreExtension - ignore Iterator, Generator, IteratorAggregate too
2.0.14
  • f7553d6 - Add support for createMockForIntersectionOfInterfaces
2.0.13
  • 45bc1ad - Implement DynamicCallToAssertionIgnoreExtension
  • 590b84d - chore(deps): update wyrihaximus/github-action-get-previous-tag action to v2
  • 4d1d776 - Add keywords for static analysis in composer.json
2.0.12
  • e4c5a22 - TestMethodsHelper - class methods cache
  • 80091f9 - TestMethodsHelper - speed-up by asking for immediate methods only
2.0.11
  • 5e30669 - Perf: Refactor PHPUnitVersionDetector to use runtime reflection
  • 202afe9 - chore(deps): update github-actions
2.0.10
  • 8d61a58 - Remove checkDataProviderData and introduce reportMissingDataProviderReturnType
2.0.9
  • cda423c - Implement AttributeRequiresPhpVersionRule
  • 83b717d - ci: Add tests for PHP 8.5
  • 75ba948 - chore(deps): update actions/checkout action to v6
2.0.8
  • 2fe9fbe - Fix AssertSameWithCountRule for recursive count()
  • d935297 - Fix "Unexpected input(s) 'extensions', valid inputs are ['php-version', 'php-extensions', 'build-infection-path']"
  • 8532ceb - Make AssertSameNullExpectedRule auto-fixable
  • a4abfc1 - Use TypeSystem in AssertSameBooleanExpectedRule
  • 36cb9a6 - Make AssertSameBooleanExpectedRule auto-fixable
  • 450bfc0 - Added assertArrayHasKey() expectations
  • 033f690 - PHPUnit 9.x/10.x does not at all support named arguments from data-providers
  • 758d343 - Refactor PHPUnitVersionDetector to ease different major version checks
  • dd87f2e - Assert*Rules: Do cheap checks first (#247)
  • 5c89d74 - Ignore missingType.iterableValue for data-providers
  • 1fbc321 - move analyse-paths into phpstan.neon
  • 11f3ada - Fix mutation testing on dev branch (#244)
  • 53e33fc - Setup mutation testing
  • 12676a7 - One more test
  • c81e395 - Fix memory consumption in DataProviderDataRule
  • 61860a6 - Implement DataProviderDataRule
  • 39950c7 - Preparational refactoring for DataProviderDataRule
  • c54a269 - Narrow too wide return type
  • 9ec3fa9 - Modernize code examples in README.md
  • b1df1f5 - chore(deps): update actions/checkout action to v5
  • 1d7eb7e - chore(deps): update eomm/why-don-t-you-tweet action to v2
2.0.7
  • 9a9b161 - Make AssertEqualsIsDiscouragedRule auto-fixable
  • 2e07610 - Check isFirstClassCallable before accessing getArgs
  • 22c6949 - Make phpunit.dataProviderStatic auto-fixable
  • d35895e - chore(deps): update metcalfc/changelog-generator action to v4.6.2
2.0.6
  • 6b92469 - Fix build
  • 0aef32f - Improve logic MockMethodCallRule to search for method even on wrong type
2.0.5
  • 4d2b44b - InvocationMocker class no longer exists
  • 1f36fc5 - Use DataProvider attribute
  • bf031ae - Test PHPUnit v12
  • 40fbbc1 - chore(deps): update metcalfc/changelog-generator action to v4.5.0
  • 1a07095 - Add non regression test for #222
  • eb88670 - Always install nikic/php-parser v5
  • 19f8059 - Do not generate code coverage
  • 630aa99 - Remove deprecated assert
  • 342b6c1 - Data providers must be static
  • 846d161 - Test multiple PHPUnit versions
  • 855b82c - Remove config.platform
  • 0f857bf - Introduce phpstan-deprecation-rules
  • 17bbfd3 - Update LICENSE
2.0.4
  • d09e152 - Fix error message for "assertNotEquals" usage referencing "assertSame" and "assertEquals"
2.0.3
  • e32ac65 - Support assertNotEquals in AssertEqualsIsDiscouragedRule
2.0.2
  • 2cedfb7 - Merge remote-tracking branch 'origin/1.4.x' into 2.0.x
  • 10880da - Implement AssertEqualsIsDiscouragedRule (#216)
  • 4b6ad7f - Fix
  • bec49ea - Merge branch '1.4.x' into 2.0.x
  • 3cc8554 - Fixes after PHPStan update
  • 09e2d3b - Uncover everything behind the bleedingEdge flag
  • 4d861e0 - Fix after TypeSpecifier BC break
  • 3faa605 - Update build-cs
  • 953195d - Stop testing PHP 7.2 and 7.3
  • 7f1457f - Open 2.0.x
1.4.2
  • 72a6721 - Use more specific node-type
  • 4b6ad7f - Fix
  • bec49ea - Merge branch '1.4.x' into 2.0.x
  • 3cc8554 - Fixes after PHPStan update
  • 09e2d3b - Uncover everything behind the bleedingEdge flag
  • 4d861e0 - Fix after TypeSpecifier BC break
  • 3faa605 - Update build-cs
  • 953195d - Stop testing PHP 7.2 and 7.3
  • 7f1457f - Open 2.0.x
2.0.1
  • 4b6ad7f - Fix
  • bec49ea - Merge branch '1.4.x' into 2.0.x
  • 3cc8554 - Fixes after PHPStan update
  • 09e2d3b - Uncover everything behind the bleedingEdge flag
  • 4d861e0 - Fix after TypeSpecifier BC break
  • 3faa605 - Update build-cs
  • 953195d - Stop testing PHP 7.2 and 7.3
  • 7f1457f - Open 2.0.x
1.4.1
  • 11d4235 - fix: Make sure Assert::assertIsList correctly asserts an array as list
  • 3cc8554 - Fixes after PHPStan update
  • 09e2d3b - Uncover everything behind the bleedingEdge flag
  • 4d861e0 - Fix after TypeSpecifier BC break
  • 3faa605 - Update build-cs
  • 953195d - Stop testing PHP 7.2 and 7.3
  • 7f1457f - Open 2.0.x
2.0.0
  • 3cc8554 - Fixes after PHPStan update
  • 09e2d3b - Uncover everything behind the bleedingEdge flag
  • 4d861e0 - Fix after TypeSpecifier BC break
  • 3faa605 - Update build-cs
  • 953195d - Stop testing PHP 7.2 and 7.3
  • 7f1457f - Open 2.0.x
  • 146d9c3 - Test newer PHP versions
  • bb6bec0 - Pin build-cs
1.4.0
  • f3ea021 - Update lock-closed-issues.yml
  • f93aec7 - Merge remote-tracking branch 'origin/1.3.x' into 1.4.x
  • 77bdf96 - Update metcalfc/changelog-generator action to v4.3.1
  • 6a1df9a - Update cbrgm/mastodon-github-action action to v2
  • e95a58b - Update metcalfc/changelog-generator action to v4.2.0
  • 77345df - Update dessant/lock-threads action to v5
  • 99bb21e - Merge branch '1.3.x' into 1.4.x
  • ac8ea99 - Update actions/checkout action to v4
  • 529f300 - Merge branch '1.3.x' into 1.4.x
  • 62e883e - Open 1.4.x-dev
  • 97ec1d3 - Merge branch '1.3.x' into 1.4.x
  • 4d99a7d - Require PHPStan 1.11
  • 908e232 - Error identifiers
1.3.16
  • d5242a5 - Narrow type on assertCount and assertNotCount
1.3.15
  • 70ecacc - AssertTypeSpecifyingExtensionHelper: rootExpr with unknown variable to avoid always-true false positives (#197)
1.3.14
  • 614acc1 - Add support for assertObjectHasProperty
  • 6536e66 - Open 1.3.x-dev
  • e468b76 - Add support for assertContains and assertContainsEquals
  • 2742e1c - Add partial support for assertContainsOnlyInstancesOf
  • f2118db - Improve support of assertArrayHasKey()
  • abc6e12 - Update phpstan/phpstan-strict-rules
  • d96b5a4 - Modernize rules with RuleErrorBuilder
1.3.13
  • d8bdab0 - Microoptimize AssertRuleHelper.
  • 9e928dd - Next-gen coding standard workflow
1.3.12
  • c442468 - Fix assertInstanceOf handler
  • 23009eb - Add regression test for #185
  • aaf5fe5 - Update dependency slevomat/coding-standard to v8.12.0
  • 9975b98 - Update dependency slevomat/coding-standard to v8.11.1
  • c006a38 - Update dependency slevomat/coding-standard to v8.11.0
  • 2365fd0 - Update dependency slevomat/coding-standard to v8.10.0
  • 4ae9e7c - Update build-cs
  • 8b82ef2 - Update dependency slevomat/coding-standard to v8.9.0
1.3.11
  • 9e1b9de - Warn when trying to cover an interface.
  • ceea85e - Update PHPCS
  • f659243 - Update metcalfc/changelog-generator action to v4.1.0
1.3.10
  • 4cc5c6c - MockMethodCallRule - do not report for empty $mockClasses
1.3.9
  • 34ee324 - Fixed false positive when covering a global function.
1.3.8
  • 4a19a3c - Add tip to error when a not fully qualified name is seen in @covers annotation.
1.3.7
  • 7e43c8f - Fix handling assertInstanceOf
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport