• Resolved teszilla

    (@teszilla)


    Hello, I get this warning with PHP 8.1:

    Deprecated: Return type of League\Period\Period::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in wp-content/plugins/simply-schedule-appointments/vendor/league/period/src/Period.php on line 372

    Kind regards

Viewing 1 replies (of 1 total)
  • Plugin Author NSquared

    (@croixhaug)

    Hi @teszilla thanks for getting in touch, we’ll take a look at this library and see if it has an update that will eliminate the deprecated notice. The deprecated notice is a warning about future compatibility, but it shouldn’t impact how the application runs on PHP 8.1

    In the meantime, I’d recommend adding this to your wp-config.php so that it doesn’t display the debug messages on screen, but writes them to a file instead:

    define(‘WP_DEBUG’, true);
    define(‘WP_DEBUG_DISPLAY’, false);
    define(‘WP_DEBUG_LOG’, true);

    Thanks,
    Nathan

Viewing 1 replies (of 1 total)
  • The topic ‘Deprecated: Period.php (jsonSerialize)’ is closed to new replies.