File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -159,22 +159,22 @@ public function getFloatOrNullValue(string $key): float|null
159159
160160 public function getSubValue (string $ key ): mixed
161161 {
162- if (\str_contains ($ key , \Spameri \ElasticQuery \Mapping \Settings \Mapping \FieldSeparator::FIELD_SEPARATOR ) === true ) {
162+ if (\str_contains ($ key , \Spameri \ElasticQuery \Mapping \Settings \Mapping \FieldSeparator::FIELD_SEPARATOR ) === TRUE ) {
163163 $ levels = \explode (\Spameri \ElasticQuery \Mapping \Settings \Mapping \FieldSeparator::FIELD_SEPARATOR , $ key );
164164
165- $ value = $ this ->source [$ levels [0 ]] ?? null ;
165+ $ value = $ this ->source [$ levels [0 ]] ?? NULL ;
166166 unset($ levels [0 ]);
167167
168168 foreach ($ levels as $ subKey ) {
169- $ value = $ value [$ subKey ] ?? null ;
169+ $ value = $ value [$ subKey ] ?? NULL ;
170+ }
170171
171- if ($ value !== null ) {
172- return $ value ;
173- }
172+ if ($ value !== NULL ) {
173+ return $ value ;
174174 }
175175 }
176176
177- return null ;
177+ return NULL ;
178178 }
179179
180180
You can’t perform that action at this time.
0 commit comments