Title: Deprecated: Period.php (jsonSerialize)
Last modified: May 19, 2023

---

# Deprecated: Period.php (jsonSerialize)

 *  Resolved [teszilla](https://wordpress.org/support/users/teszilla/)
 * (@teszilla)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/deprecated-period-php-jsonserialize/)
 * 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 372Kind regards

Viewing 1 replies (of 1 total)

 *  Plugin Author [NSquared](https://wordpress.org/support/users/croixhaug/)
 * (@croixhaug)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/deprecated-period-php-jsonserialize/#post-16758645)
 * Hi [@teszilla](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/simply-schedule-appointments/assets/icon.svg?rev=2926807)
 * [Appointment Booking Calendar — Simply Schedule Appointments Booking Plugin](https://wordpress.org/plugins/simply-schedule-appointments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simply-schedule-appointments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simply-schedule-appointments/)
 * [Active Topics](https://wordpress.org/support/plugin/simply-schedule-appointments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simply-schedule-appointments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simply-schedule-appointments/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [NSquared](https://wordpress.org/support/users/croixhaug/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/deprecated-period-php-jsonserialize/#post-16758645)
 * Status: resolved