mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-12-24 04:21:06 -05:00
fix PHP 7.4 compatibility
This commit is contained in:
parent
baa79e12e8
commit
528f2f7221
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ class TranslatedException extends Exception
|
|||
* @param string|array $messageId message ID or array of message ID and parameters
|
||||
* @param int $code
|
||||
*/
|
||||
public function __construct(string|array $messageId, int $code = 0)
|
||||
public function __construct($messageId, int $code = 0)
|
||||
{
|
||||
$message = is_string($messageId) ? I18n::translate($messageId) : forward_static_call_array('PrivateBin\I18n::translate', $messageId);
|
||||
parent::__construct($message, $code);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue