Skip to content

Releases: bovigo/callmap

8.0.6 - Fixing this is not optional

17 Jan 13:58
v8.0.6
e5e3a69
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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

7.0.0 - Nine ten eleven Going back to seven

25 Dec 15:17
v7.0.0
3d381d5
Compare
Choose a tag to compare
  • Raised minimum required PHP version to 8.0
  • Added support for intersection types
  • Added support for combined union and intersection types

6.2.1 - Fix deprecation issue php8

20 Dec 14:41
v6.2.1
5fe2246
Compare
Choose a tag to compare

This release patches the usage of the deprecated \ReflectionParam::getClass

6.2.0 - Strong unions

15 Nov 16:55
v6.2.0
ce6352f
Compare
Choose a tag to compare
  • Ensured compatibility with PHP 8 (#14)
    • Added support for union types
    • Added support for mixed type hint
    • Added support for static return type hint
  • Ensured compatibility with PHPUnit 9.2 and later