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

jangregor/phpstan-prophecy

PHPStan extension for phpspec/prophecy that improves type inference in tests. It teaches PHPStan the real types returned from Prophecy workflows like prophesize(), willExtend(), and reveal(), so your revealed doubles are understood as the mocked class.

View on GitHub
Deep Wiki
Context7
2.3.0

What's Changed

Full Changelog: https://github.com/Jan0707/phpstan-prophecy/compare/2.2.0...2.3.0

2.2.0

What's Changed

Full Changelog: https://github.com/Jan0707/phpstan-prophecy/compare/2.1.1...2.2.0

2.1.1

What's Changed

Recommend update phpstan and all its extension via:

composer update "*phpstan*"

Full Changelog: https://github.com/Jan0707/phpstan-prophecy/compare/2.1.0...2.1.1

2.1.0

What's Changed

Recommend update phpstan and all its extension via:

composer update "*phpstan*"

PHPStan 2.1.5 required to work correctly.

Full Changelog: https://github.com/Jan0707/phpstan-prophecy/compare/2.0.0...2.1.0

2.0.0

What's Changed

New Contributors

Full Changelog: https://github.com/Jan0707/phpstan-prophecy/compare/1.0.2...2.0.0

1.0.1

This tag should fix problems

What's Changed (autogenerated)

New Contributors

Full Changelog: https://github.com/Jan0707/phpstan-prophecy/compare/1.0.0...1.1.0

1.0.0
  • Enhancement: Synchronize with ergebnis/php-library-template (#239), by @localheinz
  • github-actions(deps): bump actions/checkout from v2.3.3 to v2.3.4 (#240), by @dependabot[bot]
  • github-actions(deps): bump ibiqlik/action-yamllint from v2.0.0 to v3 (#242), by @dependabot[bot]
  • github-actions(deps): bump actions/cache from v2.1.2 to v2.1.3 (#241), by @dependabot[bot]
  • github-actions(deps): bump actions/github-script from v3.0.0 to v3.1 (#243), by @dependabot[bot]
  • github-actions(deps): bump shivammathur/setup-php from 2.7.0 to 2.8.0 (#244), by @dependabot[bot]
  • github-actions(deps): bump shivammathur/setup-php from 2.8.0 to 2.9.0 (#245), by @dependabot[bot]
  • github-actions(deps): bump actions/cache from v2.1.3 to v2.1.4 (#246), by @dependabot[bot]
  • github-actions(deps): bump shivammathur/setup-php from 2.9.0 to 2.10.0 (#247), by @dependabot[bot]
  • Fix: Adjust usage of octokit (#268), by @localheinz
  • Fix: Avoid use of acronyms (#269), by @localheinz
  • github-actions(deps): bump actions/github-script from 3.1 to 5 (#262), by @dependabot[bot]
  • Enhancement: Restore auto-merge of dependabot pull requests (#270), by @localheinz
  • Fix: Add badges (#271), by @localheinz
  • github-actions(deps): bump ibiqlik/action-yamllint from 3 to 3.0.1 (#255), by @dependabot[bot]
  • Fix: Split condition (#272), by @localheinz
  • Fix: Path to baselines (#273), by @localheinz
  • Fix: Reference (#274), by @localheinz
  • github-actions(deps): bump actions/cache from 2.1.4 to 2.1.6 (#256), by @dependabot[bot]
  • github-actions(deps): bump shivammathur/setup-php from 2.10.0 to 2.15.0 (#263), by @dependabot[bot]
  • github-actions(deps): bump actions/checkout from 2.3.4 to 2.4.0 (#267), by @dependabot[bot]
  • Add support for phpstan 1.0 (#266), by @alexander-schranz
0.8.1
  • Fix: Reference (#183), by @localheinz
  • Enhancement: Use dependabot (#111), by @localheinz
  • Enhancement: Automatically merge pull requests created by Dependabot (#187), by @localheinz
  • Build(deps-dev): Bump ergebnis/php-cs-fixer-config from 1.1.3 to 2.1.2 (#186), by @dependabot[bot]
  • Build(deps): Bump actions/cache from v1 to v2 (#185), by @dependabot[bot]
  • Build(deps-dev): Bump ergebnis/php-cs-fixer-config from 2.1.2 to 2.2.0 (#193), by @dependabot[bot]
  • Build(deps-dev): Bump ergebnis/php-cs-fixer-config from 2.2.0 to 2.2.1 (#196), by @dependabot[bot]
  • Build(deps): Bump actions/checkout from v2 to v2.3.0 (#190), by @dependabot[bot]
  • Build(deps-dev): Bump ergebnis/composer-normalize from 2.5.1 to 2.6.0 (#200), by @dependabot[bot]
  • Build(deps-dev): Bump ergebnis/composer-normalize from 2.6.0 to 2.6.1 (#202), by @dependabot[bot]
  • Build(deps-dev): Bump ergebnis/composer-normalize from 2.6.1 to 2.7.0 (#211), by @dependabot[bot]
  • Build(deps-dev): Bump ergebnis/composer-normalize from 2.7.0 to 2.7.1 (#213), by @dependabot[bot]
  • Build(deps-dev): Bump ergebnis/composer-normalize from 2.7.1 to 2.8.0 (#219), by @dependabot[bot]
  • Update phpstan/phpstan from 0.12.25 to 0.12.51 (#231), by @violinist-bot
  • Build(deps): Bump actions/github-script from v2 to v3 (#215), by @dependabot[bot]
  • Build(deps): Bump actions/checkout from v2.3.0 to v2.3.3 (#222), by @dependabot[bot]
  • Enhancement: Synchronize with ergebnis/php-library-template (#232), by @localheinz
  • Fix: Close pull requests opened by @violinist-bot (#233), by @localheinz
  • Fix: Use appropriate secret (#234), by @localheinz
  • Fix: Use pull_request_target (#235), by @localheinz
  • Enhancement: Allow installation with PHP 8.0 (#236), by @localheinz
0.8.0
  • Update phpstan/phpstan from 0.12.23 to 0.12.24 (#180), by @violinist-bot
  • Update phpstan/phpstan from 0.12.24 to 0.12.25 (#181), by @violinist-bot
  • Fix: Remove symbolic link (#182), by @localheinz
0.7.0
  • Update ergebnis/composer-normalize from 2.2.3 to 2.2.4 (#125), by @violinist-bot
  • Fix: Move classes used in static analysis into different namespaces (#126), by @localheinz
  • Enhancement: Use Makefile instead of composer scripts (#127), by @localheinz
  • Fix: Configure indentation for Makefile (#129), by @localheinz
  • Fix: Reference GitHub Actions instead of Travis CI (#128), by @localheinz
  • Fix: Explicitly list ignored files and directories (#130), by @localheinz
  • Fix: Rename directory containing Dockerfile (#131), by @localheinz
  • Fix: Use singular (#134), by @localheinz
  • Fix: Docker (#135), by @localheinz
  • Fix: Split test cases used in static code analysis (#133), by @localheinz
  • Enhancement: Synchronize with ergebnis/php-library-template (#136), by @localheinz
  • Fix: Type should be resolved without DocBlock (#137), by @localheinz
  • Enhancement: Add tests where willImplement() is used in setUp() (#138), by @localheinz
  • Enhancement: Add test where willExtend() is used in setUp() (#139), by @localheinz
  • Enhancement: Move extension.neon to root of project (#140), by @localheinz
  • Fix: Keep services sorted by name (#141), by @localheinz
  • Enhancement: Use .build directory for temporary files (#142), by @localheinz
  • Enhancement: Move tests into ObjectProphecy namespace (#143), by @localheinz
  • Fix: Mark all classes as internal (#144), by @localheinz
  • Fix: Import parent namespace only (#145), by @localheinz
  • Fix: README.md (#132), by @localheinz
  • Fix: README.md (#146), by @localheinz
  • Fix: Rename test methods (#148), by @localheinz
  • Enhancement: Add tests where prophesize(), willExtend(), and willImplement() are used in helper methods (#147), by @localheinz
  • Fix: Singular (#150), by @localheinz
  • Enhancement: Add FUNDING.yml (#151), by @localheinz
  • Enhancement: Use baseline feature to run phpstan with and without extension (#149), by @localheinz
  • Fix: Keep items sorted (#152), by @localheinz
  • Fix: Move and rename classes (#153), by @localheinz
  • Update phpstan/phpstan from 0.12.11 to 0.12.14 (#156), by @violinist-bot
  • Update phpspec/prophecy from v1.10.2 to v1.10.3 (#157), by @violinist-bot
  • Update ergebnis/composer-normalize from 2.2.4 to 2.3.0 (#158), by @violinist-bot
  • Update phpstan/phpstan from 0.12.14 to 0.12.18 (#160), by @violinist-bot
  • Update ergebnis/composer-normalize from 2.3.0 to 2.3.2 (#159), by @violinist-bot
  • Update ergebnis/composer-normalize from 2.3.2 to 2.4.0 (#164), by @violinist-bot
  • Update phpstan/phpstan from 0.12.18 to 0.12.19 (#163), by @violinist-bot
  • Update ergebnis/composer-normalize from 2.4.0 to 2.5.1 (#166), by @violinist-bot
  • Update phpstan/phpstan from 0.12.19 to 0.12.23 (#167), by @violinist-bot
  • Fix: Rename workflow (#169), by @localheinz
  • Enhancement: Require ergebnis/license:^1.0.0 (#170), by @localheinz
  • Fix: Specify patch version as well (#171), by @localheinz
  • Enhancement: Run builds with different versions of phpunit/phpunit (#172), by @localheinz
  • Fix: Run static analysis with locked dependencies (#173), by @localheinz
  • Enhancement: Run build with phpunit/phpunit:^8.0.0 (#174), by @localheinz
  • Fix: Include phpunit/phpunit version in cache key (#175), by @localheinz
  • Fix: Remove deprecated --no-suggest option (#176), by @localheinz
  • Enhancement: Run build with phpunit/phpunit:^9.0.0 (#177), by @localheinz
  • Fix: Add missing semicolon (#178), by @localheinz
  • Use generics (#165), by @Jean85
0.6.2
  • Update ergebnis/composer-normalize from 2.2.2 to 2.2.3 (#122), by @violinist-bot
  • Update phpstan/phpstan from 0.12.9 to 0.12.10 (#120), by @violinist-bot
  • Update phpstan/phpstan from 0.12.10 to 0.12.11 (#123), by @violinist-bot
  • Fix: Allow installation with phpunit/phpunit:^9 (#124), by @localheinz
0.6.1
  • Enhancement: Move indirect tests into separate namespace (#95), by @localheinz
  • Update ergebnis/composer-normalize from 2.1.1 to 2.2.0 (#96), by @violinist-bot
  • Enhancement: Enable strict_types fixer (#97), by @localheinz
  • Update ergebnis/php-cs-fixer-config from 1.1.2 to 1.1.3 (#98), by @violinist-bot
  • Enhancement: Add file-level header (#99), by @localheinz
  • Update phpunit/phpunit from 7.5.18 to 7.5.19 (#101), by @violinist-bot
  • Update phpunit/phpunit from 7.5.19 to 7.5.20 (#102), by @violinist-bot
  • Update ergebnis/composer-normalize from 2.2.0 to 2.2.1 (#103), by @violinist-bot
  • Fix: Remove parameters (#104), by @localheinz
  • Update ergebnis/composer-normalize from 2.2.1 to 2.2.2 (#106), by @violinist-bot
  • Update phpstan/phpstan from 0.12.4 to 0.12.6 (#105), by @violinist-bot
  • Update phpspec/prophecy from 1.10.1 to v1.10.2 (#107), by @violinist-bot
  • Update phpstan/phpstan from 0.12.6 to 0.12.7 (#108), by @violinist-bot
  • Update phpstan/phpstan from 0.12.7 to 0.12.8 (#109), by @violinist-bot
  • Update phpstan/phpstan from 0.12.8 to 0.12.9 (#110), by @violinist-bot
  • Fix: Add missing test (#113), by @localheinz
  • Enhancement: Update shivammathur/setup-php (#114), by @localheinz
  • Enhancement: Extract environment variable (#115), by @localheinz
  • Enhancement: Use ergebnis/license (#116), by @localheinz
  • Fix: Do not import every single class (#117), by @localheinz
  • Fix: Mark classes as final (#118), by @localheinz
  • Fix: Method invocations on methods of ObjectProphecy might have side effects (#119), by @localheinz
0.6.0
  • Enhancement: Add packagist badge (#81), by @localheinz
  • Update phpstan/phpstan from 0.12.2 to 0.12.3 (#82), by @violinist-bot
  • Update phpspec/prophecy from 1.9.0 to 1.10.0 (#83), by @violinist-bot
  • Update phpspec/prophecy from 1.10.0 to 1.10.1 (#85), by @violinist-bot
  • Enhancement: Use ergebnis/composer-normalize instead of localheinz/composer-normalize (#86), by @localheinz
  • Fix: Consistently quote strings in Yaml files (#87), by @localheinz
  • Enhancement: Use ergebnis/php-cs-fixer-config (#88), by @localheinz
  • Enhancement: Infer private property type from constructor (#89), by @localheinz
  • Fix: Remove useless DocBlocks (#90), by @localheinz
  • Fix: Namespace (#91), by @localheinz
  • Enhancement: Add support for willImplement() (#92), by @localheinz
  • Enhancement: Slightly clean up code (#93), by @localheinz
  • Enhancement: Add support for willExtend() (#94), by @localheinz
0.5.1
  • Enhancement: Configure level and paths via phpstan.neon (#73), by @localheinz
  • Fix: Remove unused test bootstrap file (#74), by @localheinz
  • Fix: Configuration for phpunit (#75), by @localheinz
  • Fix: Inline variable (#76), by @localheinz
  • Fix: Case (#77), by @localheinz
  • Fix: Cache key (#78), by @localheinz
  • Fix: Require at least phpstan/phpstan:^0.12.0 (#79), by @localheinz
  • Enhancement: Show version of phpstan/phpstan before running it (#80), by @localheinz
0.5.0
  • Update phpunit/phpunit from 7.2.6 to 7.5.14 (#55), by @violinist-bot
  • Enhancement: Allow installation with phpstan/phpstan:~0.12.2 (#67), by @localheinz
  • Enhancement: Switch to using GitHub actions (#68), by @localheinz
  • Fix: Reference (#70), by @localheinz
  • Update phpunit/phpunit from 7.5.16 to 7.5.18 (#65), by @violinist-bot
  • Update phpspec/prophecy from 1.8.1 to 1.9.0 (#63), by @violinist-bot
  • Enhancement: Run builds on PHP 7.4 (#71), by @localheinz
  • Enhancement: Add changelog (#72), by @localheinz
0.4.2

Thanks to @Taluu this package is now available to install as "phpstan-extension"

0.4.1

Changes:

  • Added support for PHP 7.3
  • Allow using attributes
  • Added contribution guidelines
  • Improved CI

Thanks to: @localheinz @ondrejmirtes @lcobucci

Proudly supported by LILLYDOO, Germany. Looking for a cool place to work with modern PHP? Join LILLYDOO at https://stackoverflow.com/jobs/companies/lillydoo-gmbh

0.4

Changes:

  • Allows for PHP Unit : "<6.0, >=9.0"
  • Fixed Documentation error
  • Fixed restoration of ObjectProphecyType from cache

Thanks to: @ondrejmirtes @xerkus @hannsen

0.3.0

Many thanks to @localheinz & @alexander-schranz

0.2.0
  • Added support for PHPStan 0.10
  • Due to compatibility breaks, this release drops support for PHPStan < 0.10 and PHP < 7.1

All the fame and glory of this release belong to @Jean85 !

0.1.2

This release includes many improvements to the overall architecture and structure of the project. We have also added the MIT license to this project.

Huge thanks (and all the credits for this release) to @localheinz and @Jean85 for their help and comments!

0.1.1
  • Allows for PHPUnit ^6.0||^7.0 (Thanks to Alexander Miehe)
0.1

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