Releases: bovigo/callmap
Releases · bovigo/callmap
7.0.0 - Nine ten eleven Going back to seven
- Raised minimum required PHP version to 8.0
- Added support for intersection types
- Added support for combined union and intersection types
6.2.1 - Fix deprecation issue php8
This release patches the usage of the deprecated \ReflectionParam::getClass
6.2.0 - Strong unions
- Ensured compatibility with PHP 8 (#14)
- Added support for union types
- Added support for mixed type hint
- Added support for static return type hint
- Ensured compatibility with PHPUnit 9.2 and later
6.1.0 - You can count on my assertion
- Verifications (
verify()->wasCalled*(),verify()->receivedNothing()) now increase assertion counter of PHPUnit
6.0.0 - There's always another one
HEADS UP
- raised minimum required PHP version to 7.3.0
Other changes
- fixed handling of return values from PHPUnit constraints in argument verification
5.2.1 - Don't forget that one
- changed return type hint of
NewCallable::of()andNewCallable::stub()tocallable&\bovigo\callmap\FunctionProxy
5.2.0 - Nice intersection
- added phpstan annotations so instances created with
bovigo\callmap\NewInstance::of()andbovigo\callmap\NewInstance::stub()have the proper intersection type
5.1.0 - Stub not all the things
- added
bovigo\callmap\ClassProxy::stub(string ...$methods)to allow stubbing of methods
on a proxy instance that otherwise forwards method calls to the original class - fixed bug that optional return type hints with builtin types aren't optional any more in mock instances
5.0.2 - Oh no, it's not optional
- fixed bug that optional return type hints aren't optional any more in mock instances
5.0.1 - Seven four, gimme more
- prevent deprecation notice in PHP 7.4 by using proper methods