Title: Deprecated: array and string offset
Last modified: May 19, 2020

---

# Deprecated: array and string offset

 *  [Mikel King](https://wordpress.org/support/users/vizkr/)
 * (@vizkr)
 * [6 years ago](https://wordpress.org/support/topic/deprecated-array-and-string-offset/)
 * While testing my site locally in PHP7.4 the plugin threw an error because of 
   the use of braces in an array offset. I would have submitted a PR but wasn’t 
   really sure where so this will have to do. It’s an easy fix to make it compatible
   iwth PHP7.4.
 * Image of the deprecation notice:
    [https://www.jafdip.com/wp-content/uploads/sites/3/2020/05/dprecated-array-offset.png](https://www.jafdip.com/wp-content/uploads/sites/3/2020/05/dprecated-array-offset.png)
 * Offending code block:
    [https://www.jafdip.com/wp-content/uploads/sites/3/2020/05/deprecated-array-offset-code.png](https://www.jafdip.com/wp-content/uploads/sites/3/2020/05/deprecated-array-offset-code.png)
 * Cheers,
    Mikel
 * Corrected code:
    [https://www.jafdip.com/wp-content/uploads/sites/3/2020/05/corrected-array-offset-code.png.png](https://www.jafdip.com/wp-content/uploads/sites/3/2020/05/corrected-array-offset-code.png.png)

The topic ‘Deprecated: array and string offset’ is closed to new replies.

 * ![](https://ps.w.org/polldaddy/assets/icon-256x256.png?rev=2073994)
 * [Crowdsignal Dashboard - Polls, Surveys & more](https://wordpress.org/plugins/polldaddy/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polldaddy/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polldaddy/)
 * [Active Topics](https://wordpress.org/support/plugin/polldaddy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polldaddy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polldaddy/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Mikel King](https://wordpress.org/support/users/vizkr/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/deprecated-array-and-string-offset/)
 * Status: not resolved