wp-posts-to-posts icon indicating copy to clipboard operation
wp-posts-to-posts copied to clipboard

Optional parameter deprecation notices in PHP 8

Open iandunn opened this issue 2 years ago • 1 comments

> wp plugin list
Deprecated: Optional parameter $formdata declared before required parameter $nonce is implicitly treated as a required parameter in wp-content/plugins/posts-to-posts/vendor/scribu/scb-framework/Forms.php on line 65
Deprecated: Optional parameter $file declared before required parameter $args is implicitly treated as a required parameter in wp-content/plugins/posts-to-posts/vendor/scribu/scb-framework/Cron.php on line 24
+----------------------------------+----------+--------+---------+
| name                             | status   | update | version |
+----------------------------------+----------+--------+---------+
| posts-to-posts                   | active   | none   | 1.7     |

https://php.watch/versions/8.0/deprecate-required-param-after-optional

Related #576

iandunn avatar Aug 31 '22 18:08 iandunn

These deprecations are actually inside scb-framework, this plugin depends on.

I created a PR to fix them over there. As soon as that is merged, we can update the composer version of scb-framework for wp-posts-to-posts.

hirasso avatar Sep 21 '22 12:09 hirasso