Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #49919


Ignore:
Timestamp:
04/16/2020 04:02:25 PM (5 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #49919 – Description

    initial v1  
    33The `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]).
    44
    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.
    66
    77The functions are: