‘clone’ […] cannot be invoked as a function
-
Hi,
I regularly get complains from my users that my plugin is not compatible with PHP 7 since they see the error in the subject.
However, this is just incorrect. ‘Clone’ can be used as a function and nothing wrong with that.
Is it planned to fix some day?
____________________________________________________________
FILE: /home/xxxxxxxx/public_html/xxxxxx/wp-content/plugins/weight-based-shipping-for-woocommerce/WC_Weight_Based_Shipping.php
————————————————————————————————————————————–
FOUND 2 ERRORS AFFECTING 2 LINES
————————————————————————————————————————————–
67 | ERROR | ‘clone’ is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CLONE)
319 | ERROR | ‘clone’ is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CLONE)
————————————————————————————————————————————–
- The topic ‘‘clone’ […] cannot be invoked as a function’ is closed to new replies.