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 Mockery Laravel Package

phpstan/phpstan-mockery

PHPStan extension for Mockery: infers intersection types for mocks (Foo&MockInterface), understands shouldReceive/shouldHaveReceived/allows/expects, supports partial/alias/overload mocks, multiple interfaces, and proper constructor args for accurate static analysis.

View on GitHub
Deep Wiki
Context7
2.0.0
1.1.3
1.1.2
  • 88ae859 - Fix MockInterface::shouldHaveReceived() and MockInterface::shouldNotHaveReceived() stub methods
  • 40dc3e2 - Update metcalfc/changelog-generator action to v4.2.0
  • 9cac2b2 - Update dessant/lock-threads action to v5
  • c033012 - Update actions/checkout action to v4
  • 965a4c0 - Next-gen coding standard workflow
  • d9975b9 - Update dependency slevomat/coding-standard to v8.12.0
  • 1724f53 - Update dependency slevomat/coding-standard to v8.11.1
  • b2a842f - Update dependency slevomat/coding-standard to v8.11.0
  • 526dfad - Update dependency slevomat/coding-standard to v8.10.0
  • f9e262c - Update build-cs
  • 44afabd - Update dependency slevomat/coding-standard to v8.9.0
  • 55207f6 - Update PHPCS
  • 3d25550 - Update metcalfc/changelog-generator action to v4.1.0
  • 23b9093 - Update github-actions to v4
1.1.1
  • 6aa86bd - Do not use instanceof *Type
  • 204dea9 - Require PHPStan 1.10
  • 48995fe - Update release-toot.yml
  • a9e3194 - Create release-toot.yml
  • eeccd5d - Update build.yml
  • 8fdc868 - Create tag workflow
  • 100b4de - Update dependency slevomat/coding-standard to v7.2.1
1.1.0
  • 245b17c - Support shouldHaveReceive and shouldNotHaveReceived
  • f0cf73b - Update dependency slevomat/coding-standard to v7.2.0
  • ea430d2 - Update dependency slevomat/coding-standard to v7.1
  • 6e27f50 - Drop alias
  • 06d644a - Update workflow
  • 40b83f1 - Drop PHP 7.1 support, require PHPStan 1.5.0
  • 0e9fbbe - Update dependency slevomat/coding-standard to v7.0.20
  • 5fa0997 - Update dependency slevomat/coding-standard to v7.0.19
  • 90e5d80 - Update actions/checkout action to v3
  • d61a07e - Update dependency slevomat/coding-standard to v7
  • 54b6d67 - Update renovate.json
  • bf95066 - Update lock-closed-issues.yml
  • 9205665 - Update github-actions
  • c651cb9 - Update metcalfc/changelog-generator action to v1.0.1
  • 16d21a2 - Rename renovate.json to .github/renovate.json
  • 6fb128c - Delete dependabot.yml
  • f4b4e59 - Update renovate.json
  • 958c61b - Add renovate.json
  • 5808cb4 - Update phpunit.xml
  • e2f49ee - Update release.yml
  • 3da6662 - Tweet release action
  • 0868b75 - Allow Composer plugins
  • 9bd00f9 - Do not isolate
  • 4e12ccf - Composer > Remove --no-suggest
  • d35ff57 - Test on PHP 8.1
1.0.0
  • 839abd6 - Open 1.0-dev
  • cbe261e - Constrain lowest PHPParser to 4.13.0
  • 1767581 - Improve compatibility with nikic/php-parser 4.13.0
0.12.14
  • 00289cb - Bump metcalfc/changelog-generator from v0.4.4 to v1.0.0
  • 99974aa - Lock closed issues
  • 3182946 - Drop Phing for Makefile
  • e0e52bf - chore: Use the latest PHPUnit wherever possible, use PHP 8.0 for PHPCS
  • 2b4acc6 - fix(ci): downgrade mockery when downgrading phpunit because of conflicts
  • 7cc74bf - Fix BC promise bug
0.12.13
  • a45fee4 - Allow toggling union to intersection type conversion
0.12.12
0.12.11
  • a3a1b7e - Update CS
  • 6e8917e - Fix type hint of $methodNames argument in MockInterface.stub
0.12.10
0.12.9
0.12.8
0.11.3
  • Support for makePartial() (8f3f0dc0bbc8c413224459a25f89a2cef5924871), #7
  • Fix compatibility with newer version of Mockery that typehints the LegacyMockInterface (eb3cc15c70d381371d914d3a951b64ddba368a52)
0.11.2

Support complex mock syntax:

  • alias:
  • overload:
  • Multiple interface names
  • Constructor arguments
  • Method declaration

Thanks to @bbatsche for this! (#6)

0.11.1
0.10.2

Fixed Call to an undefined method Mockery\CompositeExpectation::... #2, thanks @simPod!

0.10.1

Support for expects() method (#1) - thanks @msvrtan 😊

0.10

Initial release

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