scribu / wp-posts-to-posts

Efficient many-to-many connections between posts, pages, custom post types, users.
http://wordpress.org/plugins/posts-to-posts/
969 stars 260 forks source link

Errors coming while upgrading to php7.2 #566

Open rajesh-mobicules opened 5 years ago

rajesh-mobicules commented 5 years ago

Hi,

I upgraded my environment to php7.2 and i ran the php compatibility checker..

Below is the error which i am getting:

FILE: /var/www/html/medicare/wp-content/plugins/posts-to-posts/admin/dropdown.php

FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE

50 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead

FILE: /var/www/html/medicare/wp-content/plugins/posts-to-posts/vendor/mustache/mustache/src/Mustache/Tokenizer. php

FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE

95 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2

Please let me know if there is any updated plugin by which we can have get this fixed.

I can override these functions in my themes as these are private functions of a class and it does not have any method to apply hooks.