]> git.joonet.de Git - adminer.git/commitdiff
Doc-comments: Use special PHPStan types
authorJakub Vrana <jakub@vrana.cz>
Tue, 25 Mar 2025 14:14:19 +0000 (15:14 +0100)
committerJakub Vrana <jakub@vrana.cz>
Tue, 25 Mar 2025 14:18:47 +0000 (15:18 +0100)
adminer/include/auth.inc.php
adminer/include/functions.inc.php
adminer/include/lang.inc.php

index 865b26626c51fddc8b512097f83e38bd8e9d790f..5cb616213f9d20038c4303ad1c208e4f20262015 100644 (file)
@@ -125,7 +125,7 @@ function unset_permanent() {
 
 /** Render an error message and a login form
 * @param string plain text
-* @return null exits
+* @return never
 */
 function auth_error($error) {
        global $adminer, $has_token;
index 0af3f0702db3e0d97de86c5d531e494070548a3a..b3dbea5c72f733ef172251692d1d12aeca0e0f2f 100644 (file)
@@ -483,7 +483,7 @@ function is_ajax() {
 /** Send Location header and exit
 * @param string null to only set a message
 * @param string
-* @return null
+* @return never
 */
 function redirect($location, $message = null) {
        if ($message !== null) {
@@ -552,7 +552,7 @@ function queries($query) {
 /** Apply command to all array items
 * @param string
 * @param list<string>
-* @param callback
+* @param callable(string):string
 * @return bool
 */
 function apply_queries($query, $tables, $escape = 'Adminer\table') {
index 61d0d0e110fc4d630f044681dff2030e65a6dad7..9b4b27cb89558f834f7dc640f1a1fd230ab18d8c 100644 (file)
@@ -60,7 +60,7 @@ function get_lang() {
 }
 
 /** Translate string
-* @param string
+* @param literal-string
 * @param int
 * @return string
 */