mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
Doc-comments: Use special PHPStan types
This commit is contained in:
@@ -125,7 +125,7 @@ function unset_permanent() {
|
|||||||
|
|
||||||
/** Render an error message and a login form
|
/** Render an error message and a login form
|
||||||
* @param string plain text
|
* @param string plain text
|
||||||
* @return null exits
|
* @return never
|
||||||
*/
|
*/
|
||||||
function auth_error($error) {
|
function auth_error($error) {
|
||||||
global $adminer, $has_token;
|
global $adminer, $has_token;
|
||||||
|
@@ -483,7 +483,7 @@ function is_ajax() {
|
|||||||
/** Send Location header and exit
|
/** Send Location header and exit
|
||||||
* @param string null to only set a message
|
* @param string null to only set a message
|
||||||
* @param string
|
* @param string
|
||||||
* @return null
|
* @return never
|
||||||
*/
|
*/
|
||||||
function redirect($location, $message = null) {
|
function redirect($location, $message = null) {
|
||||||
if ($message !== null) {
|
if ($message !== null) {
|
||||||
@@ -552,7 +552,7 @@ function queries($query) {
|
|||||||
/** Apply command to all array items
|
/** Apply command to all array items
|
||||||
* @param string
|
* @param string
|
||||||
* @param list<string>
|
* @param list<string>
|
||||||
* @param callback
|
* @param callable(string):string
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
function apply_queries($query, $tables, $escape = 'Adminer\table') {
|
function apply_queries($query, $tables, $escape = 'Adminer\table') {
|
||||||
|
@@ -60,7 +60,7 @@ function get_lang() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Translate string
|
/** Translate string
|
||||||
* @param string
|
* @param literal-string
|
||||||
* @param int
|
* @param int
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user