Releases: bovigo/callmap
Releases · bovigo/callmap
8.0.6 - Fixing this is not optional
8.0.5 - Let's keep this internal
- 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
- Fixed bug with non-optional nullable parameters
8.0.3 - Good bye to the deprecated
- 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?
- Added proper return type hints to
bovigo\callmap\FunctionProxy::returns()
andbovigo\callmap\FunctionProxy::throws()
so the instance is further recognized as a callable.
8.0.1 - Reflect your return type
- 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
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 anInvalidArgumentException
.
Other changes
- Added support for return type never
7.0.0 - Nine ten eleven Going back to seven
- 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
This release patches the usage of the deprecated \ReflectionParam::getClass
6.2.0 - Strong unions
- 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