PHP RFC: Deprecate curly brace syntax for accessing array elements and string offsets
Until this is fixed in the theme’s source, anyone bothered by the deprecation notice (like I am 😉 ) can fix it by replacing the curly braces {} with square brackets [] in evolve/inc/support.php at line 170:
if ( !isset( $version{1} ) ) {
should be changed to
if ( !isset( $version[1] ) ) {
-
This reply was modified 6 years, 2 months ago by
Bart Kuijper.
-
This reply was modified 6 years, 2 months ago by
Bart Kuijper.
-
This reply was modified 6 years, 2 months ago by
Bart Kuijper.
-
This reply was modified 6 years, 2 months ago by
Bart Kuijper.
Hi,
I have a “similar” problem:
designer/includes/tcpdf/tcpdf.php on line 17008 Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /customers/f/8/d/ejmart.dk/httpd.www/wp-content/plugins/woocommerce-products-designer/includes/tcpdf/tcpdf.php on line 17864 Deprecated: Array and string offset access syntax with curly braces is deprecated in /customers/f/8/d/ejmart.dk/httpd.www/wp-content/plugins/woocommerce-products-designer/includes/tcpdf/include/tcpdf_images.php on line 310
and earlier I got a message saying on line 17005: plugins/woocommerce-products-designer/includes/tcpdf/tcpdf.php on line 17005 Deprecated: Array and string offset access syntax with curly braces is deprecated in /customers/f/8/d/ejmart.dk/httpd.www/wp-content/plugins/woocommerce-products-designer/includes/tcpdf/tcpdf.php on line 17008 Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”?
Could this also be solved by changing braces and if so, where do I find the document to make the changes? I am not familiar with this, so will highly appreciate guidance on not just what to do but also where and how? Hope so much you can help. 😃🙏