From 82604cdf6066fd3bc38ef3731062299655080733 Mon Sep 17 00:00:00 2001 From: Mikhail Alferov Date: Wed, 28 Jan 2026 08:20:58 +0300 Subject: [PATCH] Update set.xml Specify the correct return type and values, CS --- reference/quickhash/quickhashinthash/set.xml | 21 ++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/reference/quickhash/quickhashinthash/set.xml b/reference/quickhash/quickhashinthash/set.xml index 499bc85e5455..8cad6bd2aa90 100644 --- a/reference/quickhash/quickhashinthash/set.xml +++ b/reference/quickhash/quickhashinthash/set.xml @@ -10,7 +10,7 @@ &reftitle.description; - public boolQuickHashIntHash::set + public intQuickHashIntHash::set intkey intvalue @@ -49,7 +49,7 @@ &reftitle.returnvalues; - 2 if the entry was found and updated, 1 if the entry was newly added or 0 + 2 if the entry was newly added, 1 if the entry was found and updated, or 0 if there was an error. @@ -61,17 +61,17 @@ Add\n"; -var_dump( $hash->get( 46692 ) ); -var_dump( $hash->set( 46692, 16091 ) ); -var_dump( $hash->get( 46692 ) ); +var_dump($hash->get(46692)); +var_dump($hash->set(46692, 16091)); +var_dump($hash->get(46692)); -echo "Set->Update\n"; -var_dump( $hash->set( 46692, 29906 ) ); -var_dump( $hash->get( 46692 ) ); -?> +echo "\n\nSet->Update\n"; +var_dump($hash->set(46692, 29906)); +var_dump($hash->get(46692)); ]]> &example.outputs.similar; @@ -81,6 +81,7 @@ Set->Add bool(false) int(2) int(16091) + Set->Update int(1) int(29906)