-
Notifications
You must be signed in to change notification settings - Fork 83
Closed
Labels
[Type] BugAn existing feature is brokenAn existing feature is broken
Milestone
Description
Describe the bug
When using PHP 7.2 and checking a plugin, an error happens:
PHP Parse error: syntax error, unexpected ')' in /app/wordpress/wp-content/plugins/plugin-check/checks/plugin-updaters.php on line 12
The code is this one, with a trailing comma:
return new Error(
'plugin_updater_detected',
'Plugin Updater detected. Use of the Update URI header is not helpful in plugins hosted on WordPress.org.',
);And trailing commas are supported from PHP 7.3
Steps to Reproduce
- Use PHP 7.2
- Check a plugin
- Error
Screenshots, screen recording, code snippet
No response
Environment information
- PHP version: 7.2
WordPress information
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
[Type] BugAn existing feature is brokenAn existing feature is broken