Releases: bovigo/callmap
Releases · bovigo/callmap
5.0.0 - Another handful
HEADS UP
- raised minimum required PHP version to 7.2.0
- removed
bovigo\callmap\ClassProxy::mapCalls()andbovigo\callmap\FunctionProxy::mapCall(), deprecated since 3.2.0
Other changes
- lots of code cleanups
4.0.1 - I now declare this bug as void
- fixed invalid handling of methods and functions with return type declared as
void
4.0.0 - Forward ever, backward never
BC breaks
- raised minimum required PHP version to 7.1.0
- ensured compatibility with PHPUnit 6.x
3.2.0 - Returns is the new map calls
HEADS UP
- added
bovigo\callmap\ClassProxy::returns(),bovigo\callmap\ClassProxy::mapCalls()is now an alias for this and should be considered deprecated - added
bovigo\callmap\FunctionProxy::returns(),bovigo\callmap\FunctionProxy::mapCall()is now an alias for this and should be considered deprecated
Other changes
* added `bovigo\callmap\FunctionProxy::throws()`
3.1.1 - Lofty style
- removed usage of
call_user_func_array(), instead call functions and methods directly - added shortcut to prevent iterating over implemented interfaces and parent classes when no return type for a method can be detected
- minor doc comment fixes
3.1.0 - Function injection
- introduced possibility to mock functions as callable, see Mocking injected functions
bovigo\callmap\throws()now accepts all instances of\Throwable, not just\Exception
3.0.3 - Lost in the silverbox
- fixed bug that optional string arguments with default values where generated wrong in callmap proxy
3.0.2 - Consciousness of self
- fixed bug that return type hint
selfwas not used correctly and lead to a fatal error when creating callmap instances of interfaces or classes using such a return type hint
3.0.1 - Follow the split
- switch recommendation from xp-framework/core to xp-framework/unittest
3.0.0 - Hint, hint!
BC breaks
- raised minimum required PHP version to 7.0.0
- introduced scalar type hints and strict type checking
bovigo\callmap\NewInstance::of()andbovigo\callmap\NewInstance::stub()now throw abovigo\callmap\ProxyCreationFailureinstead of\ReflectionExceptionwhen creation of proxy fails
Other changes
- added support for scalar type hints