| Conditions | 3 |
| Paths | 1 |
| Total Lines | 5 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function __construct(string $path, string $name, string $mimeType = null, int $error = null) { |
||
| 27 | $this->mimeType = $mimeType ?: 'application/octet-stream'; |
||
| 28 | $this->error = $error ?: UPLOAD_ERR_OK; |
||
| 29 | $this->originalName = pathinfo($name, PATHINFO_FILENAME); |
||
| 30 | parent::__construct($path); |
||
| 31 | } |
||
| 88 | } |
If you suppress an error, we recommend checking for the error condition explicitly: