| @@ -385,8 +385,10 @@ | ||
| 385 | 385 | } |
| 386 | 386 | |
| 387 | 387 | public static function validationScriptFileMapping($fieldType) |
| 388 | 388 | { |
| 389 | + // Pro filter callbacks type-hint string; never let null/non-string through. | |
| 390 | + $fieldType = is_string($fieldType) ? $fieldType : ''; | |
| 389 | 391 | $textTypeField = ['text', 'password', 'username', 'color']; |
| 390 | 392 | if (in_array($fieldType, $textTypeField)) { |
| 391 | 393 | $fieldType = 'text'; |
| 392 | 394 | } |