Releases: bovigo/callmap
Releases · bovigo/callmap
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
self
was 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\ProxyCreationFailure
instead of\ReflectionException
when creation of proxy fails
Other changes
- added support for scalar type hints
2.1.0 - Variadic is unlimited
- added support for variadic arguments, fixes #9
2.0.1 - The key to null
- fixed bug that mapping a return value to
null
called original method instead of returningnull
2.0.0 - Return of the Typehints
Changes:
- raised minimum required PHP version to 5.6.0
- added support for PHP 7 return type hints
- added support for argument verification with bovigo/assert
bovigo\callmap\Verification
is now automatically blacklisted in PHPUnit and will not appear in PHPUnit error stacks any more
Upgrade notice:
This release doesn't contain any breaking changes from an API perspective, so it should work by simply upgrading the required version in your composer.son
file. The reason this release bumps the major version is the removal of support for PHP 5.4 and 5.5.