Title: Optional parameter PHP8 warning message
Last modified: July 14, 2021

---

# Optional parameter PHP8 warning message

 *  [Kevin Batdorf](https://wordpress.org/support/users/kbat82/)
 * (@kbat82)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/optional-parameter-php8-warning-message/)
 * PHP 8 will show a warning now when a method signature has an optional parameter
   that comes before a required parameter.
 * Warning message we’re seeing points here: [https://plugins.trac.wordpress.org/browser/mailin/trunk/inc/sib-api-manager.php#L300](https://plugins.trac.wordpress.org/browser/mailin/trunk/inc/sib-api-manager.php#L300)
 * If the project is hosted somewhere I can make a PR. Let me know and I’d be happy
   to do so.
 * More info: [https://php.watch/versions/8.0/deprecate-required-param-after-optional](https://php.watch/versions/8.0/deprecate-required-param-after-optional)
 * Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [alice888](https://wordpress.org/support/users/alice888/)
 * (@alice888)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/optional-parameter-php8-warning-message/#post-14664961)
 * Hello [@kbat82](https://wordpress.org/support/users/kbat82/),
 * Thanks for reaching out.
 * We had previously shared with our users the following article, in order to disable
   the PHP8 warnings: [https://www.greengeeks.in/tutorials/article/disable-wordpress-php-error-messages/](https://www.greengeeks.in/tutorials/article/disable-wordpress-php-error-messages/)\
 * If the topic arises again, I will be sure to share your advice.
 * Kindly,
 *  Thread Starter [Kevin Batdorf](https://wordpress.org/support/users/kbat82/)
 * (@kbat82)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/optional-parameter-php8-warning-message/#post-14665147)
 * Thanks for the follow up. Are you sure the solution to buggy code is to teach
   users how to hide the warning messages?
 *  [alice888](https://wordpress.org/support/users/alice888/)
 * (@alice888)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/optional-parameter-php8-warning-message/#post-14667583)
 * Hello [@kbat82](https://wordpress.org/support/users/kbat82/),
 * Thanks for following up.
 * Could you clarify if you are using the newest version (2.0.26) of our plugin?
   The recent update should resolve any warnings.
 * Let us know!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Optional parameter PHP8 warning message’ is closed to new replies.

 * ![](https://ps.w.org/mailin/assets/icon-256x256.png?rev=2993173)
 * [Brevo - Email, SMS, Web Push, Chat, and more.](https://wordpress.org/plugins/mailin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailin/)
 * [Active Topics](https://wordpress.org/support/plugin/mailin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailin/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [alice888](https://wordpress.org/support/users/alice888/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/optional-parameter-php8-warning-message/#post-14667583)
 * Status: not resolved