• Resolved psimatrix

    (@psimatrix)


    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)
Viewing 1 replies (of 1 total)
  • The topic ‘Required Parameters’ is closed to new replies.