also looking at this
fix: Only use uuid for media and check for validity
#78
11 files
+65
-32
| @@ -13,7 +13,9 @@ class InvalidFormatException extends Exception | ||
| 13 | 13 | */ |
| 14 | 14 | public function __construct(string $message = null) |
| 15 | 15 | { |
| 16 | parent::__construct($message ?? 'Error on line '.$this->getLine().' in '.$this->getFile() | |
| 17 | .' ID is not a valid integer'); | |
| 16 | $customMessage = $message ? " {$message}" : ' ID is not a valid integer'; | |
| 17 | ||
| 18 | parent::__construct('Error on line '.$this->getLine().' in '.$this->getFile() | |
| 19 | .$customMessage); | |
| 18 | 20 | } |
| 19 | 21 | } |