mirror of
https://github.com/vrana/adminer.git
synced 2025-08-07 07:06:45 +02:00
Explicitly mark nullable params (thanks to @dg)
This commit is contained in:
@@ -15,7 +15,7 @@ class AdminerEditCalendar {
|
||||
* @param string $prepend text to append before first calendar usage
|
||||
* @param string $langPath path to language file, %s stands for language code
|
||||
*/
|
||||
function __construct(string $prepend = null, string $langPath = "jquery-ui/i18n/jquery.ui.datepicker-%s.js") {
|
||||
function __construct($prepend = null, $langPath = "jquery-ui/i18n/jquery.ui.datepicker-%s.js") {
|
||||
$this->prepend = $prepend;
|
||||
$this->langPath = $langPath;
|
||||
}
|
||||
|
@@ -15,7 +15,7 @@ class AdminerFileUpload {
|
||||
* @param string $displayPath prefix for displaying data, null stands for $uploadPath
|
||||
* @param string $extensions regular expression with allowed file extensions
|
||||
*/
|
||||
function __construct(string $uploadPath = "../static/data/", string $displayPath = null, string $extensions = "[a-zA-Z0-9]+") {
|
||||
function __construct($uploadPath = "../static/data/", $displayPath = null, $extensions = "[a-zA-Z0-9]+") {
|
||||
$this->uploadPath = $uploadPath;
|
||||
$this->displayPath = ($displayPath !== null ? $displayPath : $uploadPath);
|
||||
$this->extensions = $extensions;
|
||||
|
Reference in New Issue
Block a user