Skip to content

Releases: bovigo/callmap

3.2.0 - Returns is the new map calls

20 Sep 16:43
Compare
Choose a tag to compare

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

29 Jul 15:29
Compare
Choose a tag to compare
  • 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

28 Jul 14:12
Compare
Choose a tag to compare
  • 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

21 Jul 20:58
Compare
Choose a tag to compare
  • fixed bug that optional string arguments with default values where generated wrong in callmap proxy

3.0.2 - Consciousness of self

21 Jul 14:47
Compare
Choose a tag to compare
  • 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

11 Jul 11:17
Compare
Choose a tag to compare
  • switch recommendation from xp-framework/core to xp-framework/unittest

3.0.0 - Hint, hint!

10 Jul 14:20
Compare
Choose a tag to compare

BC breaks

  • raised minimum required PHP version to 7.0.0
  • introduced scalar type hints and strict type checking
  • bovigo\callmap\NewInstance::of() and bovigo\callmap\NewInstance::stub() now throw a bovigo\callmap\ProxyCreationFailure instead of \ReflectionException when creation of proxy fails

Other changes

  • added support for scalar type hints

2.1.0 - Variadic is unlimited

20 Jun 18:39
Compare
Choose a tag to compare
  • added support for variadic arguments, fixes #9

2.0.1 - The key to null

30 Dec 09:51
Compare
Choose a tag to compare
  • fixed bug that mapping a return value to null called original method instead of returning null

2.0.0 - Return of the Typehints

29 Dec 13:22
Compare
Choose a tag to compare

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.