@@ -110,28 +110,28 @@ public function setMaxOptimizationThreads(?int $maxOptimizationThreads): Optimiz
110110 public function toArray (): array
111111 {
112112 $ data = [];
113- if ($ this ->deletedThreshold ) {
113+ if ($ this ->deletedThreshold !== null ) {
114114 $ data ['deleted_threshold ' ] = $ this ->deletedThreshold ;
115115 }
116- if ($ this ->vacuumMinVectorNumber ) {
116+ if ($ this ->vacuumMinVectorNumber !== null ) {
117117 $ data ['vacuum_min_vector_number ' ] = $ this ->vacuumMinVectorNumber ;
118118 }
119- if ($ this ->defaultSegmentNumber ) {
119+ if ($ this ->defaultSegmentNumber !== null ) {
120120 $ data ['default_segment_number ' ] = $ this ->defaultSegmentNumber ;
121121 }
122- if ($ this ->maxSegmentSize ) {
122+ if ($ this ->maxSegmentSize !== null ) {
123123 $ data ['max_segment_size ' ] = $ this ->maxSegmentSize ;
124124 }
125- if ($ this ->memmapThreshold ) {
125+ if ($ this ->memmapThreshold !== null ) {
126126 $ data ['memmap_threshold ' ] = $ this ->memmapThreshold ;
127127 }
128- if ($ this ->indexingThreshold ) {
128+ if ($ this ->indexingThreshold !== null ) {
129129 $ data ['indexing_threshold ' ] = $ this ->indexingThreshold ;
130130 }
131- if ($ this ->flushIntervalSec ) {
131+ if ($ this ->flushIntervalSec !== null ) {
132132 $ data ['flush_interval_sec ' ] = $ this ->flushIntervalSec ;
133133 }
134- if ($ this ->maxOptimizationThreads ) {
134+ if ($ this ->maxOptimizationThreads !== null ) {
135135 $ data ['max_optimization_threads ' ] = $ this ->maxOptimizationThreads ;
136136 }
137137
0 commit comments