Title: PHP Fatal error: Array and string offset access syntax with curly braces
Last modified: August 19, 2025

---

# PHP Fatal error: Array and string offset access syntax with curly braces

 *  Resolved [jhaun](https://wordpress.org/support/users/jhaun/)
 * (@jhaun)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/php-fatal-error-array-and-string-offset-access-syntax-with-curly-braces/)
 * Hello, I’m using PHP 8.2 and getting the fatal error, pasted below.
 * PHP Fatal error: Array and string offset access syntax with curly braces is no
   longer supported in wp-content/plugins//wp-optimize/vendor/marcusschwarz/lesserphp/
   lessify.inc.php on line 57
 *     ```wp-block-code
       if (!$eatWhitespace and strlen($what) == 1) {	if ($this->buffer{$this->count} == $what) {		$this->count++;		return true;	}	else return false;}
       ```
   
 * Thanks!
   Jhaun

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

 *  Plugin Support [Damilare](https://wordpress.org/support/users/deabiodun/)
 * (@deabiodun)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/php-fatal-error-array-and-string-offset-access-syntax-with-curly-braces/#post-18606587)
 * Hi Jhaun!
   Sorry about the error you’ve encountered.Are you using the latest version
   of the plugin? If not, please update and let us know if the error persists.
 * Regards.
 *  Thread Starter [jhaun](https://wordpress.org/support/users/jhaun/)
 * (@jhaun)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/php-fatal-error-array-and-string-offset-access-syntax-with-curly-braces/#post-18606655)
 * Hi Damilare,
   Yes, I’m using version 4.2.4, the latest version according to [https://wordpress.org/plugins/wp-optimize/](https://wordpress.org/plugins/wp-optimize/)
 * Unless it somehow didn’t get updated, the array syntax: $this->buffer{$this->
   count} with the curly braces is in that file, and is no longer supported
 * Thanks!
 *  Plugin Support [Damilare](https://wordpress.org/support/users/deabiodun/)
 * (@deabiodun)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/php-fatal-error-array-and-string-offset-access-syntax-with-curly-braces/#post-18609184)
 * Thanks for the update.
   We’ll investigate this further and let you know what we
   find.
 * Regards.
 *  Plugin Support [Damilare](https://wordpress.org/support/users/deabiodun/)
 * (@deabiodun)
 * [9 months, 1 week ago](https://wordpress.org/support/topic/php-fatal-error-array-and-string-offset-access-syntax-with-curly-braces/#post-18625276)
 * Hi!
   This bug has been fixed and will be introduced in a future release.
 * Regards.

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

The topic ‘PHP Fatal error: Array and string offset access syntax with curly braces’
is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

## Tags

 * [PHP Fatal error](https://wordpress.org/support/topic-tag/php-fatal-error/)

 * 4 replies
 * 2 participants
 * Last reply from: [Damilare](https://wordpress.org/support/users/deabiodun/)
 * Last activity: [9 months, 1 week ago](https://wordpress.org/support/topic/php-fatal-error-array-and-string-offset-access-syntax-with-curly-braces/#post-18625276)
 * Status: resolved