Automattic / vip-go-wpcom-compat

VIP Go / WordPress.com Compatibility
https://wpvip.com
2 stars 6 forks source link

Use square brackets instead of curly bracket to retrieve string position #45

Closed lipemat closed 4 years ago

lipemat commented 4 years ago

In PHP 7.4, using curly brackets to retrieve a string position is deprecated. Switch over to non deprecated usage of same functionality.

I receive the following error during extensive unit testing. Deprecated: Array and string offset access syntax with curly braces is deprecated in vip-go-wpcom-compat\wpcom-hooks.php on line 68

rinatkhaziev commented 4 years ago

Thanks @lipemat!

Out of curiosity, I looked up the original code, it was written in 2013!