Changes between Initial Version and Version 1 of Ticket #49919
- Timestamp:
- 04/16/2020 04:02:25 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #49919 – Description
initial v1 3 3 The `PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames` sniff re-exposes the names of Core's double underscore functions (`__return_*`, for example) as a potential [https://www.php.net/manual/en/language.oop5.magic.php future conflict with new magic methods] (these were previously set to be ignored by the `WordPress.NamingConventions.ValidFunctionName` sniff in [45580]). 4 4 5 Caution: PHP reserves all function names starting with __ as magical. It is recommended that you do not use function names with __in PHP unless you want some documented magic functionality.5 Caution: PHP reserves all function names starting with `__` as magical. It is recommended that you do not use function names with `__` in PHP unless you want some documented magic functionality. 6 6 7 7 The functions are: