Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deprecated PHP create_function #13

Open
alinakipko opened this issue Sep 22, 2022 · 1 comment
Open

Update deprecated PHP create_function #13

alinakipko opened this issue Sep 22, 2022 · 1 comment
Assignees

Comments

@alinakipko
Copy link

We need to update deprecated PHP function, which we currently use in the WProofreader plugin for WordPress:
https://www.php.net/manual/en/function.create-function.php
Screenshot 2022-02-07 at 13 45 08

@alinakipko alinakipko assigned alinakipko and lex127 and unassigned alinakipko Sep 22, 2022
@robindevitt
Copy link

robindevitt commented Nov 8, 2022

Any update on this issue being resolved?

We have the issue showing up when running PHP_CodeSniffer against PHP7.4 the plugin generates the following error:

FILE: content/plugins/webspellchecker/vendor/class.settings-api.php
-------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------
 108 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
-------------------------------------------------------------------------------------------------------------------

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants