jangregor/phpstan-prophecy
Provides a phpstan/phpstan extension for phpspec/prophecy
2.3.0
21M downloads/mo
#1104 most downloaded on Packagist
Jan0707/phpstan-prophecy
What this package is like to depend on
Last release 6 months ago
10 Feb 2026
Release timing varies
gaps range from 2 weeks to 2.4 years
Nearly every release is documented
notes for 24 of 24 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
24 releases · first in 2017
1 release in the last 12 months
see the full history below
Release timeline
24 releases · Dec 2017 to Feb 2026Releases
latest 24-
2.3.010 Feb 2026Release notes
Open source →What's Changed
- github-actions(deps): Bump shivammathur/setup-php from 2.33.0 to 2.34.0 by @dependabot[bot] in #387
- github-actions(deps): Bump shivammathur/setup-php from 2.34.0 to 2.34.1 by @dependabot[bot] in #388
- composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.46.0 to 6.50.0 by @dependabot[bot] in #390
- github-actions(deps): Bump shivammathur/setup-php from 2.34.1 to 2.35.1 by @dependabot[bot] in #391
- github-actions(deps): Bump shivammathur/setup-php from 2.35.1 to 2.35.2 by @dependabot[bot] in #392
- composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.50.0 to 6.51.0 by @dependabot[bot] in #393
- github-actions(deps): Bump shivammathur/setup-php from 2.35.2 to 2.35.3 by @dependabot[bot] in #394
- github-actions(deps): Bump actions/checkout from 4 to 5 by @dependabot[bot] in #395
- composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.51.0 to 6.52.0 by @dependabot[bot] in #396
- composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.52.0 to 6.53.0 by @dependabot[bot] in #397
- github-actions(deps): Bump shivammathur/setup-php from 2.35.3 to 2.35.4 by @dependabot[bot] in #398
- composer(deps-dev): Bump ergebnis/license from 2.6.0 to 2.7.0 by @dependabot[bot] in #399
- composer(deps-dev): Bump ergebnis/composer-normalize from 2.47.0 to 2.48.1 by @dependabot[bot] in #400
- composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.53.0 to 6.54.0 by @dependabot[bot] in #401
- github-actions(deps): Bump actions/github-script from 7 to 8 by @dependabot[bot] in #402
- composer(deps-dev): bump ergebnis/composer-normalize from 2.48.1 to 2.48.2 by @dependabot[bot] in #403
- github-actions(deps): Bump shivammathur/setup-php from 2.35.4 to 2.35.5 by @dependabot[bot] in #404
- composer(deps-dev): bump ergebnis/php-cs-fixer-config from 6.54.0 to 6.55.0 by @dependabot[bot] in #405
- composer(deps-dev): bump ergebnis/php-cs-fixer-config from 6.55.0 to 6.56.0 by @dependabot[bot] in #406
- composer(deps-dev): bump ergebnis/php-cs-fixer-config from 6.56.0 to 6.56.1 by @dependabot[bot] in #407
- github-actions(deps): bump actions/checkout from 5 to 6 by @dependabot[bot] in #408
- github-actions(deps): bump shivammathur/setup-php from 2.35.5 to 2.36.0 by @dependabot[bot] in #409
- composer(deps-dev): bump ergebnis/php-cs-fixer-config from 6.56.1 to 6.57.0 by @dependabot[bot] in #410
- composer(deps-dev): bump ergebnis/php-cs-fixer-config from 6.57.0 to 6.57.1 by @dependabot[bot] in #411
- github-actions(deps): bump actions/cache from 4 to 5 by @dependabot[bot] in #412
- composer(deps-dev): bump ergebnis/php-cs-fixer-config from 6.57.1 to 6.58.0 by @dependabot[bot] in #413
- composer(deps-dev): bump ergebnis/php-cs-fixer-config from 6.58.0 to 6.58.1 by @dependabot[bot] in #414
- composer(deps-dev): bump ergebnis/php-cs-fixer-config from 6.58.1 to 6.58.2 by @dependabot[bot] in #415
- composer(deps-dev): bump ergebnis/composer-normalize from 2.48.2 to 2.49.0 by @dependabot[bot] in #416
- composer(deps-dev): bump ergebnis/php-cs-fixer-config from 6.58.2 to 6.59.0 by @dependabot[bot] in #417
- composer(deps-dev): bump symfony/process from 5.4.47 to 5.4.51 by @dependabot[bot] in #418
- composer(deps-dev): bump ergebnis/composer-normalize from 2.49.0 to 2.50.0 by @dependabot[bot] in #420
- Allow usage with PHPUnit 13 🎉 by @alexander-schranz in #419
Full Changelog: 2.2.0...2.3.0
-
2.2.022 May 2025Release notes
Open source →What's Changed
- Allow PHPUnit 12 🎉 by @Jean85 in #364
- composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.42.3 to 6.43.0 by @dependabot in #377
- composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.43.0 to 6.44.0 by @dependabot in #378
- composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.44.0 to 6.44.1 by @dependabot in #379
- composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.44.1 to 6.45.0 by @dependabot in #380
- composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 6.45.0 to 6.46.0 by @dependabot in #382
- composer(deps-dev): Bump ergebnis/composer-normalize from 2.45.0 to 2.46.0 by @dependabot in #383
- github-actions(deps): Bump shivammathur/setup-php from 2.32.0 to 2.33.0 by @dependabot in #384
- composer(deps-dev): Bump ergebnis/composer-normalize from 2.46.0 to 2.47.0 by @dependabot in #385
- Revert "Workaround to include phpspec/prophecy-phpunit#67" by @Jean85 in #386
Full Changelog: 2.1.1...2.2.0
-
2.1.113 Feb 2025Release notes
Open source →What's Changed
- Set correct requires phpstan version to 2-1-5 by @alexander-schranz in #376 (Thx @ondrejmirtes)
Recommend update phpstan and all its extension via:
composer update "*phpstan*"Full Changelog: 2.1.0...2.1.1
-
2.1.013 Feb 2025Release notes
Open source →What's Changed
- github-actions(deps): Bump shivammathur/setup-php from 2.31.1 to 2.32.0 by @dependabot in #358
- Update composer normalize by @alexander-schranz in #372
- Update php cs fixer to latest version by @alexander-schranz in #373
- Add more tests for willExtend and willImplement handling by @alexander-schranz in #374
- Remove not longer required extension and fix handling of willImplement and willExtend by @ondrejmirtes in #369 (Thx also to @stof)
- Fix code style issues of #374 by @alexander-schranz in #375
Recommend update phpstan and all its extension via:
composer update "*phpstan*"PHPStan 2.1.5 required to work correctly.
Full Changelog: 2.0.0...2.1.0
-
2.0.021 Nov 2024Release notes
Open source →What's Changed
- Add support for PHPStan 2 🎉 by @sasezaki, @Jean85, @stof in #348
- Increase CI matrix to test against more recent PHPUnit & PHP versions by @Jean85 in #351
- Update dev docker image for easier contributions by @alexander-schranz in #352
- minimize README code example by @sasezaki in #353
New Contributors
Full Changelog: 1.0.2...2.0.0
-
1.0.203 Apr 2024Release notes
Open source → -
1.0.101 Apr 2024Release notes
Open source →This tag should fix problems
What's Changed (autogenerated)
- Remove unnecessary
$by @RusiPapazov in #277 - github-actions(deps): bump actions/cache from 2.1.6 to 2.1.7 by @dependabot in #276
- github-actions(deps): bump actions/github-script from 5 to 6 by @dependabot in #282
- github-actions(deps): bump shivammathur/setup-php from 2.15.0 to 2.17.1 by @dependabot in #283
- github-actions(deps): bump actions/checkout from 2.4.0 to 3 by @dependabot in #284
- github-actions(deps): bump ibiqlik/action-yamllint from 3.0.1 to 3.1 by @dependabot in #275
- github-actions(deps): bump actions/cache from 2.1.7 to 3 by @dependabot in #286
- github-actions(deps): bump shivammathur/setup-php from 2.17.1 to 2.18.0 by @dependabot in #287
- github-actions(deps): bump shivammathur/setup-php from 2.18.0 to 2.18.1 by @dependabot in #288
- github-actions(deps): bump shivammathur/setup-php from 2.18.1 to 2.19.0 by @dependabot in #289
- github-actions(deps): bump shivammathur/setup-php from 2.19.0 to 2.19.1 by @dependabot in #290
- Fix: Allow
ergebnis/composer-normalizeto run ascomposerplugin by @localheinz in #293 - github-actions(deps): bump shivammathur/setup-php from 2.19.1 to 2.20.1 by @dependabot in #292
- Force PHP syntax highlight for stub files by @szepeviktor in #294
- github-actions(deps): bump shivammathur/setup-php from 2.20.1 to 2.21.0 by @dependabot in #295
- github-actions(deps): bump shivammathur/setup-php from 2.21.0 to 2.21.1 by @dependabot in #296
- github-actions(deps): bump shivammathur/setup-php from 2.21.1 to 2.21.2 by @dependabot in #297
- github-actions(deps): Bump shivammathur/setup-php from 2.21.2 to 2.22.0 by @dependabot in #299
- github-actions(deps): Bump shivammathur/setup-php from 2.22.0 to 2.23.0 by @dependabot in #300
- github-actions(deps): Bump shivammathur/setup-php from 2.23.0 to 2.24.0 by @dependabot in #301
- github-actions(deps): Bump shivammathur/setup-php from 2.24.0 to 2.25.0 by @dependabot in #302
- github-actions(deps): Bump shivammathur/setup-php from 2.25.0 to 2.25.1 by @dependabot in #303
- github-actions(deps): Bump shivammathur/setup-php from 2.25.1 to 2.25.2 by @dependabot in #304
- github-actions(deps): Bump shivammathur/setup-php from 2.25.2 to 2.25.4 by @dependabot in #305
- github-actions(deps): Bump shivammathur/setup-php from 2.25.4 to 2.25.5 by @dependabot in #306
- github-actions(deps): Bump actions/checkout from 3 to 4 by @dependabot in #307
- github-actions(deps): Bump shivammathur/setup-php from 2.25.5 to 2.26.0 by @dependabot in #308
- github-actions(deps): Bump shivammathur/setup-php from 2.26.0 to 2.27.0 by @dependabot in #311
- github-actions(deps): Bump shivammathur/setup-php from 2.27.0 to 2.27.1 by @dependabot in #312
- github-actions(deps): Bump actions/github-script from 6 to 7 by @dependabot in #313
- github-actions(deps): Bump shivammathur/setup-php from 2.27.1 to 2.28.0 by @dependabot in #314
- github-actions(deps): Bump shivammathur/setup-php from 2.28.0 to 2.29.0 by @dependabot in #318
- github-actions(deps): Bump actions/cache from 3 to 4 by @dependabot in #319
- Fix: Do not bother creating directories by @localheinz in #320
- Fix: Run tests on PHP 7.1 by @localheinz in #322
- Fix: Expand matrix for
static-code-analysisjob by @localheinz in #323 - Fix: Configure platform in
composer.jsonby @localheinz in #321 - Fix phpspec/prophecy link label by @InvisibleSmiley in #317
- github-actions(deps): Bump shivammathur/setup-php from 2.29.0 to 2.30.0 by @dependabot in #326
- Fix internal phpstan error by @jseparovic1 in #316
- Remove problematic test case by @jseparovic1 in #328
- github-actions(deps): Bump shivammathur/setup-php from 2.30.0 to 2.30.1 by @dependabot in #329
- Fix conflict version constraint by @alexander-schranz in #332
- github-actions(deps): Bump shivammathur/setup-php from 2.30.1 to 2.30.2 by @dependabot in #333
New Contributors
- @RusiPapazov made their first contribution in #277
- @szepeviktor made their first contribution in #294
- @InvisibleSmiley made their first contribution in #317
- @jseparovic1 made their first contribution in #316
Full Changelog: 1.0.0...1.1.0
- Remove unnecessary
-
1.0.008 Nov 2021Release notes
Open source →- Enhancement: Synchronize with
ergebnis/php-library-template(#239), by @localheinz - github-actions(deps): bump
actions/checkoutfromv2.3.3tov2.3.4(#240), by @dependabot[bot] - github-actions(deps): bump
ibiqlik/action-yamllintfromv2.0.0tov3(#242), by @dependabot[bot] - github-actions(deps): bump
actions/cachefromv2.1.2tov2.1.3(#241), by @dependabot[bot] - github-actions(deps): bump
actions/github-scriptfromv3.0.0tov3.1(#243), by @dependabot[bot] - github-actions(deps): bump
shivammathur/setup-phpfrom2.7.0to2.8.0(#244), by @dependabot[bot] - github-actions(deps): bump
shivammathur/setup-phpfrom2.8.0to2.9.0(#245), by @dependabot[bot] - github-actions(deps): bump
actions/cachefromv2.1.3tov2.1.4(#246), by @dependabot[bot] - github-actions(deps): bump
shivammathur/setup-phpfrom2.9.0to2.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-scriptfrom3.1to5(#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-yamllintfrom3to3.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/cachefrom2.1.4to2.1.6(#256), by @dependabot[bot] - github-actions(deps): bump
shivammathur/setup-phpfrom2.10.0to2.15.0(#263), by @dependabot[bot] - github-actions(deps): bump
actions/checkoutfrom2.3.4to2.4.0(#267), by @dependabot[bot] - Add support for phpstan
1.0(#266), by @alexander-schranz
Release notes
Open source →For a full diff see [
0.8.1...1.0.0][0.8.1...1.0.0].Changed
- Added support for
phpstan/phpstan:^1.0.0and dropped support for non-stable versions ofphpstan/phpstan([#266]), by [@alexander-schranz]
- Enhancement: Synchronize with
-
0.8.124 Oct 2020Release notes
Open source →- 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-configfrom1.1.3to2.1.2(#186), by @dependabot[bot] - Build(deps): Bump
actions/cachefrom v1 to v2 (#185), by @dependabot[bot] - Build(deps-dev): Bump
ergebnis/php-cs-fixer-configfrom2.1.2to2.2.0(#193), by @dependabot[bot] - Build(deps-dev): Bump
ergebnis/php-cs-fixer-configfrom2.2.0to2.2.1(#196), by @dependabot[bot] - Build(deps): Bump
actions/checkoutfrom v2 tov2.3.0(#190), by @dependabot[bot] - Build(deps-dev): Bump
ergebnis/composer-normalizefrom2.5.1to2.6.0(#200), by @dependabot[bot] - Build(deps-dev): Bump
ergebnis/composer-normalizefrom2.6.0to2.6.1(#202), by @dependabot[bot] - Build(deps-dev): Bump
ergebnis/composer-normalizefrom2.6.1to2.7.0(#211), by @dependabot[bot] - Build(deps-dev): Bump
ergebnis/composer-normalizefrom2.7.0to2.7.1(#213), by @dependabot[bot] - Build(deps-dev): Bump
ergebnis/composer-normalizefrom2.7.1to2.8.0(#219), by @dependabot[bot] - Update
phpstan/phpstanfrom0.12.25to0.12.51(#231), by @violinist-bot - Build(deps): Bump
actions/github-scriptfromv2tov3(#215), by @dependabot[bot] - Build(deps): Bump
actions/checkoutfromv2.3.0tov2.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
Release notes
Open source →For a full diff see [
0.8.0...0.8.1][0.8.0...0.8.1].Changed
- Allowed installation with PHP 8.0 ([#236]), by [@localheinz]
-
0.8.012 May 2020Release notes
Open source →- Update
phpstan/phpstanfrom0.12.23to0.12.24(#180), by @violinist-bot - Update
phpstan/phpstanfrom0.12.24to0.12.25(#181), by @violinist-bot - Fix: Remove symbolic link (#182), by @localheinz
Release notes
Open source →For a full diff see [
0.7.0...0.8.0][0.7.0...0.8.0].Removed
-
Removed the symbolic link from
src/extension.neontoextension.neon([#182]), by [@localheinz]When using
phpstan/extension-installer, no changes on your end are required.When not using
phpstan/extension-installer, you need to adjustphpstan.neon:includes: - - vendor/jangregor/phpstan-prophecy/src/extension.neon + - vendor/jangregor/phpstan-prophecy/extension.neon
- Update
-
0.7.008 May 2020Release notes
Open source →For a full diff see [
0.6.2...0.7.0][0.6.2...0.7.0].Changed
- Moved
src/extension.neontoextension.neon([#140]), by [@localheinz] - Marked classes as
@internal([#144]), by [@localheinz] - Moved and renamed internal classes ([#153]), by [@localheinz]
- Required
phpstan/phpstan:~0.12.6([#165]), by [@Jean85] - Simplified extension by making use of generics ([#165]), by [@Jean85] and [@ondrejmirtes]
- Moved
-
0.6.217 Feb 2020Release notes
Open source →For a full diff see [
0.6.1...0.6.2][0.6.1...0.6.2].Fixed
- Allowed installation with
phpunit/phpunit:^9([#124]), by [@localheinz]
- Allowed installation with
-
0.6.105 Feb 2020Release notes
Open source →For a full diff see [
0.6.0...0.6.1][0.6.0...0.6.1].Changed
- Marked classes as
final([#118]), by [@localheinz] - Modified return value of
ObjectPropecyMethodReflection::hasSideEffects()as invoking methods on an instance ofProphecy\Prophecy\ObjectProphecymight have side effects ([#119]), by [@localheinz]
- Marked classes as
-
0.6.027 Dec 2019Release notes
Open source →For a full diff see [
0.5.1...0.6.0][0.5.1...0.6.0].Added
- Support for
willImplement()([#92]), by [@localheinz] - Support for
willExtend()([#94]), by [@localheinz]
- Support for
-
0.5.113 Dec 2019Release notes
Open source →For a full diff see [
0.5.0...0.5.1][0.5.0...0.5.1].Changed
- Required at least
phpstan/phpstan:^0.12.0([#79]), by [@localheinz]
- Required at least
-
0.5.013 Dec 2019Release notes
Open source →For a full diff see [
0.4.2...0.5.0][0.4.2...0.5.0].Added
- Allowed installation with
phpstan/phpstan:~0.12.2([#67]), by [@localheinz] and [@PedroTroller]
- Allowed installation with
-
0.4.231 Jul 2019 -
0.4.127 May 2019 -
0.3.018 Jan 2019 -
0.2.016 Jul 2018 -
0.1.211 Jul 2018 -
0.1.114 Feb 2018 -
0.425 Apr 2019 -
0.108 Dec 2017