Title: PHP 8 Deprecated code
Last modified: February 7, 2021

---

# PHP 8 Deprecated code

 *  [Mikhail Alferov](https://wordpress.org/support/users/malferov/)
 * (@malferov)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/php-8-deprecated-code-3/)
 * When declaring a function or a method, adding a required parameter after optional
   parameters is deprecated since PHP 8.0.
 * > PHP Deprecated: Required parameter $nonce follows optional parameter $formdata
   > in /plugins/wp-pagenavi/scb/Forms.php on line 65
 * > PHP Deprecated: Required parameter $args follows optional parameter $file in/
   > plugins/wp-pagenavi/scb/Cron.php on line 24
 * Need to check the code in the declaration of functions and methods and their 
   calls.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/php-8-deprecated-code-3/#post-14017664)
 * It has been fixed, I have not released it yet. [https://github.com/lesterchan/wp-scb-framework/commit/c17ce6dce9a99ff4c2df708aaab2446fdea0f0c2](https://github.com/lesterchan/wp-scb-framework/commit/c17ce6dce9a99ff4c2df708aaab2446fdea0f0c2)

Viewing 1 replies (of 1 total)

The topic ‘PHP 8 Deprecated code’ is closed to new replies.

 * ![](https://ps.w.org/wp-pagenavi/assets/icon.svg?rev=977997)
 * [WP-PageNavi](https://wordpress.org/plugins/wp-pagenavi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-pagenavi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-pagenavi/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-pagenavi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-pagenavi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-pagenavi/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/php-8-deprecated-code-3/#post-14017664)
 * Status: not resolved