mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-01-23 02:35:23 +00: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