File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ public function beforeRender(Event $event)
200200 $ className = $ settings ['className ' ];
201201 }
202202 if (strpos ($ field , '. ' ) !== false ) {
203- [ $ fieldModel , $ fieldName] = explode ('. ' , $ field );
203+ list ( $ fieldModel , $ fieldName) = explode ('. ' , $ field );
204204 }
205205
206206 if (!empty ($ this ->formData )) {
@@ -295,10 +295,10 @@ public function beforeRender(Event $event)
295295 $ options ['type ' ] = 'checkbox ' ;
296296
297297 if (isset ($ options ['value ' ])) {
298- $ options ['checked ' ] = !! $ options ['value ' ];
298+ $ options ['checked ' ] = ( bool ) $ options ['value ' ];
299299 unset($ options ['value ' ]);
300300 } elseif (isset ($ settings ['default ' ])) {
301- $ options ['checked ' ] = !! $ settings ['default ' ];
301+ $ options ['checked ' ] = ( bool ) $ settings ['default ' ];
302302 }
303303 break ;
304304
@@ -347,7 +347,7 @@ public function beforeRender(Event $event)
347347 }
348348
349349 /**
350- * @param array<mixed> $settings
350+ * @param array<mixed> $settings Settings.
351351 * @return void
352352 */
353353 private function __updatePersistence ($ settings )
You can’t perform that action at this time.
0 commit comments