- Affected version
- 2.1.2
PHP: rfc:arrow_functions_v2
wiki.php.net
Unfortunately the fn keyword must be a full keyword and not just a reserved function name.
Ilija Tovilo analyzed the top 1,000 PHP repositories on GitHub to find usages of fn. The gist provides more information, but the rough findings are that all known existing usages of fn are in tests except one case where it is a namespace segment. (The namespace use happens to be in my own library, and I'm happy to rename it.)
This affects;
XF/Template/Templater::fn