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
1 Answer
Reset to default 1After 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
版权声明:本文标题:php - A server-side hook failed when committing plugin code to SVN 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741622621a2388898.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论