Deprecated en php 8.1.8
Sur un site de test en SPIP 4.2-dev et php 8.1.8 j'ai ce deprecated
Deprecated: preg_replace(): Passing null to parameter #3 (closed) ($subject) of type array|string is deprecated in /home/cde31/relook_occitanie/ecrire/public/composer.php(96) : eval()'d code on line 34
Plus précisément:
Deprecated: preg_replace(): Passing null to parameter #3 (closed) ($subject) of type array|string is deprecated in /home/cde31/relook_occitanie/tmp/cache/skel/html_35280f0c52580e73034e7f041bda8159.php on line 41
ligne 41 de ce skel
$command['orderby'] = array('magnet DESC', (($x = preg_replace("/\W/",'', interdire_scripts(entites_html(table_valeur($Pile[0]??[], (string)'par', null),true)))) ? (in_array($x, $champs__articles) ? ('articles.' . $x . ' DESC') :($x . ' DESC')) : ''));