Skip to content

Releases: phpspec/prophecy

1.7.6

18 Apr 13:58
33a7e3c
Compare
Choose a tag to compare

1.7.5

19 Feb 10:20
dfd6be4
Compare
Choose a tag to compare
  • Support for object return type hints (thanks @greg0ire)

1.7.4

11 Feb 18:58
9f901e2
Compare
Choose a tag to compare

1.7.3

24 Nov 16:03
e4ed002
Compare
Choose a tag to compare
  • Fix SplInfo ClassPatch to work with Symfony 4 (Thanks @gnugat)

1.7.2

05 Sep 15:35
c9b8c60
Compare
Choose a tag to compare
  • Reverted "check method predictions only once" due to it breaking Spies

1.7.1

03 Sep 09:40
15ea9ac
Compare
Choose a tag to compare
  • Allow PHP5 keywords methods generation on PHP7 (thanks @bycosta)
  • Allow reflection-docblock v4 (thanks @GrahamCampbell)
  • Check method predictions only once (thanks @dontub)
  • Escape file path sent to \SplFileObjectConstructor when running on Windows (thanks @danmartin-epiphany)

1.7.0

02 Mar 20:06
Compare
Choose a tag to compare

1.6.2

21 Nov 14:59
Compare
Choose a tag to compare
  • Added support for detecting @method on interfaces that the class itself implements, or when the stubbed class is an interface itself (thanks @Seldaek)
  • Added support for sebastian/recursion-context 2 (thanks @sebastianbergmann)
  • Added testing on PHP 7.1 on Travis (thanks @danizord)
  • Fixed the usage of the phpunit comparator (thanks @Anyqax)

v1.6.1

07 Jun 08:16
Compare
Choose a tag to compare
  • Ignored empty method names in invalid @method phpdoc
  • Fixed the mocking of SplFileObject
  • Added compatibility with phpdocumentor/reflection-docblock 3

v1.6.0

15 Feb 07:46
Compare
Choose a tag to compare
  • Add Variadics support (thanks @pamil)
  • Add ProphecyComparator for comparing objects that need revealing (thanks @jon-acker)
  • Add ApproximateValueToken (thanks @dantleech)
  • Add support for 'self' and 'parent' return type (thanks @bendavies)
  • Add __invoke to allowed reflectable methods list (thanks @ftrrtf)
  • Updated ExportUtil to reflect the latest changes by Sebastian (thanks @jakari)
  • Specify the required php version for composer (thanks @jakzal)
  • Exclude 'args' in the generated backtrace (thanks @oradwell)
  • Fix code generation for scalar parameters (thanks @trowski)
  • Fix missing sprintf in InvalidArgumentException __construct call (thanks @emmanuelballery)
  • Fix phpdoc for magic methods (thanks @Tobion)
  • Fix PhpDoc for interfaces usage (thanks @ImmRanneft)
  • Prevent final methods from being manually extended (thanks @kamioftea)
  • Enhance exception for invalid argument to ThrowPromise (thanks @Tobion)