Skip to content

Releases: bovigo/callmap

9.1.0 - An exception for Exceptions

07 Dec 20:04
v9.1.0
5d49736

Choose a tag to compare

  • implemented #120 Allow methods returning void or never to be mocked to throw an Exception

9.0.0 - Major doesn't mean new feature

29 Nov 16:58
v9.0.0
4b64441

Choose a tag to compare

  • Removed support for argument verification with xp-framework/unittest, library was discontinued in 2023
  • Postponed removal of support for methods and functions without a return type declaration to 10.0.0, is still supported with 9.0.0
  • Ensured compatibility with phpunit/phpunit 12.4 while keeping compatibility with the predecessor version 11.5

8.1.0 - Unevenly distributed future

01 Jan 08:49
v8.1.0
8c4c7a2

Choose a tag to compare

  • Raised minimum required PHP version to 8.3.0
  • Deprecated support for argument verification with xp-framework/unittest, will be removed with 9.0.0, library was discontinued in 2023

8.0.6 - Fixing this is not optional

17 Jan 13:58
v8.0.6
e5e3a69

Choose a tag to compare

  • Fixed optional nullable parameters with another case

8.0.5 - Let's keep this internal

14 Jan 19:52
v8.0.5
13aad01

Choose a tag to compare

  • Restrict deprecated support for methods and functions without a return type to user-defined methods and functions
  • Added #[\ReturnTypeWillChange] to generated proxy methods if a PHP-internal class is mocked to prevent deprecation notices, as their return types available via reflection are not always up to date, e.g. for \XSLTProcessor where reflection delivers no return type information for the single methods of this class

8.0.4 - Sounds like an insult

14 Jan 18:21
v8.0.4
b1006b0

Choose a tag to compare

  • Fixed bug with non-optional nullable parameters

8.0.3 - Good bye to the deprecated

31 Dec 20:48
v8.0.3
fb0b5fb

Choose a tag to compare

  • Prevent deprecation notice when calling get_parent_class() in generated proxy
  • Replace deprecated call of is_callable(['parent', $someMethod])

8.0.2 - Could you please stay callable?

26 Dec 15:13
v8.0.2
647cc02

Choose a tag to compare

  • Added proper return type hints to bovigo\callmap\FunctionProxy::returns() and bovigo\callmap\FunctionProxy::throws() so the instance is further recognized as a callable.

8.0.1 - Reflect your return type

25 Dec 18:56
v8.0.1
a7d20e7

Choose a tag to compare

  • Provide more details about mocked method/function in deprecation notice when method or function doesn't have a return type declaration.
  • Improve support for mocking \IteratorAggregate by providing specific return type
    information, as reflection doesn't provide a return type for \IteratorAggregate::getIterator().

8.0.0 - Sunrise after eight

25 Dec 09:46
v8.0.0
b87e0e2

Choose a tag to compare

HEADS UP

  • Raised minimum required PHP version to 8.2
  • Deprecated support for methods and functions without a return type declaration, will be removed with 9.0.0. In case no sensible return type can be specified a "mixed" return type continues to be supported. Starting with 9.0.0, providing a callmap to returns() containing methods that don't have a return type declaration will result in an InvalidArgumentException.

Other changes

  • Added support for return type never