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
WordPress information
No response
Code of Conduct
Describe the bug
When using PHP 7.2 and checking a plugin, an error happens:
The code is this one, with a trailing comma:
And trailing commas are supported from PHP 7.3
Steps to Reproduce
Screenshots, screen recording, code snippet
No response
Environment information
WordPress information
No response
Code of Conduct