File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -217,18 +217,18 @@ public function setColumnClass($columnClass): string
217217 return $ this ->columnClass = $ columnClass ;
218218 }
219219
220- protected function getFieldOption (Column $ column , string $ optionName , mixed $ default = null ): string
220+ protected function getFieldOption (Column $ column , string $ optionName , mixed $ default = null ): mixed
221221 {
222- $ optionsFields = $ this ->getVariable ('fields ' , array () );
223- $ options = is_array ($ optionsFields ) && array_key_exists ($ column ->getName (), $ optionsFields ) ? $ optionsFields [$ column ->getName ()] : array () ;
222+ $ optionsFields = $ this ->getVariable ('fields ' , [] );
223+ $ options = is_array ($ optionsFields ) && array_key_exists ($ column ->getName (), $ optionsFields ) ? $ optionsFields [$ column ->getName ()] : [] ;
224224
225225 return $ options [$ optionName ] ?? $ default ;
226226 }
227227
228228 protected function setUserColumnConfiguration (Column $ column ): void
229229 {
230- $ optionsFields = $ this ->getVariable ('fields ' , array () );
231- $ options = is_array ($ optionsFields ) && array_key_exists ($ column ->getName (), $ optionsFields ) ? $ optionsFields [$ column ->getName ()] : array () ;
230+ $ optionsFields = $ this ->getVariable ('fields ' , [] );
231+ $ options = is_array ($ optionsFields ) && array_key_exists ($ column ->getName (), $ optionsFields ) ? $ optionsFields [$ column ->getName ()] : [] ;
232232
233233 foreach ($ options as $ option => $ value ) {
234234 $ column ->setProperty ($ option , $ value );
You can’t perform that action at this time.
0 commit comments