--TEST-- SolrDocument - clone --SKIPIF-- = 80100) die("skip PHP < 8.1 only"); ?> --FILE-- response->docs[1]; $serializedString = serialize($doc); print_r($serializedString); echo PHP_EOL; print_r(unserialize($serializedString)->toArray()); ?> --EXPECT-- C:12:"SolrDocument":172:{ parent_2 } Array ( [document_boost] => 0 [field_count] => 1 [fields] => Array ( [0] => SolrDocumentField Object ( [name] => id [boost] => 0 [values] => Array ( [0] => parent_2 ) ) ) )