Title: Compatibility Issue with PHP 8.5 &#8211; Deprecated Method SplObjectStorage::attach()
Last modified: February 21, 2026

---

# Compatibility Issue with PHP 8.5 – Deprecated Method SplObjectStorage::attach()

 *  [alperi](https://wordpress.org/support/users/alperi/)
 * (@alperi)
 * [3 months, 1 week ago](https://wordpress.org/support/topic/compatibility-issue-with-php-8-5-deprecated-method-splobjectstorageattach/)
 * Hello Solid Security Support Team,
 * I am currently testing my environment with **PHP 8.5** and encountered a “Deprecated”
   warning related to the **Solid Security **plugin. The error points to a third-
   party dependency (Pimple) included in your plugin’s vendor directory.
 * **Error Message:** `Deprecated: Method SplObjectStorage::attach() is deprecated
   since 8.5, use method SplObjectStorage::offsetSet() instead in /home/---.com/
   public_html/wp-content/plugins/ithemes-security-pro/vendor-prod/pimple/pimple/
   src/Pimple/Container.php on line 180`
 * **Environment Details:**
    - **Plugin:** Solid Security (iThemes Security) v.8.7.0
    - **PHP Version:** 8.5
    - **File Path:** `vendor-prod/pimple/pimple/src/Pimple/Container.php`
 * **Requested Action:** Since PHP 8.5 deprecates `SplObjectStorage::attach()` in
   favor of `SplObjectStorage::offsetSet()`, could you please update the internal`
   Pimple` dependency or apply a patch to ensure compatibility with the upcoming
   PHP versions?
 * Thank you for your assistance.
 * Best regards,
    -  This topic was modified 3 months, 1 week ago by [alperi](https://wordpress.org/support/users/alperi/).

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

 *  Plugin Support [chandelierrr](https://wordpress.org/support/users/shanedelierrr/)
 * (@shanedelierrr)
 * [3 months, 1 week ago](https://wordpress.org/support/topic/compatibility-issue-with-php-8-5-deprecated-method-splobjectstorageattach/#post-18830552)
 * Hello [@alperi](https://wordpress.org/support/users/alperi/),
 * Thanks for taking the time to report this and for sharing your environment details.
   We appreciate it!
 * I’ve been able to replicate the PHP 8.5 deprecation warning (`SplObjectStorage::
   attach()` in the `Pimple` dependency) and have escalated this to our development
   team so we can address compatibility with PHP 8.5. We’ll work on updating or 
   patching the affected code so it works cleanly with upcoming PHP versions. I’ll
   follow up in this thread once we have an update.
 * Thanks again for helping us improve Solid Security!
 *  [bigbatsbutt](https://wordpress.org/support/users/djixas/)
 * (@djixas)
 * [2 months, 1 week ago](https://wordpress.org/support/topic/compatibility-issue-with-php-8-5-deprecated-method-splobjectstorageattach/#post-18862261)
 * Still does not work
 *  [Toine Rademacher](https://wordpress.org/support/users/toineenzo/)
 * (@toineenzo)
 * [2 months ago](https://wordpress.org/support/topic/compatibility-issue-with-php-8-5-deprecated-method-splobjectstorageattach/#post-18865665)
 * Related: [https://wordpress.org/support/topic/php-8-5-multiple-critical-issues/](https://wordpress.org/support/topic/php-8-5-multiple-critical-issues/#post-18865663)
 *  Thread Starter [alperi](https://wordpress.org/support/users/alperi/)
 * (@alperi)
 * [2 months ago](https://wordpress.org/support/topic/compatibility-issue-with-php-8-5-deprecated-method-splobjectstorageattach/#post-18865674)
 * Hi [@shanedelierrr](https://wordpress.org/support/users/shanedelierrr/),
 * I am currently testing my website on **PHP 8.4 / 8.5** and I am receiving several“
   Deprecated” warnings originating from your plugin. These warnings are triggering“
   headers already sent” errors, which interfere with the site’s functionality. 
   I see the problem hasn’t been resolved yet. When will an update addressing these
   issues be released?
 * Specifically, I am seeing the following types of issues:
    1. **Implicitly marking parameters as nullable:** Many functions still use the 
       old syntax (e.g., `function ($param = null)` instead of the explicit `function(?
       $param = null)`), which is deprecated in PHP 8.4+.
    2. **SplObjectStorage::attach():** This method is deprecated since PHP 8.4/8.5 
       in favor of `offsetSet()`.
    3. **Case statement syntax:** Some files are using semicolons after `case` statements(
       e.g., `case 'value';`) instead of colons, which is now deprecated.
    4. **Vendor Library issues:** Several issues are originating from outdated vendor
       libraries (like Guzzle, Pimple, and Google API Client) bundled with the plugin.
 * Could you please update the plugin and its dependencies to be fully compatible
   with PHP 8.4 and 8.5?

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcompatibility-issue-with-php-8-5-deprecated-method-splobjectstorageattach%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=3529351)
 * [Kadence Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

 * 4 replies
 * 6 participants
 * Last reply from: [alperi](https://wordpress.org/support/users/alperi/)
 * Last activity: [2 months ago](https://wordpress.org/support/topic/compatibility-issue-with-php-8-5-deprecated-method-splobjectstorageattach/#post-18865674)
 * Status: not resolved