Title: PHP 8 deprecation errors
Last modified: January 5, 2023

---

# PHP 8 deprecation errors

 *  Resolved [odedstr2](https://wordpress.org/support/users/odedstr2/)
 * (@odedstr2)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-8-deprecation-errors-3/)
 * The plugin causes some deprecation errors, as can be seen here: 
   [https://plugintests.com/plugins/wporg/capability-manager-enhanced/latest](https://plugintests.com/plugins/wporg/capability-manager-enhanced/latest)
   For example: `[08-Dec-2022 17:19:32 UTC] PHP Deprecated: Return type of Pimple\
   Container::offsetExists($id) should either be compatible with ArrayAccess::offsetExists(
   mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used
   to temporarily suppress the notice in /wp-content/plugins/capability-manager-
   enhanced/vendor/pimple/pimple/src/Pimple/Container.php on line 133[08-Dec-2022
   17:19:32 UTC] PHP Deprecated: Return type of Pimple\Container::offsetGet($id)
   should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed,
   or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress
   the notice in /wp-content/plugins/capability-manager-enhanced/vendor/pimple/pimple/
   src/Pimple/Container.php on line 98[08-Dec-2022 17:19:32 UTC] PHP Deprecated:
   Return type of Pimple\Container::offsetSet($id, $value) should either be compatible
   with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange]
   attribute should be used to temporarily suppress the notice in /wp-content/plugins/
   capability-manager-enhanced/vendor/pimple/pimple/src/Pimple/Container.php on 
   line 79[08-Dec-2022 17:19:32 UTC] PHP Deprecated: Return type of 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/capability-manager-enhanced/vendor/
   pimple/pimple/src/Pimple/Container.php on line 143

Viewing 1 replies (of 1 total)

 *  Plugin Support [Riza Maulana Ardiyanto](https://wordpress.org/support/users/rizaardiyanto/)
 * (@rizaardiyanto)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-8-deprecation-errors-3/#post-16345740)
 * Hi [@odedstr2](https://wordpress.org/support/users/odedstr2/)
 * Thanks for your report. We have created a task to handle it in the next future
   release.
 * You can monitor it here: [https://github.com/publishpress/PublishPress-Capabilities/issues/651](https://github.com/publishpress/PublishPress-Capabilities/issues/651)
    -  This reply was modified 3 years, 5 months ago by [Riza Maulana Ardiyanto](https://wordpress.org/support/users/rizaardiyanto/).

Viewing 1 replies (of 1 total)

The topic ‘PHP 8 deprecation errors’ is closed to new replies.

 * ![](https://ps.w.org/capability-manager-enhanced/assets/icon-256x256.png?rev=
   3408171)
 * [PublishPress Capabilities - User Role Editor, Access Permissions, User Capabilities, Admin Menus](https://wordpress.org/plugins/capability-manager-enhanced/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/capability-manager-enhanced/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/capability-manager-enhanced/)
 * [Active Topics](https://wordpress.org/support/plugin/capability-manager-enhanced/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/capability-manager-enhanced/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/capability-manager-enhanced/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Riza Maulana Ardiyanto](https://wordpress.org/support/users/rizaardiyanto/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/php-8-deprecation-errors-3/#post-16345740)
 * Status: resolved