Title: Deprecated code PHP 8.1
Last modified: May 19, 2022

---

# Deprecated code PHP 8.1

 *  Resolved [cestis1](https://wordpress.org/support/users/cestis1/)
 * (@cestis1)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/deprecated-code-php-8-1/)
 * Deprecated: Return type of No3x\WPML\Pimple\Container::offsetUnset($id) should
   either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the#[\
   ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
   in wp-content/plugins/wp-mail-logging/lib/vendor/pimple/pimple/src/Container.
   php on line 138

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [xberg](https://wordpress.org/support/users/xberg/)
 * (@xberg)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/deprecated-code-php-8-1/#post-16134982)
 * Yes!
    I’m also getting this error running PHP 8.1 and WP Mail Logging V 1.10.4
 * Actually 4 errors about Osbolete PHP:
    wp-content/plugins/wp-mail-logging/lib/
   vendor/pimple/pimple/src/Container.php in lines: 138 128 96 74
 *  [rolfhuiber](https://wordpress.org/support/users/rolfhuiber/)
 * (@rolfhuiber)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/deprecated-code-php-8-1/#post-16168126)
 * Add the following before the method:
    #[\ReturnTypeWillChange]
 * [https://github.com/silexphp/Pimple/blame/main/src/Pimple/Container.php](https://github.com/silexphp/Pimple/blame/main/src/Pimple/Container.php)
 * [https://php.watch/versions/8.1/ReturnTypeWillChange](https://php.watch/versions/8.1/ReturnTypeWillChange)
 * [https://make.wordpress.org/core/2022/01/10/wordpress-5-9-and-php-8-0-8-1/](https://make.wordpress.org/core/2022/01/10/wordpress-5-9-and-php-8-0-8-1/)
 * I noticed someone wrote the plugin seems to be abandoned, also no reactions lately.
   
   We will have to support the plugin by ourself.
    -  This reply was modified 3 years, 5 months ago by [rolfhuiber](https://wordpress.org/support/users/rolfhuiber/).
 *  [xberg](https://wordpress.org/support/users/xberg/)
 * (@xberg)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/deprecated-code-php-8-1/#post-16180109)
 * Thank you! Your fix worked.
 *  [Drivingralle](https://wordpress.org/support/users/drivingralle/)
 * (@drivingralle)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/deprecated-code-php-8-1/#post-16252316)
 * I also get this error.
 * Hope the team behind the plugin can fix it soon.
 *  [David](https://wordpress.org/support/users/dpinson/)
 * (@dpinson)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/deprecated-code-php-8-1/#post-16371551)
 * Hello [@cestis1](https://wordpress.org/support/users/cestis1/), [@drivingralle](https://wordpress.org/support/users/drivingralle/),
   [@xberg](https://wordpress.org/support/users/xberg/), and [@rolfhuiber](https://wordpress.org/support/users/rolfhuiber/),
 * If you’re still running into this issue, please update to the most recent version
   of WP Mail Logging. We resolved PHP 8.1 issues with the 1.10.5 update. Once you
   update the errors should go away.
 * Thanks and have a great day!
 *  [xberg](https://wordpress.org/support/users/xberg/)
 * (@xberg)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/deprecated-code-php-8-1/#post-16374995)
 * Thank you!
 *  [David](https://wordpress.org/support/users/dpinson/)
 * (@dpinson)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/deprecated-code-php-8-1/#post-16381474)
 * Hey [@xberg](https://wordpress.org/support/users/xberg/)! You’re very welcome,
   happy to help! 🙂

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Deprecated code PHP 8.1’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-logging/assets/icon-256x256.jpg?rev=2562296)
 * [WP Mail Logging](https://wordpress.org/plugins/wp-mail-logging/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-logging/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-logging/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-logging/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-logging/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-logging/reviews/)

 * 10 replies
 * 5 participants
 * Last reply from: [David](https://wordpress.org/support/users/dpinson/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/deprecated-code-php-8-1/#post-16381474)
 * Status: resolved