Releases: BapCat/Facade
5.0
Fix global namespace imports
Detecting global namespace imports relied on not finding a backslash, but this no longer works in newer version of PHP. With this patch, they are now detected with a regex.
Fix PHP Version Constraint
Allows PHP ^7.4|^8.0
PHP 7.4/8+ Support
This release officially supports PHP 7.4 and PHP 8.0+. Support for older versions is officially dropped.
PHP 7.4 Support
This is simply a patch to address a warning when running on PHP 7.4
Fix generation with "self" return types
Merge pull request #11 from BapCat/master.#10.resolve-return-self [#10] Resolve self return types
Improved Facade Generation
The facade generator will now attempt to restructure parameters and return types, and resolve @inheritdoc
annotations upwards. Rather than simply using variadic arrays and unpacking them when passing to the wrapped method, it will build facade methods with matching signatures.
Update to PHP 7.1+
This release adds official support for PHP 7.1+ and drops support for all previous versions.
[Fix] Don't pull in magic methods
We were getting fatal errors if a facade wrapped a class that had a magic method (eg. __set). This update ignores all methods that begin with __
.
Don't restrict bindings to class names
Bindings can be anything that the IoC container can instantiate