Fix invalid PHP doc blocks
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
parent
bd095c7bb4
commit
efed55320d
@ -32,7 +32,7 @@ class LintController extends AbstractController
|
||||
* The client, which will receive the JSON response will decode the message and
|
||||
* and any HTML fragments that are displayed to the user will be encoded anyway.
|
||||
*
|
||||
* @var string
|
||||
* @var string $sqlQuery
|
||||
*/
|
||||
$sqlQuery = $request->getParsedBodyParam('sql_query', '');
|
||||
|
||||
|
||||
@ -131,8 +131,6 @@ class Linter
|
||||
|
||||
/**
|
||||
* The response containing of all errors.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
$response = [];
|
||||
|
||||
|
||||
@ -1462,7 +1462,7 @@ class ExportSql extends ExportPlugin
|
||||
/**
|
||||
* `CREATE TABLE` statement.
|
||||
*
|
||||
* @var CreateStatement
|
||||
* @var CreateStatement $statement
|
||||
*/
|
||||
$statement = $parser->statements[0];
|
||||
|
||||
@ -1537,7 +1537,7 @@ class ExportSql extends ExportPlugin
|
||||
/**
|
||||
* `CREATE TABLE` statement.
|
||||
*
|
||||
* @var CreateStatement
|
||||
* @var CreateStatement $statement
|
||||
*/
|
||||
$statement = $parser->statements[0];
|
||||
|
||||
@ -1555,37 +1555,26 @@ class ExportSql extends ExportPlugin
|
||||
|
||||
/**
|
||||
* Fragments containing definition of each constraint.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
$constraints = [];
|
||||
|
||||
/**
|
||||
* Fragments containing definition of each index.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
$indexes = [];
|
||||
|
||||
/**
|
||||
* Fragments containing definition of each FULLTEXT index.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
$indexesFulltext = [];
|
||||
|
||||
/**
|
||||
* Fragments containing definition of each foreign key that will
|
||||
* be dropped.
|
||||
*
|
||||
* @var array
|
||||
* Fragments containing definition of each foreign key that will be dropped.
|
||||
*/
|
||||
$dropped = [];
|
||||
|
||||
/**
|
||||
* Fragment containing definition of the `AUTO_INCREMENT`.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
$autoIncrement = [];
|
||||
|
||||
@ -1639,15 +1628,11 @@ class ExportSql extends ExportPlugin
|
||||
|
||||
/**
|
||||
* The header of the `ALTER` statement (`ALTER TABLE tbl`).
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
$alterHeader = 'ALTER TABLE ' . Util::backquoteCompat($tableAlias, $compat, $GLOBALS['sql_backquotes']);
|
||||
|
||||
/**
|
||||
* The footer of the `ALTER` statement (usually ';')
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
$alterFooter = ';' . "\n";
|
||||
|
||||
|
||||
@ -42,9 +42,6 @@
|
||||
<rule ref="SlevomatCodingStandard.Classes.RequireConstructorPropertyPromotion.RequiredConstructorPropertyPromotion">
|
||||
<severity>4</severity>
|
||||
</rule>
|
||||
<rule ref="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration.InvalidFormat">
|
||||
<severity>4</severity>
|
||||
</rule>
|
||||
<rule ref="SlevomatCodingStandard.Commenting.RequireOneLineDocComment.MultiLineDocComment">
|
||||
<severity>4</severity>
|
||||
</rule>
|
||||
|
||||
@ -5525,11 +5525,6 @@ parameters:
|
||||
count: 1
|
||||
path: libraries/classes/Linter.php
|
||||
|
||||
-
|
||||
message: "#^PHPDoc tag @var has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
path: libraries/classes/Linter.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$pos of static method PhpMyAdmin\\\\Linter\\:\\:findLineNumberAndColumn\\(\\) expects int, int\\|string\\|null given\\.$#"
|
||||
count: 1
|
||||
@ -6405,11 +6400,6 @@ parameters:
|
||||
count: 1
|
||||
path: libraries/classes/Plugins/Export/ExportSql.php
|
||||
|
||||
-
|
||||
message: "#^PHPDoc tag @var has no value type specified in iterable type array\\.$#"
|
||||
count: 5
|
||||
path: libraries/classes/Plugins/Export/ExportSql.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$list of class PhpMyAdmin\\\\SqlParser\\\\Parser constructor expects PhpMyAdmin\\\\SqlParser\\\\TokensList\\|PhpMyAdmin\\\\SqlParser\\\\UtfString\\|string\\|null, \\(array\\<int, string\\>\\|string\\|null\\) given\\.$#"
|
||||
count: 1
|
||||
|
||||
@ -11263,12 +11263,7 @@
|
||||
<code><![CDATA[$trigger['create']]]></code>
|
||||
</MixedArgument>
|
||||
<MixedArgumentTypeCoercion>
|
||||
<code>$autoIncrement</code>
|
||||
<code>$compats</code>
|
||||
<code>$constraints</code>
|
||||
<code>$dropped</code>
|
||||
<code>$indexes</code>
|
||||
<code>$indexesFulltext</code>
|
||||
</MixedArgumentTypeCoercion>
|
||||
<MixedArrayAccess>
|
||||
<code><![CDATA[$GLOBALS['cfg']['Export']['remove_definer_from_definitions']]]></code>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user