diff --git a/plugins/email-table.php b/plugins/email-table.php index 235fc634..2b7625a2 100644 --- a/plugins/email-table.php +++ b/plugins/email-table.php @@ -16,7 +16,7 @@ class AdminerEmailTable extends Adminer\Plugin { * @param string $subject quoted column name * @param string $message quoted column name */ - function __construct(string $table = "email", string $id = "id", string $title = "subject", string $subject = "subject", string $message = "message") { + function __construct($table = "email", $id = "id", $title = "subject", $subject = "subject", $message = "message") { $this->table = $table; $this->id = $id; $this->title = $title; diff --git a/plugins/frames.php b/plugins/frames.php index 9251ede2..a0d68356 100644 --- a/plugins/frames.php +++ b/plugins/frames.php @@ -12,7 +12,7 @@ class AdminerFrames extends Adminer\Plugin { /** * @param bool $sameOrigin allow running from the same origin only */ - function __construct(bool $sameOrigin = false) { + function __construct($sameOrigin = false) { $this->sameOrigin = $sameOrigin; } diff --git a/plugins/slugify.php b/plugins/slugify.php index a21ff1e5..526c507c 100644 --- a/plugins/slugify.php +++ b/plugins/slugify.php @@ -13,7 +13,7 @@ class AdminerSlugify extends Adminer\Plugin { * @param string $from find these characters ... * @param string $to ... and replace them by these */ - function __construct(string $from = 'áčďéěíňóřšťúůýž', string $to = 'acdeeinorstuuyz') { + function __construct($from = 'áčďéěíňóřšťúůýž', $to = 'acdeeinorstuuyz') { $this->from = $from; $this->to = $to; } diff --git a/plugins/sql-gemini.php b/plugins/sql-gemini.php index 7cda540f..2bdd0880 100644 --- a/plugins/sql-gemini.php +++ b/plugins/sql-gemini.php @@ -16,7 +16,7 @@ class AdminerSqlGemini extends Adminer\Plugin { * @param string $apiKey The default key is shared with all users and may run out of quota; get your own API key at: https://aistudio.google.com/apikey * @param string $model Available models: https://ai.google.dev/gemini-api/docs/models#available-models */ - function __construct(string $apiKey = 'AIzaSyDWDbPjmvH9_hphsnY_yJGdue42qRMG3do', string $model = "gemini-2.0-flash") { + function __construct($apiKey = 'AIzaSyDWDbPjmvH9_hphsnY_yJGdue42qRMG3do', $model = "gemini-2.0-flash") { $this->apiKey = $apiKey; $this->model = $model; } diff --git a/plugins/sql-log.php b/plugins/sql-log.php index 2b8aedb5..bcaadf79 100644 --- a/plugins/sql-log.php +++ b/plugins/sql-log.php @@ -12,7 +12,7 @@ class AdminerSqlLog extends Adminer\Plugin { /** * @param string $filename defaults to "$database.sql" */ - function __construct(string $filename = "") { + function __construct($filename = "") { $this->filename = $filename; } diff --git a/plugins/table-indexes-structure.php b/plugins/table-indexes-structure.php index 265260ab..528adf10 100644 --- a/plugins/table-indexes-structure.php +++ b/plugins/table-indexes-structure.php @@ -11,7 +11,7 @@ class AdminerTableIndexesStructure extends Adminer\Plugin { /** Print table structure in tabular format * @param Index[] $indexes data about all indexes on a table */ - function tableIndexesPrint(array $indexes): bool { + function tableIndexesPrint($indexes): bool { echo "\n"; echo "\n"; foreach ($indexes as $name => $index) { diff --git a/plugins/tinymce.php b/plugins/tinymce.php index d451d361..02e9600a 100644 --- a/plugins/tinymce.php +++ b/plugins/tinymce.php @@ -10,7 +10,7 @@ class AdminerTinymce extends Adminer\Plugin { protected $path; - function __construct(string $path = "tiny_mce/tiny_mce.js") { + function __construct($path = "tiny_mce/tiny_mce.js") { $this->path = $path; }
" . Adminer\lang('Name') . "" . Adminer\lang('Type') . "" . Adminer\lang('Columns') . "