| 1 | <?php |
||
| 20 | class UploadedFileOrNull |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * |
||
| 24 | * Forces the value to null if not an uploaded file. |
||
| 25 | * |
||
| 26 | * @param object $subject The subject to be filtered. |
||
| 27 | * |
||
| 28 | * @param string $field The subject field name. |
||
| 29 | * |
||
| 30 | * @return bool True if the value was sanitized, false if not. |
||
| 31 | * |
||
| 32 | */ |
||
| 33 | 3 | public function __invoke($subject, $field) |
|
| 45 | } |
||
| 46 |