--TEST-- SolrParams::serialize() - serialize params --SKIPIF-- = 80100) die("skip PHP < 8.1 only"); ?> --FILE-- setParam('q', 'lucene') ->setParam('start', 0) ->setParam('rows', 10) ->addParam('fq', 'popularity:[10 TO *]') ->addParam('fq', 'section:0') ; echo serialize($params); ?> --EXPECTF-- C:20:"SolrModifiableParams":727:{ lucene 0 10 popularity:[10 TO *] section:0 }