Title: Required Parameters
Last modified: June 13, 2023

---

# Required Parameters

 *  Resolved [psimatrix](https://wordpress.org/support/users/psimatrix/)
 * (@psimatrix)
 * [3 years ago](https://wordpress.org/support/topic/required-parameters/)
 * Running the plugin in PHP 8.0 Produces the following Deprecated log entry:
 * Deprecated: Required parameter $posttype follows optional parameter $excludeCat
   in /wp-content/plugins/simple-yearly-archive/simple-yearly-archive.php on line
   117
 * The problematic line reads as follows in the latest release:
 * `public function get($format, $excludeCat = '', $includeCat = '', $posttype, 
   $dateformat)`
 * I suggest the following change to the method declaration:
 * `public function get($format, $excludeCat = '', $includeCat = '', $posttype ='',
   $dateformat = '')`
 * For full compliance you should do something more like:
 * public function get(string $format, string $excludeCat = ”, string $includeCat
   = ”, string $posttype = ”, string $dateformat = ”): string

Viewing 1 replies (of 1 total)

 *  Plugin Author [wpseek](https://wordpress.org/support/users/alphawolf/)
 * (@alphawolf)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/required-parameters/#post-16921881)
 * Fixed in **2.2.0**

Viewing 1 replies (of 1 total)

The topic ‘Required Parameters’ is closed to new replies.

 * ![](https://ps.w.org/simple-yearly-archive/assets/icon-256x256.png?rev=1162212)
 * [Simple Yearly Archive](https://wordpress.org/plugins/simple-yearly-archive/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-yearly-archive/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-yearly-archive/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-yearly-archive/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-yearly-archive/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-yearly-archive/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [wpseek](https://wordpress.org/support/users/alphawolf/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/required-parameters/#post-16921881)
 * Status: resolved