Releases: gocom/rah_function
Releases · gocom/rah_function
0.8.1
- PHP >= 8.0 compatibility. In PHP 8.0 or greater, the tag attributes would be passed down as named arguments to functions. This would cause fatal error in cases where the names did not match. To mitigate the issue, this release reverts back to pre-8.0 behaviour where the attributes are passed based on their order rather than argument name.
0.8.0
0.7.2
0.7.1
- Changed: Updated the Composer package to use textpattern/installer.
0.7.0
- Added:
_constant
attribute prefix. - Added:
_assign
attribute. - Released as a Composer package.
0.6.0
0.5.0
- Added: Ability to call class methods (
call="Class->Method"
andcall="Class::StaticMethod"
). - Added: Multiple functions can be called with a single tag instance (
call="func1, func2, func3"
). Output is passed by reference from function to function. First function in the list is treated as the primary and given tag attributes only apply to it. - Added: Arrays are returned as JSON string and can be passed from one tag instance to other. JSON can be used as a value by prefixing used tag attribute name with
_array
. - Added: Converts returned booleans to uppercase strings,
TRUE
andFALSE
. This makes it possible to identify integers from booleans (e.g. strpos). - Added: Function whitelisting option.
- Improved: Prevent passing non-scalars to the template.
- Improved: Moved away from sanitization and
eval()
. Now uses callbacks. - Improved: Show some error messages when needed.
- Updated: Readme. Thanks to Tye for help.