search-and-replace icon indicating copy to clipboard operation
search-and-replace copied to clipboard

Deprecation notices on PHP8+ about optional parameters before mandatory ones

Open MathieuLamiot opened this issue 1 year ago • 0 comments

Context https://wp-media.slack.com/archives/C07HCD19B/p1727784189218359 https://secure.helpscout.net/conversation/2720613961/514890

The following deprecation notices are reported on PHP8+:

Deprecated: Optional parameter $search declared before required parameter $table is implicitly treated as a required parameter in /home/nglcom/public_html/negoluz.nz/wp-content/plugins/search-and-replace/inc/Database/Exporter.php on line 295

Deprecated: Optional parameter $replace declared before required parameter $table is implicitly treated as a required parameter in /home/nglcom/public_html/negoluz.nz/wp-content/plugins/search-and-replace/inc/Database/Exporter.php on line 295

There is no impact on the behavior, apart from adding deprecation notices.

MathieuLamiot avatar Oct 02 '24 08:10 MathieuLamiot