@@ -138,7 +138,7 @@ public function getName(): string
138138 return $ this ->name ;
139139 }
140140
141- public function getLabel (): ? string
141+ public function getLabel (): string
142142 {
143143 return $ this ->options ['label ' ] ?? "{$ this ->dataTable ->getName ()}.columns. {$ this ->getName ()}" ;
144144 }
@@ -173,9 +173,9 @@ public function isOrderable(): bool
173173 return $ this ->options ['orderable ' ] ?? !empty ($ this ->getOrderField ());
174174 }
175175
176- public function getFilter (): AbstractFilter
176+ public function getFilter (): ? AbstractFilter
177177 {
178- return $ this ->options ['filter ' ];
178+ return $ this ->options ['filter ' ] ?? null ;
179179 }
180180
181181 public function getOrderField (): ?string
@@ -188,7 +188,7 @@ public function isGlobalSearchable(): bool
188188 return $ this ->options ['globalSearchable ' ] ?? $ this ->isSearchable ();
189189 }
190190
191- public function getLeftExpr (): string
191+ public function getLeftExpr (): mixed
192192 {
193193 $ leftExpr = $ this ->options ['leftExpr ' ];
194194 if (null === $ leftExpr ) {
@@ -201,7 +201,7 @@ public function getLeftExpr(): string
201201 return $ leftExpr ;
202202 }
203203
204- public function getRightExpr (mixed $ value ): string
204+ public function getRightExpr (mixed $ value ): mixed
205205 {
206206 $ rightExpr = $ this ->options ['rightExpr ' ];
207207 if (null === $ rightExpr ) {
@@ -219,9 +219,9 @@ public function getOperator(): string
219219 return $ this ->options ['operator ' ];
220220 }
221221
222- public function getClassName (): string
222+ public function getClassName (): ? string
223223 {
224- return $ this ->options ['className ' ];
224+ return $ this ->options ['className ' ] ?? null ;
225225 }
226226
227227 public function getDataTable (): DataTable
@@ -241,7 +241,7 @@ public function setOption(string $name, mixed $value): static
241241 return $ this ;
242242 }
243243
244- public function isValidForSearch (string $ value ): bool
244+ public function isValidForSearch (mixed $ value ): bool
245245 {
246246 return true ;
247247 }
0 commit comments