admin管理员组

文章数量:1296480

We're trying to commit and push our initial release to the SVN repository assigned to us by the wordpress team.

However when committing the code we're getting an error (probably because of the PHP8 polyfill) but are a bit baffled why this is stopping the plugin from being deployed?

In the readme.txt and composer we specifically also set the min. version of PHP to 7.0

We're trying to commit and push our initial release to the SVN repository assigned to us by the wordpress team.

However when committing the code we're getting an error (probably because of the PHP8 polyfill) but are a bit baffled why this is stopping the plugin from being deployed?

In the readme.txt and composer we specifically also set the min. version of PHP to 7.0

Share Improve this question asked Apr 9, 2021 at 11:30 SimonSimon 1112 bronze badges 1
  • 2 This is something you'll need to discuss with the WordPress team. You should be able to get assistance in their Slack. No one here's going to be able to be much help, especially since the code in question does not appear to even be code you've written. – Jacob Peattie Commented Apr 9, 2021 at 14:09
Add a comment  | 

1 Answer 1

Reset to default 1

After discussing this with the WP plugin review team.

The precommit hook that is being run on the server does not yet support PHP8. Removing any dependencies on the PHP80 polyfill code in vendor packages should fix this until they upgrade the precommit hooks to support PHP8.

Just noting on the discussion above related to symfony/polyfill-mbstring the Symfony polyfills now include files which are only PHP8-syntax, but those files are only included on PHP8, the PHP7 variant is included for the rest of the users. Same situation as when the libraries added PHP 7.3/7.4 syntax and we were strictly requiring 7.0 or something.

Using the older version of the library is the proper solution for now. The SVN server will lint with PHP8 once it’s deployed for usage on WordPress web requests, which while it has no timeline, I expect it’s probably going to happen at some point in the next few months, but before it’s widespread adoption.

本文标签: phpA serverside hook failed when committing plugin code to SVN