• Resolved enderandrew

    (@enderandrew)


    I’m still on PHP 7.4 because I heard many WordPress plugins and themes don’t support PHP 8, though I also hear that PHP 8 is both more secure and performs better.

    I was going to test out PHP 8 on my site and I see there are RC builds for 8.1 which is supposed to come out this month and went ahead and tested that. Strictly speaking, it appears this plugin works with PHP 8.1, however if you look at the logs, there are warnings about using deprecated features.

    I thought I’d just pass them along.

    Deprecated: Return type of ActionScheduler_DateTime::getOffset() should either be compatible with DateTime::getOffset(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/omahachapterone/wp-content/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/classes/ActionScheduler_DateTime.php on line 48

Viewing 1 replies (of 1 total)
  • Plugin Author Gregor Capuder

    (@capuderg)

    Hi @enderandrew,

    thank you very much for sharing this with us.

    Action Scheduler is a library that our plugin is using and we don’t have direct influence to edit that code. This deprecation notice will surely be fixed by them once PHP 8.1 will be live and in use.

    They will probably just suppress this notice with the suggested comment, since “Return Type Declarations” were introduced only in PHP 7 and they are supporting older PHP versions 5.6.20+ (just like WP Mail SMTP and WP core).

    We’ll keep an eye out for future PHP8 compatibility issues and resolve them as soon as possible, but if you spot anything else, please let us know.

    Have a nice day!

Viewing 1 replies (of 1 total)
  • The topic ‘PHP 8.1 Compatability’ is closed to new replies.