The update to PHP 8.1 brings the following error.

Deprecated function: Return type of Ticketmatic\Model\Event::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (line 51 of /var/www/html/vendor/ticketmatic/phpsdk/lib/Model/Event.php).
To reproduce this, simply update your local environment to PHP 8.1 and on the page where the library is called, the error appears.
The update to PHP 8.1 brings the following error.
Deprecated function: Return type of Ticketmatic\Model\Event::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (line 51 of /var/www/html/vendor/ticketmatic/phpsdk/lib/Model/Event.php).To reproduce this, simply update your local environment to PHP 8.1 and on the page where the library is called, the error appears.