| 1 | <?php |
||
| 5 | class StringVal |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Forces the value to a string, optionally applying `str_replace()`. |
||
| 9 | * |
||
| 10 | * @param object $subject The subject to be filtered. |
||
| 11 | * @param string $field The subject field name. |
||
| 12 | * @param string|array $find Find this/these in the value. |
||
| 13 | * @param string|array $replace Replace with this/these in the value. |
||
| 14 | * |
||
| 15 | * @return bool True if the value was sanitized, false if not. |
||
| 16 | */ |
||
| 17 | 9 | public function __invoke($subject, string $field, $find = null, $replace = null): bool |
|
| 27 | } |
||
| 28 |