backdrop-contrib / diff

Show differences between content revisions.
GNU General Public License v2.0
0 stars 5 forks source link

Diff php 8.1.x deprecated warnings #31

Open izmeez opened 9 months ago

izmeez commented 9 months ago

With php 8.1.10 and the diff module I am seeing the following:

    Deprecated function: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in diff_diffs_show() (line 176 of \modules\diff\diff.pages.inc).
    Deprecated function: explode(): Passing null to parameter #2 ($string) of type string is deprecated in diff_get_rows() (line 501 of \modules\diff\diff.module).
    Deprecated function: explode(): Passing null to parameter #2 ($string) of type string is deprecated in diff_get_rows() (line 502 of \modules\diff\diff.module).

This may be similar to https://github.com/backdrop-contrib/diff/issues/8

izmeez commented 9 months ago

These warnings appear when user goes to Revisions tab menu and click on "Compare".