Skip to content

PHP 7.0+ warning with __fs in SDK: double underscore prefix for method names reserved #150

@presswizards

Description

@presswizards

Actual Behavior:

  • What is the issue? (*) PHP v7 warnings in SDK
  • What is the expected behavior? No warnings

From a recent support thread regarding SDK and PHP 7.0:

PHP 7 warning:
Function name “__fs” is discouraged; PHP has reserved all method names with a double underscore prefix for future use

"Ran the PHP 7.0 Compatibility Checker plugin that can be found here https://wordpress.org/plugins/php-compatibility-checker/

FILE: …./wp-content/plugins/pluginname/includes/freemius/includes/fs-essential-functions.php
———————————————————————————————————————————————
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
———————————————————————————————————————————————
165 | WARNING | Function name “__fs” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
———————————————————————————————————————————————

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions