Skip to content

Releases: bovigo/callmap

5.0.0 - Another handful

08 Apr 12:36
0dbf2c2

Choose a tag to compare

HEADS UP

  • raised minimum required PHP version to 7.2.0
  • removed bovigo\callmap\ClassProxy::mapCalls() and bovigo\callmap\FunctionProxy::mapCall(), deprecated since 3.2.0

Other changes

  • lots of code cleanups

4.0.1 - I now declare this bug as void

11 Feb 15:37
67b131a

Choose a tag to compare

  • fixed invalid handling of methods and functions with return type declared as void

4.0.0 - Forward ever, backward never

20 Sep 16:44
fc354de

Choose a tag to compare

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

20 Sep 16:43

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

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

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

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

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

Choose a tag to compare

  • switch recommendation from xp-framework/core to xp-framework/unittest

3.0.0 - Hint, hint!

10 Jul 14:20

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