From 4eb15101f1b9ef0d042fd8e8f64a787d66d11dc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Tue, 19 Nov 2024 17:45:00 -0300 Subject: [PATCH] Add PHPStan strict rules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MaurĂ­cio Meneghini Fauth --- composer.json | 8 +- phpstan-baseline.neon | 2655 +++++++++++++++++++++++++++++++++-------- phpstan.neon.dist | 5 + psalm-baseline.xml | 8 - 4 files changed, 2170 insertions(+), 506 deletions(-) diff --git a/composer.json b/composer.json index 36ccdb91..7330d88b 100644 --- a/composer.json +++ b/composer.json @@ -30,9 +30,11 @@ "phpbench/phpbench": "^1.1", "phpmyadmin/coding-standard": "^3.0", "phpmyadmin/motranslator": "^4.0 || ^5.0", - "phpstan/extension-installer": "^1.1", - "phpstan/phpstan": "^1.9.12", - "phpstan/phpstan-phpunit": "^1.3.3", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^1.12", + "phpstan/phpstan-deprecation-rules": "^1.2", + "phpstan/phpstan-phpunit": "^1.4", + "phpstan/phpstan-strict-rules": "^1.6", "phpunit/phpunit": "^8.5 || ^9.6", "psalm/plugin-phpunit": "^0.16.1", "vimeo/psalm": "^4.11", diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index d51e3afe..016742c6 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -5,11 +5,51 @@ parameters: count: 1 path: src/Component.php + - + message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" + count: 1 + path: src/Components/AlterOperation.php + - message: "#^Cannot assign new offset to array\\\\|string\\.$#" count: 3 path: src/Components/AlterOperation.php + - + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 1 + path: src/Components/AlterOperation.php + + - + message: "#^Only booleans are allowed in &&, PhpMyAdmin\\\\SqlParser\\\\Token\\|null given on the right side\\.$#" + count: 2 + path: src/Components/AlterOperation.php + + - + message: "#^Only booleans are allowed in &&, mixed given on the left side\\.$#" + count: 2 + path: src/Components/AlterOperation.php + + - + message: "#^Only booleans are allowed in &&, mixed given on the right side\\.$#" + count: 2 + path: src/Components/AlterOperation.php + + - + message: "#^Only booleans are allowed in \\|\\|, mixed given on the left side\\.$#" + count: 2 + path: src/Components/AlterOperation.php + + - + message: "#^Only booleans are allowed in \\|\\|, mixed given on the right side\\.$#" + count: 1 + path: src/Components/AlterOperation.php + + - + message: "#^Parameter \\#1 \\$component \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\AlterOperation\\) of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\AlterOperation\\:\\:build\\(\\) should be contravariant with parameter \\$component \\(mixed\\) of method PhpMyAdmin\\\\SqlParser\\\\Component\\:\\:build\\(\\)$#" + count: 1 + path: src/Components/AlterOperation.php + - message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\PartitionDefinition\\:\\:build\\(\\) expects array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\PartitionDefinition, array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj given\\.$#" count: 1 @@ -20,6 +60,11 @@ parameters: count: 1 path: src/Components/AlterOperation.php + - + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\AlterOperation\\:\\:\\$unknown \\(array\\\\|string\\) does not accept mixed\\.$#" + count: 3 + path: src/Components/AlterOperation.php + - message: "#^Cannot access property \\$values on array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#" count: 1 @@ -30,6 +75,16 @@ parameters: count: 1 path: src/Components/Array2d.php + - + message: "#^Only booleans are allowed in &&, int\\<0, 2\\> given on the right side\\.$#" + count: 1 + path: src/Components/Array2d.php + + - + message: "#^Parameter \\#1 \\$component \\(array\\\\) of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\Array2d\\:\\:build\\(\\) should be contravariant with parameter \\$component \\(mixed\\) of method PhpMyAdmin\\\\SqlParser\\\\Component\\:\\:build\\(\\)$#" + count: 1 + path: src/Components/Array2d.php + - message: "#^Cannot access an offset on array\\, mixed\\>\\|ArrayAccess\\|static\\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\)\\.$#" count: 1 @@ -50,1090 +105,2660 @@ parameters: count: 1 path: src/Components/ArrayObj.php + - + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 6 + path: src/Components/ArrayObj.php + - message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\:\\:parse\\(\\) should return array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj but returns array\\, mixed\\>\\|ArrayAccess\\|static\\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\)\\.$#" count: 1 path: src/Components/ArrayObj.php + - + message: "#^Parameter \\#1 \\$component \\(array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\) of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\:\\:build\\(\\) should be contravariant with parameter \\$component \\(mixed\\) of method PhpMyAdmin\\\\SqlParser\\\\Component\\:\\:build\\(\\)$#" + count: 1 + path: src/Components/ArrayObj.php + - message: "#^Binary operation \"\\.\" between ' AS ' and array\\\\|string results in an error\\.$#" count: 1 path: src/Components/CaseExpression.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\CaseExpression\\:\\:\\$alias \\(string\\|null\\) does not accept mixed\\.$#" + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 2 + path: src/Components/CaseExpression.php + + - + message: "#^Only booleans are allowed in &&, int\\<0, 1\\> given on the right side\\.$#" count: 1 path: src/Components/CaseExpression.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\CaseExpression\\:\\:\\$compare_values \\(array\\\\) does not accept array\\\\.$#" + message: "#^Only booleans are allowed in a negated boolean, int given\\.$#" count: 1 path: src/Components/CaseExpression.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\CaseExpression\\:\\:\\$results \\(array\\\\) does not accept array\\\\.$#" - count: 2 + message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" + count: 1 path: src/Components/CaseExpression.php - - message: "#^Unreachable statement \\- code above always terminates\\.$#" + message: "#^Only booleans are allowed in \\|\\|, int\\<0, 2\\> given on the left side\\.$#" count: 1 - path: src/Components/Condition.php + path: src/Components/CaseExpression.php - - message: "#^Binary operation \"\\.\" between array\\\\|string and ' ' results in an error\\.$#" + message: "#^Only booleans are allowed in \\|\\|, int\\<0, 32\\> given on the right side\\.$#" count: 1 - path: src/Components/CreateDefinition.php + path: src/Components/CaseExpression.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\CreateDefinition\\:\\:\\$name \\(string\\|null\\) does not accept mixed\\.$#" - count: 2 - path: src/Components/CreateDefinition.php + message: "#^Parameter \\#1 \\$component \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\CaseExpression\\) of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\CaseExpression\\:\\:build\\(\\) should be contravariant with parameter \\$component \\(mixed\\) of method PhpMyAdmin\\\\SqlParser\\\\Component\\:\\:build\\(\\)$#" + count: 1 + path: src/Components/CaseExpression.php - - message: "#^Cannot access property \\$raw on array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\CaseExpression\\:\\:\\$alias \\(string\\|null\\) does not accept mixed\\.$#" count: 1 - path: src/Components/DataType.php + path: src/Components/CaseExpression.php - - message: "#^Cannot access property \\$values on array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\CaseExpression\\:\\:\\$compare_values \\(array\\\\) does not accept array\\\\.$#" count: 1 - path: src/Components/DataType.php + path: src/Components/CaseExpression.php - - message: "#^Cannot cast mixed to string\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\CaseExpression\\:\\:\\$results \\(array\\\\) does not accept array\\\\.$#" + count: 2 + path: src/Components/CaseExpression.php + + - + message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" count: 1 - path: src/Components/DataType.php + path: src/Components/Condition.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\DataType\\:\\:\\$name \\(string\\) does not accept string\\|null\\.$#" + message: "#^Call to function is_array\\(\\) with array\\ will always evaluate to true\\.$#" count: 1 - path: src/Components/DataType.php + path: src/Components/Condition.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\DataType\\:\\:\\$options \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" count: 1 - path: src/Components/DataType.php + path: src/Components/Condition.php - - message: "#^Binary operation \"\\.\" between ' AS ' and array\\\\|string results in an error\\.$#" + message: "#^Only booleans are allowed in &&, int\\<0, 2\\> given on the right side\\.$#" count: 1 - path: src/Components/Expression.php + path: src/Components/Condition.php - - message: "#^Parameter \\#2 \\$pieces of function implode expects array, array\\\\|string given\\.$#" + message: "#^Only booleans are allowed in a negated boolean, int\\<0, 32\\> given\\.$#" count: 1 - path: src/Components/Expression.php + path: src/Components/Condition.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\:\\:\\$alias \\(string\\|null\\) does not accept mixed\\.$#" - count: 3 - path: src/Components/Expression.php + message: "#^Only booleans are allowed in \\|\\|, int\\<0, 16\\> given on the right side\\.$#" + count: 1 + path: src/Components/Condition.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\:\\:\\$subquery \\(string\\|null\\) does not accept mixed\\.$#" + message: "#^Only booleans are allowed in \\|\\|, int\\<0, 2\\> given on the right side\\.$#" count: 1 - path: src/Components/Expression.php + path: src/Components/Condition.php - - message: "#^Strict comparison using \\=\\=\\= between PhpMyAdmin\\\\SqlParser\\\\Token and null will always evaluate to false\\.$#" + message: "#^Parameter \\#1 \\$component \\(array\\\\) of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\Condition\\:\\:build\\(\\) should be contravariant with parameter \\$component \\(mixed\\) of method PhpMyAdmin\\\\SqlParser\\\\Component\\:\\:build\\(\\)$#" count: 1 - path: src/Components/Expression.php + path: src/Components/Condition.php - - message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Components\\\\ExpressionArray\\:\\:parse\\(\\) should return array\\ but returns array\\, PhpMyAdmin\\\\SqlParser\\\\Components\\\\CaseExpression\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\>\\.$#" + message: "#^Unreachable statement \\- code above always terminates\\.$#" count: 1 - path: src/Components/ExpressionArray.php + path: src/Components/Condition.php - - message: "#^Parameter \\#1 \\$string of function strlen expects string, string\\|null given\\.$#" + message: "#^Binary operation \"\\.\" between array\\\\|string and ' ' results in an error\\.$#" count: 1 - path: src/Components/ExpressionArray.php + path: src/Components/CreateDefinition.php - - message: "#^Parameter \\#1 \\$string of function substr expects string, string\\|null given\\.$#" + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 7 + path: src/Components/CreateDefinition.php + + - + message: "#^Only booleans are allowed in &&, int\\<0, 16\\> given on the right side\\.$#" count: 1 - path: src/Components/ExpressionArray.php + path: src/Components/CreateDefinition.php - - message: "#^Parameter \\#2 \\$subject of function preg_match expects string, string\\|null given\\.$#" + message: "#^Only booleans are allowed in a negated boolean, bool\\|null given\\.$#" count: 1 - path: src/Components/ExpressionArray.php + path: src/Components/CreateDefinition.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\FunctionCall\\:\\:\\$parameters \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\|null\\) does not accept array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#" + message: "#^Only booleans are allowed in an if condition, bool\\|null given\\.$#" count: 1 - path: src/Components/FunctionCall.php + path: src/Components/CreateDefinition.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\GroupKeyword\\:\\:\\$expr \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" - count: 2 - path: src/Components/GroupKeyword.php + message: "#^Only booleans are allowed in an if condition, int\\<0, 2\\> given\\.$#" + count: 1 + path: src/Components/CreateDefinition.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\GroupKeyword\\:\\:\\$expr \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\) in empty\\(\\) is not falsy\\.$#" + message: "#^Parameter \\#1 \\$component \\(array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\CreateDefinition\\) of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\CreateDefinition\\:\\:build\\(\\) should be contravariant with parameter \\$component \\(mixed\\) of method PhpMyAdmin\\\\SqlParser\\\\Component\\:\\:build\\(\\)$#" + count: 1 + path: src/Components/CreateDefinition.php + + - + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\CreateDefinition\\:\\:\\$name \\(string\\|null\\) does not accept mixed\\.$#" count: 2 - path: src/Components/GroupKeyword.php + path: src/Components/CreateDefinition.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\IndexHint\\:\\:\\$type \\(string\\|null\\) does not accept mixed\\.$#" + message: "#^Cannot access property \\$raw on array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#" count: 1 - path: src/Components/IndexHint.php + path: src/Components/DataType.php - message: "#^Cannot access property \\$values on array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#" count: 1 - path: src/Components/IntoKeyword.php + path: src/Components/DataType.php - - message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\:\\:build\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray, PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null given\\.$#" - count: 2 - path: src/Components/IntoKeyword.php + message: "#^Cannot cast mixed to string\\.$#" + count: 1 + path: src/Components/DataType.php - - message: "#^Parameter \\#3 \\$keyword of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\IntoKeyword\\:\\:parseFileOptions\\(\\) expects string, mixed given\\.$#" - count: 2 - path: src/Components/IntoKeyword.php + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 3 + path: src/Components/DataType.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\IntoKeyword\\:\\:\\$dest \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|string\\|null\\) does not accept mixed\\.$#" + message: "#^Only booleans are allowed in a negated boolean, int\\<0, 8\\> given\\.$#" count: 1 - path: src/Components/IntoKeyword.php + path: src/Components/DataType.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\JoinKeyword\\:\\:\\$expr \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" - count: 2 - path: src/Components/JoinKeyword.php + message: "#^Parameter \\#1 \\$component \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\DataType\\) of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\DataType\\:\\:build\\(\\) should be contravariant with parameter \\$component \\(mixed\\) of method PhpMyAdmin\\\\SqlParser\\\\Component\\:\\:build\\(\\)$#" + count: 1 + path: src/Components/DataType.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\JoinKeyword\\:\\:\\$on \\(array\\\\) does not accept array\\\\|null\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\DataType\\:\\:\\$name \\(string\\) does not accept string\\|null\\.$#" count: 1 - path: src/Components/JoinKeyword.php + path: src/Components/DataType.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\JoinKeyword\\:\\:\\$type \\(string\\) does not accept string\\|null\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\DataType\\:\\:\\$options \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" count: 1 - path: src/Components/JoinKeyword.php + path: src/Components/DataType.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\JoinKeyword\\:\\:\\$using \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\|null\\.$#" + message: "#^Binary operation \"\\.\" between ' AS ' and array\\\\|string results in an error\\.$#" count: 1 - path: src/Components/JoinKeyword.php + path: src/Components/Expression.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\JoinKeyword\\:\\:\\$using \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\) does not accept array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#" - count: 1 - path: src/Components/JoinKeyword.php + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 18 + path: src/Components/Expression.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\JoinKeyword\\:\\:\\$using \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\) in empty\\(\\) is not falsy\\.$#" + message: "#^Only booleans are allowed in &&, PhpMyAdmin\\\\SqlParser\\\\Token\\|null given on the right side\\.$#" count: 1 - path: src/Components/JoinKeyword.php + path: src/Components/Expression.php - - message: "#^Binary operation \"\\.\" between array\\\\|string and ' ' results in an error\\.$#" + message: "#^Only booleans are allowed in &&, int\\<0, 16\\> given on the right side\\.$#" count: 1 - path: src/Components/Key.php + path: src/Components/Expression.php - - message: "#^Binary operation \"\\.\\=\" between '' and array\\\\|string results in an error\\.$#" + message: "#^Only booleans are allowed in &&, int\\<0, 1\\> given on the right side\\.$#" count: 1 - path: src/Components/Key.php + path: src/Components/Expression.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Key\\:\\:\\$columns \\(array\\\\) does not accept non\\-empty\\-array\\\\>\\.$#" + message: "#^Only booleans are allowed in &&, int\\<0, 2\\> given on the left side\\.$#" count: 1 - path: src/Components/Key.php + path: src/Components/Expression.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Key\\:\\:\\$name \\(string\\) does not accept mixed\\.$#" + message: "#^Only booleans are allowed in &&, int\\<0, 32\\> given on the left side\\.$#" count: 1 - path: src/Components/Key.php + path: src/Components/Expression.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Key\\:\\:\\$name \\(string\\) does not accept string\\|null\\.$#" + message: "#^Only booleans are allowed in &&, int\\<0, 32\\> given on the right side\\.$#" count: 1 - path: src/Components/Key.php + path: src/Components/Expression.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Key\\:\\:\\$type \\(string\\) does not accept mixed\\.$#" + message: "#^Only booleans are allowed in a negated boolean, int\\<0, 16\\> given\\.$#" count: 1 - path: src/Components/Key.php + path: src/Components/Expression.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Key\\:\\:\\$type \\(string\\) does not accept string\\|null\\.$#" + message: "#^Only booleans are allowed in a negated boolean, int\\<0, 1\\> given\\.$#" count: 1 - path: src/Components/Key.php + path: src/Components/Expression.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Limit\\:\\:\\$offset \\(int\\|string\\) does not accept mixed\\.$#" + message: "#^Only booleans are allowed in a negated boolean, int\\<0, 2\\> given\\.$#" count: 1 - path: src/Components/Limit.php + path: src/Components/Expression.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Limit\\:\\:\\$rowCount \\(int\\|string\\) does not accept mixed\\.$#" + message: "#^Parameter \\#1 \\$component \\(array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\) of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\:\\:build\\(\\) should be contravariant with parameter \\$component \\(mixed\\) of method PhpMyAdmin\\\\SqlParser\\\\Component\\:\\:build\\(\\)$#" count: 1 - path: src/Components/Limit.php + path: src/Components/Expression.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\LockExpression\\:\\:\\$table \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" + message: "#^Parameter \\#2 \\$pieces of function implode expects array, array\\\\|string given\\.$#" count: 1 - path: src/Components/LockExpression.php + path: src/Components/Expression.php - - message: "#^Cannot access offset 'equals' on mixed\\.$#" - count: 1 - path: src/Components/OptionsArray.php + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\:\\:\\$alias \\(string\\|null\\) does not accept mixed\\.$#" + count: 3 + path: src/Components/Expression.php - - message: "#^Cannot access offset 'expr' on mixed\\.$#" - count: 2 - path: src/Components/OptionsArray.php + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\:\\:\\$subquery \\(string\\|null\\) does not accept mixed\\.$#" + count: 1 + path: src/Components/Expression.php - - message: "#^Cannot access offset 'name' on mixed\\.$#" + message: "#^Strict comparison using \\!\\=\\= between PhpMyAdmin\\\\SqlParser\\\\Token and null will always evaluate to true\\.$#" count: 1 - path: src/Components/OptionsArray.php + path: src/Components/Expression.php - - message: "#^Cannot access offset 'value' on mixed\\.$#" - count: 2 - path: src/Components/OptionsArray.php + message: "#^Strict comparison using \\=\\=\\= between PhpMyAdmin\\\\SqlParser\\\\Token and null will always evaluate to false\\.$#" + count: 1 + path: src/Components/Expression.php - - message: "#^Cannot access offset 1 on mixed\\.$#" + message: "#^Variable property access on static\\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\)\\.$#" count: 2 - path: src/Components/OptionsArray.php + path: src/Components/Expression.php - - message: "#^Cannot access offset 2 on mixed\\.$#" + message: "#^Call to function is_array\\(\\) with array\\, PhpMyAdmin\\\\SqlParser\\\\Components\\\\CaseExpression\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\> will always evaluate to true\\.$#" count: 1 - path: src/Components/OptionsArray.php + path: src/Components/ExpressionArray.php - - message: "#^Parameter \\#2 \\$str2 of function strcasecmp expects string, mixed given\\.$#" - count: 2 - path: src/Components/OptionsArray.php + message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Components\\\\ExpressionArray\\:\\:parse\\(\\) should return array\\ but returns array\\, PhpMyAdmin\\\\SqlParser\\\\Components\\\\CaseExpression\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\>\\.$#" + count: 1 + path: src/Components/ExpressionArray.php - - message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + message: "#^Only booleans are allowed in &&, int\\<0, 2\\> given on the right side\\.$#" count: 1 - path: src/Components/OptionsArray.php + path: src/Components/ExpressionArray.php - - message: "#^Parameter \\#3 \\$options of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\:\\:parse\\(\\) expects array\\, mixed given\\.$#" + message: "#^Only booleans are allowed in &&, int\\<0, 32\\> given on the right side\\.$#" count: 1 - path: src/Components/OptionsArray.php + path: src/Components/ExpressionArray.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\:\\:\\$options \\(array\\\\) does not accept array\\\\.$#" - count: 8 - path: src/Components/OptionsArray.php + message: "#^Only booleans are allowed in an if condition, int\\|false given\\.$#" + count: 1 + path: src/Components/ExpressionArray.php - - message: "#^Right side of && is always true\\.$#" + message: "#^Parameter \\#1 \\$component \\(array\\\\) of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\ExpressionArray\\:\\:build\\(\\) should be contravariant with parameter \\$component \\(mixed\\) of method PhpMyAdmin\\\\SqlParser\\\\Component\\:\\:build\\(\\)$#" count: 1 - path: src/Components/OptionsArray.php + path: src/Components/ExpressionArray.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\OrderKeyword\\:\\:\\$expr \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" - count: 2 - path: src/Components/OrderKeyword.php + message: "#^Parameter \\#1 \\$string of function strlen expects string, string\\|null given\\.$#" + count: 1 + path: src/Components/ExpressionArray.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\OrderKeyword\\:\\:\\$expr \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\) in empty\\(\\) is not falsy\\.$#" - count: 2 - path: src/Components/OrderKeyword.php + message: "#^Parameter \\#1 \\$string of function substr expects string, string\\|null given\\.$#" + count: 1 + path: src/Components/ExpressionArray.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\ParameterDefinition\\:\\:\\$inOut \\(string\\) does not accept string\\|null\\.$#" + message: "#^Parameter \\#2 \\$subject of function preg_match expects string, string\\|null given\\.$#" count: 1 - path: src/Components/ParameterDefinition.php + path: src/Components/ExpressionArray.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\ParameterDefinition\\:\\:\\$name \\(string\\) does not accept mixed\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\CaseExpression\\:\\:\\$expr \\(string\\|null\\) does not accept \\(string\\|false\\)\\.$#" count: 1 - path: src/Components/ParameterDefinition.php + path: src/Components/ExpressionArray.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\ParameterDefinition\\:\\:\\$name \\(string\\) does not accept string\\|null\\.$#" + message: "#^Parameter \\#1 \\$component \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\FunctionCall\\) of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\FunctionCall\\:\\:build\\(\\) should be contravariant with parameter \\$component \\(mixed\\) of method PhpMyAdmin\\\\SqlParser\\\\Component\\:\\:build\\(\\)$#" count: 1 - path: src/Components/ParameterDefinition.php + path: src/Components/FunctionCall.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\ParameterDefinition\\:\\:\\$name \\(string\\) in isset\\(\\) is not nullable\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\FunctionCall\\:\\:\\$parameters \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\|null\\) does not accept array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#" count: 1 - path: src/Components/ParameterDefinition.php + path: src/Components/FunctionCall.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\ParameterDefinition\\:\\:\\$type \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\DataType\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\DataType\\|null\\.$#" + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" count: 2 - path: src/Components/ParameterDefinition.php + path: src/Components/GroupKeyword.php - - message: "#^Unreachable statement \\- code above always terminates\\.$#" + message: "#^Parameter \\#1 \\$component \\(array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\GroupKeyword\\) of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\GroupKeyword\\:\\:build\\(\\) should be contravariant with parameter \\$component \\(mixed\\) of method PhpMyAdmin\\\\SqlParser\\\\Component\\:\\:build\\(\\)$#" count: 1 - path: src/Components/ParameterDefinition.php + path: src/Components/GroupKeyword.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\PartitionDefinition\\:\\:\\$expr \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|string\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" - count: 1 - path: src/Components/PartitionDefinition.php + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\GroupKeyword\\:\\:\\$expr \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" + count: 2 + path: src/Components/GroupKeyword.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\PartitionDefinition\\:\\:\\$name \\(string\\) does not accept mixed\\.$#" - count: 1 - path: src/Components/PartitionDefinition.php + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\GroupKeyword\\:\\:\\$expr \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\) in empty\\(\\) is not falsy\\.$#" + count: 2 + path: src/Components/GroupKeyword.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\PartitionDefinition\\:\\:\\$options \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\) in empty\\(\\) is not falsy\\.$#" + message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Components\\\\IndexHint\\:\\:parse\\(\\) never returns PhpMyAdmin\\\\SqlParser\\\\Components\\\\IndexHint so it can be removed from the return type\\.$#" count: 1 - path: src/Components/PartitionDefinition.php + path: src/Components/IndexHint.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\PartitionDefinition\\:\\:\\$subpartitions \\(array\\\\) does not accept array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#" + message: "#^Parameter \\#1 \\$component \\(array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\IndexHint\\) of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\IndexHint\\:\\:build\\(\\) should be contravariant with parameter \\$component \\(mixed\\) of method PhpMyAdmin\\\\SqlParser\\\\Component\\:\\:build\\(\\)$#" count: 1 - path: src/Components/PartitionDefinition.php + path: src/Components/IndexHint.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\PartitionDefinition\\:\\:\\$type \\(string\\) does not accept mixed\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\IndexHint\\:\\:\\$type \\(string\\|null\\) does not accept mixed\\.$#" count: 1 - path: src/Components/PartitionDefinition.php + path: src/Components/IndexHint.php - message: "#^Cannot access property \\$values on array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#" count: 1 - path: src/Components/Reference.php + path: src/Components/IntoKeyword.php - - message: "#^Parameter \\#2 \\$pieces of function implode expects array, array\\\\|string given\\.$#" + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" count: 1 - path: src/Components/Reference.php + path: src/Components/IntoKeyword.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Reference\\:\\:\\$options \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" + message: "#^Only booleans are allowed in &&, int\\<0, 2\\> given on the right side\\.$#" count: 1 - path: src/Components/Reference.php + path: src/Components/IntoKeyword.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Reference\\:\\:\\$table \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" + message: "#^Only booleans are allowed in &&, mixed given on the right side\\.$#" count: 2 - path: src/Components/Reference.php + path: src/Components/IntoKeyword.php - - message: "#^Call to function is_array\\(\\) with PhpMyAdmin\\\\SqlParser\\\\Components\\\\RenameOperation will always evaluate to false\\.$#" + message: "#^Only booleans are allowed in a ternary operator condition, bool\\|null given\\.$#" count: 1 - path: src/Components/RenameOperation.php - - - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\RenameOperation\\:\\:\\$new \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" - count: 2 - path: src/Components/RenameOperation.php + path: src/Components/IntoKeyword.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\RenameOperation\\:\\:\\$new \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\) in empty\\(\\) is not falsy\\.$#" + message: "#^Parameter \\#1 \\$component \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\IntoKeyword\\) of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\IntoKeyword\\:\\:build\\(\\) should be contravariant with parameter \\$component \\(mixed\\) of method PhpMyAdmin\\\\SqlParser\\\\Component\\:\\:build\\(\\)$#" count: 1 - path: src/Components/RenameOperation.php + path: src/Components/IntoKeyword.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\RenameOperation\\:\\:\\$old \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" + message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\:\\:build\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray, PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null given\\.$#" count: 2 - path: src/Components/RenameOperation.php + path: src/Components/IntoKeyword.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\RenameOperation\\:\\:\\$old \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\) in empty\\(\\) is not falsy\\.$#" + message: "#^Parameter \\#3 \\$keyword of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\IntoKeyword\\:\\:parseFileOptions\\(\\) expects string, mixed given\\.$#" count: 2 - path: src/Components/RenameOperation.php + path: src/Components/IntoKeyword.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\SetOperation\\:\\:\\$value \\(string\\) does not accept string\\|null\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\IntoKeyword\\:\\:\\$dest \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|string\\|null\\) does not accept mixed\\.$#" count: 1 - path: src/Components/SetOperation.php + path: src/Components/IntoKeyword.php - - message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Context\\:\\:escape\\(\\) should return array\\\\|string but returns array\\\\|string\\>\\.$#" + message: "#^Call to function array_search\\(\\) requires parameter \\#3 to be set\\.$#" count: 1 - path: src/Context.php + path: src/Components/JoinKeyword.php - - message: "#^Static property PhpMyAdmin\\\\SqlParser\\\\Context\\:\\:\\$KEYWORDS \\(non\\-empty\\-array\\\\) does not accept default value of type array\\{\\}\\.$#" - count: 1 - path: src/Context.php + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 5 + path: src/Components/JoinKeyword.php - - message: "#^Cannot access property \\$type on PhpMyAdmin\\\\SqlParser\\\\Token\\|null\\.$#" - count: 2 - path: src/Lexer.php + message: "#^Parameter \\#1 \\$component \\(array\\\\) of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\JoinKeyword\\:\\:build\\(\\) should be contravariant with parameter \\$component \\(mixed\\) of method PhpMyAdmin\\\\SqlParser\\\\Component\\:\\:build\\(\\)$#" + count: 1 + path: src/Components/JoinKeyword.php - - message: "#^Cannot access property \\$value on PhpMyAdmin\\\\SqlParser\\\\Token\\|null\\.$#" - count: 3 - path: src/Lexer.php + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\JoinKeyword\\:\\:\\$expr \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" + count: 2 + path: src/Components/JoinKeyword.php - - message: "#^Parameter \\#1 \\$msg \\(string\\) of method PhpMyAdmin\\\\SqlParser\\\\Lexer\\:\\:error\\(\\) should be compatible with parameter \\$error \\(Exception\\) of method PhpMyAdmin\\\\SqlParser\\\\Core\\:\\:error\\(\\)$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\JoinKeyword\\:\\:\\$on \\(array\\\\) does not accept array\\\\|null\\.$#" count: 1 - path: src/Lexer.php + path: src/Components/JoinKeyword.php - - message: "#^Parameter \\#1 \\$token of class PhpMyAdmin\\\\SqlParser\\\\Token constructor expects string, null given\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\JoinKeyword\\:\\:\\$type \\(string\\) does not accept string\\|null\\.$#" count: 1 - path: src/Lexer.php + path: src/Components/JoinKeyword.php - - message: "#^Parameter \\#3 \\$flags of class PhpMyAdmin\\\\SqlParser\\\\Token constructor expects int, int\\|null given\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\JoinKeyword\\:\\:\\$using \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\|null\\.$#" count: 1 - path: src/Lexer.php + path: src/Components/JoinKeyword.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Lexer\\:\\:\\$delimiter \\(string\\) does not accept null\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\JoinKeyword\\:\\:\\$using \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\) does not accept array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#" count: 1 - path: src/Lexer.php + path: src/Components/JoinKeyword.php - - message: "#^Cannot access property \\$count on PhpMyAdmin\\\\SqlParser\\\\TokensList\\|null\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\JoinKeyword\\:\\:\\$using \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\) in empty\\(\\) is not falsy\\.$#" count: 1 - path: src/Parser.php + path: src/Components/JoinKeyword.php - - message: "#^Cannot access property \\$idx on PhpMyAdmin\\\\SqlParser\\\\TokensList\\|null\\.$#" - count: 12 - path: src/Parser.php + message: "#^Binary operation \"\\.\" between array\\\\|string and ' ' results in an error\\.$#" + count: 1 + path: src/Components/Key.php - - message: "#^Cannot access property \\$tokens on PhpMyAdmin\\\\SqlParser\\\\TokensList\\|null\\.$#" + message: "#^Binary operation \"\\.\\=\" between '' and array\\\\|string results in an error\\.$#" count: 1 - path: src/Parser.php + path: src/Components/Key.php - - message: "#^Cannot call method getNextOfType\\(\\) on PhpMyAdmin\\\\SqlParser\\\\TokensList\\|null\\.$#" - count: 4 - path: src/Parser.php + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 2 + path: src/Components/Key.php - - message: "#^Parameter \\#1 \\$msg \\(string\\) of method PhpMyAdmin\\\\SqlParser\\\\Parser\\:\\:error\\(\\) should be compatible with parameter \\$error \\(Exception\\) of method PhpMyAdmin\\\\SqlParser\\\\Core\\:\\:error\\(\\)$#" + message: "#^Parameter \\#1 \\$component \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Key\\) of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\Key\\:\\:build\\(\\) should be contravariant with parameter \\$component \\(mixed\\) of method PhpMyAdmin\\\\SqlParser\\\\Component\\:\\:build\\(\\)$#" count: 1 - path: src/Parser.php + path: src/Components/Key.php - - message: "#^Parameter \\#2 \\$list of method PhpMyAdmin\\\\SqlParser\\\\Statement\\:\\:validateClauseOrder\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\TokensList, PhpMyAdmin\\\\SqlParser\\\\TokensList\\|null given\\.$#" - count: 3 - path: src/Parser.php + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Key\\:\\:\\$columns \\(array\\\\) does not accept non\\-empty\\-array\\\\>\\.$#" + count: 1 + path: src/Components/Key.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\SelectStatement\\:\\:\\$union \\(array\\\\) does not accept array\\\\|PhpMyAdmin\\\\SqlParser\\\\Statements\\\\SelectStatement\\>\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Key\\:\\:\\$name \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Parser.php + path: src/Components/Key.php - - message: "#^Offset 'class' does not exist on array\\{class\\?\\: string, field\\?\\: non\\-empty\\-string, options\\?\\: array\\\\}\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Key\\:\\:\\$name \\(string\\) does not accept string\\|null\\.$#" count: 1 - path: src/Statement.php + path: src/Components/Key.php - - message: "#^Offset 'field' does not exist on array\\{class\\?\\: string, field\\?\\: non\\-empty\\-string, options\\?\\: array\\\\}\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Key\\:\\:\\$type \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Statement.php + path: src/Components/Key.php - - message: "#^Strict comparison using \\=\\=\\= between PhpMyAdmin\\\\SqlParser\\\\Component\\|string and null will always evaluate to false\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Key\\:\\:\\$type \\(string\\) does not accept string\\|null\\.$#" count: 1 - path: src/Statement.php + path: src/Components/Key.php - - message: "#^Strict comparison using \\=\\=\\= between int\\<1, max\\> and 0 will always evaluate to false\\.$#" + message: "#^Only booleans are allowed in &&, int\\<0, 16\\> given on the right side\\.$#" count: 1 - path: src/Statement.php + path: src/Components/Limit.php - - message: "#^Argument of an invalid type array\\\\|null supplied for foreach, only iterables are supported\\.$#" + message: "#^Only booleans are allowed in &&, int\\<0, 2\\> given on the right side\\.$#" count: 1 - path: src/Statements/AlterStatement.php + path: src/Components/Limit.php - - message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\:\\:build\\(\\) expects array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression, PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null given\\.$#" + message: "#^Parameter \\#1 \\$component \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Limit\\) of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\Limit\\:\\:build\\(\\) should be contravariant with parameter \\$component \\(mixed\\) of method PhpMyAdmin\\\\SqlParser\\\\Component\\:\\:build\\(\\)$#" count: 1 - path: src/Statements/AlterStatement.php + path: src/Components/Limit.php - - message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\:\\:build\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray, PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null given\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Limit\\:\\:\\$offset \\(int\\|string\\) does not accept mixed\\.$#" count: 1 - path: src/Statements/AlterStatement.php + path: src/Components/Limit.php - - message: "#^Cannot access property \\$name on PhpMyAdmin\\\\SqlParser\\\\Components\\\\FunctionCall\\|null\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Limit\\:\\:\\$rowCount \\(int\\|string\\) does not accept mixed\\.$#" count: 1 - path: src/Statements/CallStatement.php + path: src/Components/Limit.php - - message: "#^Cannot access property \\$parameters on PhpMyAdmin\\\\SqlParser\\\\Components\\\\FunctionCall\\|null\\.$#" - count: 2 - path: src/Statements/CallStatement.php + message: "#^Parameter \\#1 \\$component \\(array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\LockExpression\\) of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\LockExpression\\:\\:build\\(\\) should be contravariant with parameter \\$component \\(mixed\\) of method PhpMyAdmin\\\\SqlParser\\\\Component\\:\\:build\\(\\)$#" + count: 1 + path: src/Components/LockExpression.php - - message: "#^Cannot access property \\$value on PhpMyAdmin\\\\SqlParser\\\\Token\\|null\\.$#" - count: 2 - path: src/Statements/CreateStatement.php + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\LockExpression\\:\\:\\$table \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" + count: 1 + path: src/Components/LockExpression.php - - message: "#^Cannot assign new offset to array\\\\|string\\.$#" - count: 4 - path: src/Statements/CreateStatement.php + message: "#^Cannot access offset 'equals' on mixed\\.$#" + count: 1 + path: src/Components/OptionsArray.php - - message: "#^Cannot call method has\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" - count: 8 - path: src/Statements/CreateStatement.php + message: "#^Cannot access offset 'expr' on mixed\\.$#" + count: 2 + path: src/Components/OptionsArray.php - - message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\DataType\\:\\:build\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Components\\\\DataType, PhpMyAdmin\\\\SqlParser\\\\Components\\\\DataType\\|null given\\.$#" + message: "#^Cannot access offset 'name' on mixed\\.$#" count: 1 - path: src/Statements/CreateStatement.php - - - - message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\:\\:build\\(\\) expects array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression, PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null given\\.$#" - count: 10 - path: src/Statements/CreateStatement.php + path: src/Components/OptionsArray.php - - message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\:\\:build\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray, PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null given\\.$#" - count: 14 - path: src/Statements/CreateStatement.php + message: "#^Cannot access offset 'value' on mixed\\.$#" + count: 2 + path: src/Components/OptionsArray.php - - message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\ParameterDefinition\\:\\:build\\(\\) expects array\\, array\\\\|null given\\.$#" - count: 1 - path: src/Statements/CreateStatement.php + message: "#^Cannot access offset 1 on mixed\\.$#" + count: 2 + path: src/Components/OptionsArray.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\CreateStatement\\:\\:\\$fields \\(array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\|null\\) does not accept array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#" + message: "#^Cannot access offset 2 on mixed\\.$#" count: 1 - path: src/Statements/CreateStatement.php + path: src/Components/OptionsArray.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\CreateStatement\\:\\:\\$partitions \\(array\\\\|null\\) does not accept array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#" - count: 1 - path: src/Statements/CreateStatement.php + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 6 + path: src/Components/OptionsArray.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\CreateStatement\\:\\:\\$partitionsNum \\(int\\|null\\) does not accept mixed\\.$#" + message: "#^Only booleans are allowed in &&, mixed given on the right side\\.$#" count: 1 - path: src/Statements/CreateStatement.php + path: src/Components/OptionsArray.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\CreateStatement\\:\\:\\$subpartitionsNum \\(int\\|null\\) does not accept mixed\\.$#" - count: 1 - path: src/Statements/CreateStatement.php + message: "#^Only booleans are allowed in a negated boolean, int\\<\\-1, 1\\> given\\.$#" + count: 4 + path: src/Components/OptionsArray.php - - message: "#^Strict comparison using \\=\\=\\= between PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression and '' will always evaluate to false\\.$#" + message: "#^Parameter \\#1 \\$component \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\) of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\:\\:build\\(\\) should be contravariant with parameter \\$component \\(mixed\\) of method PhpMyAdmin\\\\SqlParser\\\\Component\\:\\:build\\(\\)$#" count: 1 - path: src/Statements/CreateStatement.php + path: src/Components/OptionsArray.php - - message: "#^Argument of an invalid type array\\\\|null supplied for foreach, only iterables are supported\\.$#" + message: "#^Parameter \\#2 \\$str2 of function strcasecmp expects string, mixed given\\.$#" + count: 4 + path: src/Components/OptionsArray.php + + - + message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + count: 2 + path: src/Components/OptionsArray.php + + - + message: "#^Parameter \\#3 \\$options of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\:\\:parse\\(\\) expects array\\, mixed given\\.$#" count: 1 - path: src/Statements/DeleteStatement.php + path: src/Components/OptionsArray.php - - message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\ExpressionArray\\:\\:build\\(\\) expects array\\, array\\ given\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\:\\:\\$options \\(array\\\\) does not accept array\\.$#" + count: 2 + path: src/Components/OptionsArray.php + + - + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\:\\:\\$options \\(array\\\\) does not accept array\\\\.$#" + count: 8 + path: src/Components/OptionsArray.php + + - + message: "#^Right side of && is always true\\.$#" count: 1 - path: src/Statements/DeleteStatement.php + path: src/Components/OptionsArray.php - - message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\:\\:build\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray, PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null given\\.$#" + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 2 + path: src/Components/OrderKeyword.php + + - + message: "#^Parameter \\#1 \\$component \\(array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\OrderKeyword\\) of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\OrderKeyword\\:\\:build\\(\\) should be contravariant with parameter \\$component \\(mixed\\) of method PhpMyAdmin\\\\SqlParser\\\\Component\\:\\:build\\(\\)$#" count: 1 - path: src/Statements/DeleteStatement.php + path: src/Components/OrderKeyword.php - - message: "#^Parameter \\#1 \\$haystack of function stripos expects string, mixed given\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\OrderKeyword\\:\\:\\$expr \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" + count: 2 + path: src/Components/OrderKeyword.php + + - + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\OrderKeyword\\:\\:\\$expr \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\) in empty\\(\\) is not falsy\\.$#" + count: 2 + path: src/Components/OrderKeyword.php + + - + message: "#^Call to function is_array\\(\\) with array\\ will always evaluate to true\\.$#" count: 1 - path: src/Statements/DeleteStatement.php + path: src/Components/ParameterDefinition.php - - message: "#^Binary operation \"\\.\" between ' ' and array\\\\|string results in an error\\.$#" + message: "#^Parameter \\#1 \\$component \\(array\\\\) of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\ParameterDefinition\\:\\:build\\(\\) should be contravariant with parameter \\$component \\(mixed\\) of method PhpMyAdmin\\\\SqlParser\\\\Component\\:\\:build\\(\\)$#" count: 1 - path: src/Statements/ExplainStatement.php + path: src/Components/ParameterDefinition.php - - message: "#^Binary operation \"\\.\" between array\\\\|string and '\\.' results in an error\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\ParameterDefinition\\:\\:\\$inOut \\(string\\) does not accept string\\|null\\.$#" count: 1 - path: src/Statements/ExplainStatement.php + path: src/Components/ParameterDefinition.php - - message: "#^Binary operation \"\\.\\=\" between string and array\\\\|string results in an error\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\ParameterDefinition\\:\\:\\$name \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Statements/ExplainStatement.php + path: src/Components/ParameterDefinition.php - - message: "#^Cannot access property \\$keyword on PhpMyAdmin\\\\SqlParser\\\\Token\\|null\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\ParameterDefinition\\:\\:\\$name \\(string\\) does not accept string\\|null\\.$#" count: 1 - path: src/Statements/ExplainStatement.php + path: src/Components/ParameterDefinition.php - - message: "#^Cannot access property \\$value on PhpMyAdmin\\\\SqlParser\\\\Token\\|null\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\ParameterDefinition\\:\\:\\$name \\(string\\) in isset\\(\\) is not nullable\\.$#" count: 1 - path: src/Statements/ExplainStatement.php + path: src/Components/ParameterDefinition.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\ExplainStatement\\:\\:\\$connectionId \\(int\\|null\\) does not accept mixed\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\ParameterDefinition\\:\\:\\$type \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\DataType\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\DataType\\|null\\.$#" + count: 2 + path: src/Components/ParameterDefinition.php + + - + message: "#^Unreachable statement \\- code above always terminates\\.$#" count: 1 - path: src/Statements/ExplainStatement.php + path: src/Components/ParameterDefinition.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\ExplainStatement\\:\\:\\$explainedColumn \\(string\\|null\\) does not accept mixed\\.$#" + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 4 + path: src/Components/PartitionDefinition.php + + - + message: "#^Parameter \\#1 \\$component \\(array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\PartitionDefinition\\) of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\PartitionDefinition\\:\\:build\\(\\) should be contravariant with parameter \\$component \\(mixed\\) of method PhpMyAdmin\\\\SqlParser\\\\Component\\:\\:build\\(\\)$#" count: 1 - path: src/Statements/ExplainStatement.php + path: src/Components/PartitionDefinition.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\ExplainStatement\\:\\:\\$explainedDatabase \\(string\\|null\\) does not accept mixed\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\PartitionDefinition\\:\\:\\$expr \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|string\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" count: 1 - path: src/Statements/ExplainStatement.php + path: src/Components/PartitionDefinition.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\ExplainStatement\\:\\:\\$explainedTable \\(string\\|null\\) does not accept mixed\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\PartitionDefinition\\:\\:\\$name \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Statements/ExplainStatement.php + path: src/Components/PartitionDefinition.php - - message: "#^Cannot access property \\$keyword on PhpMyAdmin\\\\SqlParser\\\\Token\\|null\\.$#" - count: 2 - path: src/Statements/LoadStatement.php + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\PartitionDefinition\\:\\:\\$options \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\) in empty\\(\\) is not falsy\\.$#" + count: 1 + path: src/Components/PartitionDefinition.php - - message: "#^Cannot access property \\$token on PhpMyAdmin\\\\SqlParser\\\\Token\\|null\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\PartitionDefinition\\:\\:\\$subpartitions \\(array\\\\) does not accept array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#" count: 1 - path: src/Statements/LoadStatement.php + path: src/Components/PartitionDefinition.php - - message: "#^Cannot access property \\$type on PhpMyAdmin\\\\SqlParser\\\\Token\\|null\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\PartitionDefinition\\:\\:\\$type \\(string\\) does not accept mixed\\.$#" count: 1 - path: src/Statements/LoadStatement.php + path: src/Components/PartitionDefinition.php - - message: "#^Parameter \\#3 \\$keyword of method PhpMyAdmin\\\\SqlParser\\\\Statements\\\\LoadStatement\\:\\:parseFileOptions\\(\\) expects string, mixed given\\.$#" + message: "#^Cannot access property \\$values on array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#" count: 1 - path: src/Statements/LoadStatement.php + path: src/Components/Reference.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\LoadStatement\\:\\:\\$partition \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\|null\\) does not accept array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#" + message: "#^Parameter \\#1 \\$component \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Reference\\) of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\Reference\\:\\:build\\(\\) should be contravariant with parameter \\$component \\(mixed\\) of method PhpMyAdmin\\\\SqlParser\\\\Component\\:\\:build\\(\\)$#" count: 1 - path: src/Statements/LoadStatement.php + path: src/Components/Reference.php - - message: "#^Cannot call method merge\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" + message: "#^Parameter \\#2 \\$pieces of function implode expects array, array\\\\|string given\\.$#" count: 1 - path: src/Statements/MaintenanceStatement.php + path: src/Components/Reference.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\PurgeStatement\\:\\:\\$end_expr \\(string\\|null\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Reference\\:\\:\\$options \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" count: 1 - path: src/Statements/PurgeStatement.php + path: src/Components/Reference.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\PurgeStatement\\:\\:\\$end_option \\(string\\|null\\) does not accept mixed\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Reference\\:\\:\\$table \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" + count: 2 + path: src/Components/Reference.php + + - + message: "#^Call to function is_array\\(\\) with PhpMyAdmin\\\\SqlParser\\\\Components\\\\RenameOperation will always evaluate to false\\.$#" count: 1 - path: src/Statements/PurgeStatement.php + path: src/Components/RenameOperation.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\PurgeStatement\\:\\:\\$log_type \\(string\\|null\\) does not accept mixed\\.$#" + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 3 + path: src/Components/RenameOperation.php + + - + message: "#^Parameter \\#1 \\$component \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\RenameOperation\\) of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\RenameOperation\\:\\:build\\(\\) should be contravariant with parameter \\$component \\(mixed\\) of method PhpMyAdmin\\\\SqlParser\\\\Component\\:\\:build\\(\\)$#" count: 1 - path: src/Statements/PurgeStatement.php + path: src/Components/RenameOperation.php - - message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\RenameOperation\\:\\:build\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Components\\\\RenameOperation, array\\\\|null given\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\RenameOperation\\:\\:\\$new \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" + count: 2 + path: src/Components/RenameOperation.php + + - + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\RenameOperation\\:\\:\\$new \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\) in empty\\(\\) is not falsy\\.$#" count: 1 - path: src/Statements/RenameStatement.php + path: src/Components/RenameOperation.php - - message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\Array2d\\:\\:build\\(\\) expects array\\, array\\ given\\.$#" + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\RenameOperation\\:\\:\\$old \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" + count: 2 + path: src/Components/RenameOperation.php + + - + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\RenameOperation\\:\\:\\$old \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\) in empty\\(\\) is not falsy\\.$#" + count: 2 + path: src/Components/RenameOperation.php + + - + message: "#^Only booleans are allowed in &&, int\\<0, 2\\> given on the right side\\.$#" count: 1 - path: src/Statements/ReplaceStatement.php + path: src/Components/SetOperation.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\ReplaceStatement\\:\\:\\$values \\(array\\\\|null\\) does not accept array\\\\.$#" + message: "#^Parameter \\#1 \\$component \\(array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\SetOperation\\) of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\SetOperation\\:\\:build\\(\\) should be contravariant with parameter \\$component \\(mixed\\) of method PhpMyAdmin\\\\SqlParser\\\\Component\\:\\:build\\(\\)$#" count: 1 - path: src/Statements/ReplaceStatement.php + path: src/Components/SetOperation.php - - message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\:\\:build\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray, PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null given\\.$#" - count: 2 - path: src/Statements/SetStatement.php + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\SetOperation\\:\\:\\$value \\(string\\) does not accept string\\|null\\.$#" + count: 1 + path: src/Components/SetOperation.php - - message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\SetOperation\\:\\:build\\(\\) expects array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\SetOperation, array\\\\|null given\\.$#" + message: "#^Parameter \\#1 \\$component \\(array\\\\>\\) of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\UnionKeyword\\:\\:build\\(\\) should be contravariant with parameter \\$component \\(mixed\\) of method PhpMyAdmin\\\\SqlParser\\\\Component\\:\\:build\\(\\)$#" count: 1 - path: src/Statements/SetStatement.php + path: src/Components/UnionKeyword.php - - message: "#^Argument of an invalid type array\\\\|null supplied for foreach, only iterables are supported\\.$#" + message: "#^Instanceof between PhpMyAdmin\\\\SqlParser\\\\Components\\\\WithKeyword and PhpMyAdmin\\\\SqlParser\\\\Components\\\\WithKeyword will always evaluate to true\\.$#" count: 1 - path: src/Statements/TransactionStatement.php + path: src/Components/WithKeyword.php - - message: "#^Cannot call method has\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" - count: 4 - path: src/Statements/TransactionStatement.php + message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" + count: 1 + path: src/Components/WithKeyword.php - - message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\:\\:build\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray, PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null given\\.$#" + message: "#^Parameter \\#1 \\$component \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\WithKeyword\\) of method PhpMyAdmin\\\\SqlParser\\\\Components\\\\WithKeyword\\:\\:build\\(\\) should be contravariant with parameter \\$component \\(mixed\\) of method PhpMyAdmin\\\\SqlParser\\\\Component\\:\\:build\\(\\)$#" count: 1 - path: src/Statements/TransactionStatement.php + path: src/Components/WithKeyword.php - - message: "#^Parameter \\#1 \\$name of class PhpMyAdmin\\\\SqlParser\\\\Components\\\\WithKeyword constructor expects string, mixed given\\.$#" + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 2 + path: src/Context.php + + - + message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Context\\:\\:escape\\(\\) should return array\\\\|string but returns array\\\\|string\\>\\.$#" count: 1 - path: src/Statements/WithStatement.php + path: src/Context.php - - message: "#^Argument of an invalid type array\\\\|false supplied for foreach, only iterables are supported\\.$#" + message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Context\\:\\:getModeFromString\\(\\) should return int but returns mixed\\.$#" + count: 30 + path: src/Context.php + + - + message: "#^Only booleans are allowed in &&, int\\<0, 1073741824\\> given on the left side\\.$#" count: 1 - path: src/Tools/ContextGenerator.php + path: src/Context.php - - message: "#^Offset 1 does not exist on array\\{0\\?\\: string, 1\\?\\: non\\-empty\\-string, 2\\?\\: numeric\\-string\\}\\.$#" + message: "#^Only booleans are allowed in &&, mixed given on the right side\\.$#" count: 1 - path: src/Tools/ContextGenerator.php + path: src/Context.php - - message: "#^Offset 2 does not exist on array\\{0\\?\\: string, 1\\?\\: non\\-empty\\-string, 2\\?\\: numeric\\-string\\}\\.$#" + message: "#^Only booleans are allowed in a negated boolean, int\\<0, 2\\> given\\.$#" count: 1 - path: src/Tools/ContextGenerator.php + path: src/Context.php - - message: "#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, array\\\\|false given\\.$#" + message: "#^Only booleans are allowed in a negated boolean, int\\|null given\\.$#" count: 1 - path: src/Tools/ContextGenerator.php + path: src/Context.php - - message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Tools\\\\CustomJsonSerializer\\:\\:extractObjectData\\(\\) has parameter \\$ref with generic class ReflectionClass but does not specify its types\\: T$#" + message: "#^Only booleans are allowed in an if condition, int\\<0, 2\\> given\\.$#" count: 1 - path: src/Tools/CustomJsonSerializer.php + path: src/Context.php - - message: "#^Argument of an invalid type array\\\\|false supplied for foreach, only iterables are supported\\.$#" + message: "#^Static property PhpMyAdmin\\\\SqlParser\\\\Context\\:\\:\\$KEYWORDS \\(non\\-empty\\-array\\\\) does not accept default value of type array\\{\\}\\.$#" count: 1 - path: src/Tools/TestGenerator.php + path: src/Context.php - - message: "#^Parameter \\#1 \\$filename of function is_dir expects string, string\\|null given\\.$#" + message: "#^Static property PhpMyAdmin\\\\SqlParser\\\\Context\\:\\:\\$KEYWORDS \\(non\\-empty\\-array\\\\) does not accept mixed\\.$#" count: 1 - path: src/Tools/TestGenerator.php + path: src/Context.php - - message: "#^Parameter \\#1 \\$pathname of function mkdir expects string, string\\|null given\\.$#" + message: "#^Cannot access property \\$flags on mixed\\.$#" + count: 4 + path: src/Lexer.php + + - + message: "#^Cannot access property \\$position on mixed\\.$#" count: 1 - path: src/Tools/TestGenerator.php + path: src/Lexer.php + + - + message: "#^Cannot access property \\$token on mixed\\.$#" + count: 3 + path: src/Lexer.php + + - + message: "#^Cannot access property \\$type on PhpMyAdmin\\\\SqlParser\\\\Token\\|null\\.$#" + count: 2 + path: src/Lexer.php + + - + message: "#^Cannot access property \\$type on mixed\\.$#" + count: 8 + path: src/Lexer.php + + - + message: "#^Cannot access property \\$value on PhpMyAdmin\\\\SqlParser\\\\Token\\|null\\.$#" + count: 3 + path: src/Lexer.php + + - + message: "#^Cannot access property \\$value on mixed\\.$#" + count: 5 + path: src/Lexer.php + + - + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 2 + path: src/Lexer.php + + - + message: "#^Only booleans are allowed in &&, int\\<0, 1\\> given on the right side\\.$#" + count: 1 + path: src/Lexer.php + + - + message: "#^Only booleans are allowed in &&, int\\<0, 2\\> given on the right side\\.$#" + count: 1 + path: src/Lexer.php + + - + message: "#^Only booleans are allowed in a negated boolean, int\\<0, 16\\> given\\.$#" + count: 1 + path: src/Lexer.php + + - + message: "#^Only booleans are allowed in a negated boolean, int\\|null given\\.$#" + count: 4 + path: src/Lexer.php + + - + message: "#^Only booleans are allowed in an elseif condition, int\\<0, 16\\> given\\.$#" + count: 1 + path: src/Lexer.php + + - + message: "#^Only booleans are allowed in an if condition, int\\<0, 1\\> given\\.$#" + count: 1 + path: src/Lexer.php + + - + message: "#^Only booleans are allowed in an if condition, int\\|null given\\.$#" + count: 3 + path: src/Lexer.php + + - + message: "#^Parameter \\#1 \\$msg \\(string\\) of method PhpMyAdmin\\\\SqlParser\\\\Lexer\\:\\:error\\(\\) should be compatible with parameter \\$error \\(Exception\\) of method PhpMyAdmin\\\\SqlParser\\\\Core\\:\\:error\\(\\)$#" + count: 1 + path: src/Lexer.php + + - + message: "#^Parameter \\#1 \\$str of static method PhpMyAdmin\\\\SqlParser\\\\Context\\:\\:isComment\\(\\) expects string, mixed given\\.$#" + count: 2 + path: src/Lexer.php + + - + message: "#^Parameter \\#1 \\$str of static method PhpMyAdmin\\\\SqlParser\\\\Context\\:\\:isSeparator\\(\\) expects string, mixed given\\.$#" + count: 4 + path: src/Lexer.php + + - + message: "#^Parameter \\#1 \\$str of static method PhpMyAdmin\\\\SqlParser\\\\Context\\:\\:isString\\(\\) expects string, mixed given\\.$#" + count: 1 + path: src/Lexer.php + + - + message: "#^Parameter \\#1 \\$str of static method PhpMyAdmin\\\\SqlParser\\\\Context\\:\\:isSymbol\\(\\) expects string, mixed given\\.$#" + count: 1 + path: src/Lexer.php + + - + message: "#^Parameter \\#1 \\$str of static method PhpMyAdmin\\\\SqlParser\\\\Context\\:\\:isWhitespace\\(\\) expects string, mixed given\\.$#" + count: 5 + path: src/Lexer.php + + - + message: "#^Parameter \\#1 \\$token of class PhpMyAdmin\\\\SqlParser\\\\Token constructor expects string, mixed given\\.$#" + count: 7 + path: src/Lexer.php + + - + message: "#^Parameter \\#1 \\$token of class PhpMyAdmin\\\\SqlParser\\\\Token constructor expects string, null given\\.$#" + count: 1 + path: src/Lexer.php + + - + message: "#^Parameter \\#2 \\$str of method PhpMyAdmin\\\\SqlParser\\\\Lexer\\:\\:error\\(\\) expects string, mixed given\\.$#" + count: 2 + path: src/Lexer.php + + - + message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + count: 1 + path: src/Lexer.php + + - + message: "#^Parameter \\#3 \\$flags of class PhpMyAdmin\\\\SqlParser\\\\Token constructor expects int, int\\|null given\\.$#" + count: 1 + path: src/Lexer.php + + - + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Lexer\\:\\:\\$delimiter \\(string\\) does not accept null\\.$#" + count: 1 + path: src/Lexer.php + + - + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\TokensList\\:\\:\\$tokens \\(array\\\\) does not accept array\\.$#" + count: 1 + path: src/Lexer.php + + - + message: "#^Variable method call on \\$this\\(PhpMyAdmin\\\\SqlParser\\\\Lexer\\)\\.$#" + count: 1 + path: src/Lexer.php + + - + message: "#^Cannot access property \\$count on PhpMyAdmin\\\\SqlParser\\\\TokensList\\|null\\.$#" + count: 1 + path: src/Parser.php + + - + message: "#^Cannot access property \\$idx on PhpMyAdmin\\\\SqlParser\\\\TokensList\\|null\\.$#" + count: 12 + path: src/Parser.php + + - + message: "#^Cannot access property \\$tokens on PhpMyAdmin\\\\SqlParser\\\\TokensList\\|null\\.$#" + count: 1 + path: src/Parser.php + + - + message: "#^Cannot call method getNextOfType\\(\\) on PhpMyAdmin\\\\SqlParser\\\\TokensList\\|null\\.$#" + count: 4 + path: src/Parser.php + + - + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 2 + path: src/Parser.php + + - + message: "#^Only booleans are allowed in &&, PhpMyAdmin\\\\SqlParser\\\\Token\\|null given on the left side\\.$#" + count: 2 + path: src/Parser.php + + - + message: "#^Parameter \\#1 \\$msg \\(string\\) of method PhpMyAdmin\\\\SqlParser\\\\Parser\\:\\:error\\(\\) should be compatible with parameter \\$error \\(Exception\\) of method PhpMyAdmin\\\\SqlParser\\\\Core\\:\\:error\\(\\)$#" + count: 1 + path: src/Parser.php + + - + message: "#^Parameter \\#2 \\$list of method PhpMyAdmin\\\\SqlParser\\\\Statement\\:\\:validateClauseOrder\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\TokensList, PhpMyAdmin\\\\SqlParser\\\\TokensList\\|null given\\.$#" + count: 3 + path: src/Parser.php + + - + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\SelectStatement\\:\\:\\$union \\(array\\\\) does not accept array\\\\|PhpMyAdmin\\\\SqlParser\\\\Statements\\\\SelectStatement\\>\\.$#" + count: 1 + path: src/Parser.php + + - + message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" + count: 1 + path: src/Statement.php + + - + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 13 + path: src/Statement.php + + - + message: "#^Offset 'class' does not exist on array\\{class\\?\\: string, field\\?\\: non\\-empty\\-string, options\\?\\: array\\\\}\\.$#" + count: 1 + path: src/Statement.php + + - + message: "#^Offset 'field' does not exist on array\\{class\\?\\: string, field\\?\\: non\\-empty\\-string, options\\?\\: array\\\\}\\.$#" + count: 1 + path: src/Statement.php + + - + message: "#^Only booleans are allowed in &&, PhpMyAdmin\\\\SqlParser\\\\Token\\|null given on the left side\\.$#" + count: 1 + path: src/Statement.php + + - + message: "#^Only booleans are allowed in &&, PhpMyAdmin\\\\SqlParser\\\\Token\\|null given on the right side\\.$#" + count: 2 + path: src/Statement.php + + - + message: "#^Only booleans are allowed in &&, int\\<0, max\\>\\|false given on the right side\\.$#" + count: 2 + path: src/Statement.php + + - + message: "#^Only booleans are allowed in a negated boolean, int given\\.$#" + count: 1 + path: src/Statement.php + + - + message: "#^Only booleans are allowed in a negated boolean, int\\<0, max\\>\\|false given\\.$#" + count: 1 + path: src/Statement.php + + - + message: "#^Only booleans are allowed in an if condition, int\\<0, 1\\> given\\.$#" + count: 1 + path: src/Statement.php + + - + message: "#^Only booleans are allowed in an if condition, int\\<0, 2\\> given\\.$#" + count: 1 + path: src/Statement.php + + - + message: "#^Strict comparison using \\!\\=\\= between PhpMyAdmin\\\\SqlParser\\\\Component\\|string and null will always evaluate to true\\.$#" + count: 1 + path: src/Statement.php + + - + message: "#^Strict comparison using \\=\\=\\= between PhpMyAdmin\\\\SqlParser\\\\Component\\|string and null will always evaluate to false\\.$#" + count: 1 + path: src/Statement.php + + - + message: "#^Strict comparison using \\=\\=\\= between int\\<1, max\\> and 0 will always evaluate to false\\.$#" + count: 1 + path: src/Statement.php + + - + message: "#^Variable property access on \\$this\\(PhpMyAdmin\\\\SqlParser\\\\Statement\\)\\.$#" + count: 3 + path: src/Statement.php + + - + message: "#^Argument of an invalid type array\\\\|null supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: src/Statements/AlterStatement.php + + - + message: "#^Only booleans are allowed in an elseif condition, mixed given\\.$#" + count: 4 + path: src/Statements/AlterStatement.php + + - + message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" + count: 1 + path: src/Statements/AlterStatement.php + + - + message: "#^Only booleans are allowed in \\|\\|, mixed given on the left side\\.$#" + count: 1 + path: src/Statements/AlterStatement.php + + - + message: "#^Only booleans are allowed in \\|\\|, mixed given on the right side\\.$#" + count: 1 + path: src/Statements/AlterStatement.php + + - + message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\:\\:build\\(\\) expects array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression, PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null given\\.$#" + count: 1 + path: src/Statements/AlterStatement.php + + - + message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\:\\:build\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray, PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null given\\.$#" + count: 1 + path: src/Statements/AlterStatement.php + + - + message: "#^Cannot access property \\$name on PhpMyAdmin\\\\SqlParser\\\\Components\\\\FunctionCall\\|null\\.$#" + count: 1 + path: src/Statements/CallStatement.php + + - + message: "#^Cannot access property \\$parameters on PhpMyAdmin\\\\SqlParser\\\\Components\\\\FunctionCall\\|null\\.$#" + count: 2 + path: src/Statements/CallStatement.php + + - + message: "#^Only booleans are allowed in a ternary operator condition, PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\|null given\\.$#" + count: 1 + path: src/Statements/CallStatement.php + + - + message: "#^Cannot access property \\$value on PhpMyAdmin\\\\SqlParser\\\\Token\\|null\\.$#" + count: 2 + path: src/Statements/CreateStatement.php + + - + message: "#^Cannot assign new offset to array\\\\|string\\.$#" + count: 4 + path: src/Statements/CreateStatement.php + + - + message: "#^Cannot call method has\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" + count: 8 + path: src/Statements/CreateStatement.php + + - + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 10 + path: src/Statements/CreateStatement.php + + - + message: "#^Only booleans are allowed in an elseif condition, mixed given\\.$#" + count: 5 + path: src/Statements/CreateStatement.php + + - + message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" + count: 3 + path: src/Statements/CreateStatement.php + + - + message: "#^Only booleans are allowed in \\|\\|, mixed given on the left side\\.$#" + count: 4 + path: src/Statements/CreateStatement.php + + - + message: "#^Only booleans are allowed in \\|\\|, mixed given on the right side\\.$#" + count: 4 + path: src/Statements/CreateStatement.php + + - + message: "#^Only numeric types are allowed in pre\\-decrement, bool\\|int given\\.$#" + count: 1 + path: src/Statements/CreateStatement.php + + - + message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\DataType\\:\\:build\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Components\\\\DataType, PhpMyAdmin\\\\SqlParser\\\\Components\\\\DataType\\|null given\\.$#" + count: 1 + path: src/Statements/CreateStatement.php + + - + message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\:\\:build\\(\\) expects array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression, PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null given\\.$#" + count: 10 + path: src/Statements/CreateStatement.php + + - + message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\:\\:build\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray, PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null given\\.$#" + count: 14 + path: src/Statements/CreateStatement.php + + - + message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\ParameterDefinition\\:\\:build\\(\\) expects array\\, array\\\\|null given\\.$#" + count: 1 + path: src/Statements/CreateStatement.php + + - + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\CreateStatement\\:\\:\\$body \\(array\\\\|string\\) does not accept mixed\\.$#" + count: 4 + path: src/Statements/CreateStatement.php + + - + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\CreateStatement\\:\\:\\$fields \\(array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\|null\\) does not accept array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#" + count: 1 + path: src/Statements/CreateStatement.php + + - + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\CreateStatement\\:\\:\\$partitions \\(array\\\\|null\\) does not accept array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#" + count: 1 + path: src/Statements/CreateStatement.php + + - + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\CreateStatement\\:\\:\\$partitionsNum \\(int\\|null\\) does not accept mixed\\.$#" + count: 1 + path: src/Statements/CreateStatement.php + + - + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\CreateStatement\\:\\:\\$subpartitionsNum \\(int\\|null\\) does not accept mixed\\.$#" + count: 1 + path: src/Statements/CreateStatement.php + + - + message: "#^Strict comparison using \\=\\=\\= between PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression and '' will always evaluate to false\\.$#" + count: 1 + path: src/Statements/CreateStatement.php + + - + message: "#^Variable property access on \\$this\\(PhpMyAdmin\\\\SqlParser\\\\Statements\\\\CreateStatement\\)\\.$#" + count: 3 + path: src/Statements/CreateStatement.php + + - + message: "#^Argument of an invalid type array\\\\|null supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: src/Statements/DeleteStatement.php + + - + message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\ExpressionArray\\:\\:build\\(\\) expects array\\, array\\ given\\.$#" + count: 1 + path: src/Statements/DeleteStatement.php + + - + message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\:\\:build\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray, PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null given\\.$#" + count: 1 + path: src/Statements/DeleteStatement.php + + - + message: "#^Parameter \\#1 \\$haystack of function stripos expects string, mixed given\\.$#" + count: 1 + path: src/Statements/DeleteStatement.php + + - + message: "#^Binary operation \"\\.\" between ' ' and array\\\\|string results in an error\\.$#" + count: 1 + path: src/Statements/ExplainStatement.php + + - + message: "#^Binary operation \"\\.\" between array\\\\|string and '\\.' results in an error\\.$#" + count: 1 + path: src/Statements/ExplainStatement.php + + - + message: "#^Binary operation \"\\.\" between mixed and array\\\\|string results in an error\\.$#" + count: 1 + path: src/Statements/ExplainStatement.php + + - + message: "#^Binary operation \"\\.\\=\" between string and array\\\\|string results in an error\\.$#" + count: 1 + path: src/Statements/ExplainStatement.php + + - + message: "#^Cannot access property \\$keyword on PhpMyAdmin\\\\SqlParser\\\\Token\\|null\\.$#" + count: 1 + path: src/Statements/ExplainStatement.php + + - + message: "#^Cannot access property \\$value on PhpMyAdmin\\\\SqlParser\\\\Token\\|null\\.$#" + count: 1 + path: src/Statements/ExplainStatement.php + + - + message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Statements\\\\ExplainStatement\\:\\:build\\(\\) should return string but returns mixed\\.$#" + count: 1 + path: src/Statements/ExplainStatement.php + + - + message: "#^Only booleans are allowed in &&, PhpMyAdmin\\\\SqlParser\\\\Token\\|null given on the left side\\.$#" + count: 1 + path: src/Statements/ExplainStatement.php + + - + message: "#^Only booleans are allowed in an elseif condition, int\\|null given\\.$#" + count: 1 + path: src/Statements/ExplainStatement.php + + - + message: "#^Only booleans are allowed in an if condition, PhpMyAdmin\\\\SqlParser\\\\Parser\\|null given\\.$#" + count: 1 + path: src/Statements/ExplainStatement.php + + - + message: "#^Only booleans are allowed in an if condition, int\\<0, max\\> given\\.$#" + count: 2 + path: src/Statements/ExplainStatement.php + + - + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\ExplainStatement\\:\\:\\$connectionId \\(int\\|null\\) does not accept mixed\\.$#" + count: 1 + path: src/Statements/ExplainStatement.php + + - + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\ExplainStatement\\:\\:\\$explainedColumn \\(string\\|null\\) does not accept mixed\\.$#" + count: 1 + path: src/Statements/ExplainStatement.php + + - + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\ExplainStatement\\:\\:\\$explainedDatabase \\(string\\|null\\) does not accept mixed\\.$#" + count: 1 + path: src/Statements/ExplainStatement.php + + - + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\ExplainStatement\\:\\:\\$explainedTable \\(string\\|null\\) does not accept mixed\\.$#" + count: 1 + path: src/Statements/ExplainStatement.php + + - + message: "#^Only booleans are allowed in &&, PhpMyAdmin\\\\SqlParser\\\\Token\\|null given on the left side\\.$#" + count: 1 + path: src/Statements/KillStatement.php + + - + message: "#^Cannot access property \\$keyword on PhpMyAdmin\\\\SqlParser\\\\Token\\|null\\.$#" + count: 2 + path: src/Statements/LoadStatement.php + + - + message: "#^Cannot access property \\$token on PhpMyAdmin\\\\SqlParser\\\\Token\\|null\\.$#" + count: 1 + path: src/Statements/LoadStatement.php + + - + message: "#^Cannot access property \\$type on PhpMyAdmin\\\\SqlParser\\\\Token\\|null\\.$#" + count: 1 + path: src/Statements/LoadStatement.php + + - + message: "#^Parameter \\#3 \\$keyword of method PhpMyAdmin\\\\SqlParser\\\\Statements\\\\LoadStatement\\:\\:parseFileOptions\\(\\) expects string, mixed given\\.$#" + count: 1 + path: src/Statements/LoadStatement.php + + - + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\LoadStatement\\:\\:\\$partition \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\|null\\) does not accept array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#" + count: 1 + path: src/Statements/LoadStatement.php + + - + message: "#^Cannot call method merge\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" + count: 1 + path: src/Statements/MaintenanceStatement.php + + - + message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" + count: 1 + path: src/Statements/PurgeStatement.php + + - + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\PurgeStatement\\:\\:\\$end_expr \\(string\\|null\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" + count: 1 + path: src/Statements/PurgeStatement.php + + - + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\PurgeStatement\\:\\:\\$end_option \\(string\\|null\\) does not accept mixed\\.$#" + count: 1 + path: src/Statements/PurgeStatement.php + + - + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\PurgeStatement\\:\\:\\$log_type \\(string\\|null\\) does not accept mixed\\.$#" + count: 1 + path: src/Statements/PurgeStatement.php + + - + message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\RenameOperation\\:\\:build\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Components\\\\RenameOperation, array\\\\|null given\\.$#" + count: 1 + path: src/Statements/RenameStatement.php + + - + message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\Array2d\\:\\:build\\(\\) expects array\\, array\\ given\\.$#" + count: 1 + path: src/Statements/ReplaceStatement.php + + - + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Statements\\\\ReplaceStatement\\:\\:\\$values \\(array\\\\|null\\) does not accept array\\\\.$#" + count: 1 + path: src/Statements/ReplaceStatement.php + + - + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 1 + path: src/Statements/SelectStatement.php + + - + message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\:\\:build\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray, PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null given\\.$#" + count: 2 + path: src/Statements/SetStatement.php + + - + message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\SetOperation\\:\\:build\\(\\) expects array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\SetOperation, array\\\\|null given\\.$#" + count: 1 + path: src/Statements/SetStatement.php + + - + message: "#^Argument of an invalid type array\\\\|null supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: src/Statements/TransactionStatement.php + + - + message: "#^Cannot call method has\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" + count: 4 + path: src/Statements/TransactionStatement.php + + - + message: "#^Only booleans are allowed in \\|\\|, mixed given on the left side\\.$#" + count: 2 + path: src/Statements/TransactionStatement.php + + - + message: "#^Only booleans are allowed in \\|\\|, mixed given on the right side\\.$#" + count: 2 + path: src/Statements/TransactionStatement.php + + - + message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\:\\:build\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray, PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null given\\.$#" + count: 1 + path: src/Statements/TransactionStatement.php + + - + message: "#^Only booleans are allowed in &&, PhpMyAdmin\\\\SqlParser\\\\Token\\|null given on the left side\\.$#" + count: 4 + path: src/Statements/WithStatement.php + + - + message: "#^Only booleans are allowed in a negated boolean, int\\|false given\\.$#" + count: 1 + path: src/Statements/WithStatement.php + + - + message: "#^Only booleans are allowed in an if condition, PhpMyAdmin\\\\SqlParser\\\\Parser\\|null given\\.$#" + count: 1 + path: src/Statements/WithStatement.php + + - + message: "#^Only booleans are allowed in an if condition, PhpMyAdmin\\\\SqlParser\\\\Token\\|null given\\.$#" + count: 1 + path: src/Statements/WithStatement.php + + - + message: "#^Only booleans are allowed in an if condition, int\\<0, max\\> given\\.$#" + count: 2 + path: src/Statements/WithStatement.php + + - + message: "#^Parameter \\#1 \\$name of class PhpMyAdmin\\\\SqlParser\\\\Components\\\\WithKeyword constructor expects string, mixed given\\.$#" + count: 1 + path: src/Statements/WithStatement.php + + - + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 1 + path: src/Token.php + + - + message: "#^Only booleans are allowed in a negated boolean, int\\<0, 16\\> given\\.$#" + count: 1 + path: src/Token.php + + - + message: "#^Only booleans are allowed in a negated boolean, int\\<0, 2\\> given\\.$#" + count: 1 + path: src/Token.php + + - + message: "#^Only booleans are allowed in an if condition, int\\<0, 1\\> given\\.$#" + count: 1 + path: src/Token.php + + - + message: "#^Only booleans are allowed in an if condition, int\\<0, 8\\> given\\.$#" + count: 1 + path: src/Token.php + + - + message: "#^Only booleans are allowed in \\|\\|, int\\<0, 2\\> given on the right side\\.$#" + count: 1 + path: src/Token.php + + - + message: "#^Only booleans are allowed in \\|\\|, int\\<0, 4\\> given on the left side\\.$#" + count: 1 + path: src/Token.php + + - + message: "#^Call to function is_array\\(\\) with array\\ will always evaluate to true\\.$#" + count: 1 + path: src/TokensList.php + + - + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 1 + path: src/TokensList.php + + - + message: "#^Argument of an invalid type array\\\\|false supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: src/Tools/ContextGenerator.php + + - + message: "#^Offset 1 does not exist on array\\{0\\?\\: string, 1\\?\\: non\\-empty\\-string, 2\\?\\: numeric\\-string\\}\\.$#" + count: 1 + path: src/Tools/ContextGenerator.php + + - + message: "#^Offset 2 does not exist on array\\{0\\?\\: string, 1\\?\\: non\\-empty\\-string, 2\\?\\: numeric\\-string\\}\\.$#" + count: 1 + path: src/Tools/ContextGenerator.php + + - + message: "#^Parameter \\#1 \\$str of function trim expects string, mixed given\\.$#" + count: 1 + path: src/Tools/ContextGenerator.php + + - + message: "#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, array\\\\|false given\\.$#" + count: 1 + path: src/Tools/ContextGenerator.php + + - + message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Tools\\\\CustomJsonSerializer\\:\\:extractObjectData\\(\\) has parameter \\$ref with generic class ReflectionClass but does not specify its types\\: T$#" + count: 1 + path: src/Tools/CustomJsonSerializer.php + + - + message: "#^Parameter \\#3 \\$properties \\(array\\\\) of method PhpMyAdmin\\\\SqlParser\\\\Tools\\\\CustomJsonSerializer\\:\\:extractObjectData\\(\\) should be contravariant with parameter \\$properties \\(array\\) of method Zumba\\\\JsonSerializer\\\\JsonSerializer\\:\\:extractObjectData\\(\\)$#" + count: 1 + path: src/Tools/CustomJsonSerializer.php + + - + message: "#^Variable property access on object\\.$#" + count: 1 + path: src/Tools/CustomJsonSerializer.php + + - + message: "#^Argument of an invalid type array\\\\|false supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: src/Tools/TestGenerator.php + + - + message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" + count: 1 + path: src/Tools/TestGenerator.php + + - + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 4 + path: src/Tools/TestGenerator.php + + - + message: "#^Parameter \\#1 \\$filename of function is_dir expects string, string\\|null given\\.$#" + count: 1 + path: src/Tools/TestGenerator.php + + - + message: "#^Parameter \\#1 \\$pathname of function mkdir expects string, string\\|null given\\.$#" + count: 1 + path: src/Tools/TestGenerator.php + + - + message: "#^Parameter \\#1 \\$string of function substr expects string, string\\|null given\\.$#" + count: 1 + path: src/Tools/TestGenerator.php + + - + message: "#^Parameter \\#1 \\$offset \\(int\\) of method PhpMyAdmin\\\\SqlParser\\\\UtfString\\:\\:offsetSet\\(\\) should be contravariant with parameter \\$offset \\(int\\|null\\) of method ArrayAccess\\\\:\\:offsetSet\\(\\)$#" + count: 1 + path: src/UtfString.php + + - + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 3 + path: src/Utils/BufferedQuery.php + + - + message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Utils\\\\BufferedQuery\\:\\:\\$query \\(string\\) does not accept \\(string\\|false\\)\\.$#" + count: 2 + path: src/Utils/BufferedQuery.php + + - + message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" + count: 1 + path: src/Utils/CLI.php + + - + message: "#^Cannot access offset 'a' on mixed\\.$#" + count: 3 + path: src/Utils/CLI.php + + - + message: "#^Cannot access offset 'c' on mixed\\.$#" + count: 1 + path: src/Utils/CLI.php + + - + message: "#^Cannot access offset 'f' on mixed\\.$#" + count: 3 + path: src/Utils/CLI.php + + - + message: "#^Cannot access offset 'h' on mixed\\.$#" + count: 3 + path: src/Utils/CLI.php + + - + message: "#^Cannot access offset 'q' on mixed\\.$#" + count: 9 + path: src/Utils/CLI.php + + - + message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\CLI\\:\\:getopt\\(\\) should return array\\\\|false but returns \\(array\\\\|string\\|false\\>\\|false\\)\\.$#" + count: 1 + path: src/Utils/CLI.php + + - + message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\CLI\\:\\:readStdin\\(\\) should return string\\|false but returns string\\|false\\|null\\.$#" + count: 1 + path: src/Utils/CLI.php + + - + message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" + count: 3 + path: src/Utils/CLI.php + + - + message: "#^Parameter \\#1 \\$context of static method PhpMyAdmin\\\\SqlParser\\\\Context\\:\\:load\\(\\) expects string, mixed given\\.$#" + count: 1 + path: src/Utils/CLI.php + + - + message: "#^Parameter \\#1 \\$query of static method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Formatter\\:\\:format\\(\\) expects string, mixed given\\.$#" + count: 1 + path: src/Utils/CLI.php + + - + message: "#^Parameter \\#1 \\$str of class PhpMyAdmin\\\\SqlParser\\\\Lexer constructor expects PhpMyAdmin\\\\SqlParser\\\\UtfString\\|string, mixed given\\.$#" + count: 2 + path: src/Utils/CLI.php + + - + message: "#^Parameter \\#2 \\$options of static method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Formatter\\:\\:format\\(\\) expects array\\\\>\\|bool\\|string\\>, array\\ given\\.$#" + count: 1 + path: src/Utils/CLI.php + + - + message: "#^Argument of an invalid type array\\\\>\\|bool\\|string supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: src/Utils/Formatter.php + + - + message: "#^Binary operation \"&\" between int and int\\|string results in an error\\.$#" + count: 1 + path: src/Utils/Formatter.php + + - + message: "#^Binary operation \"&\\=\" between array\\\\>\\|bool\\|string\\|null and array\\\\>\\|bool\\|string\\|null results in an error\\.$#" + count: 1 + path: src/Utils/Formatter.php + + - + message: "#^Binary operation \"\\.\" between array\\\\>\\|bool\\|string and string results in an error\\.$#" + count: 1 + path: src/Utils/Formatter.php + + - + message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" + count: 1 + path: src/Utils/Formatter.php + + - + message: "#^Cannot cast mixed to string\\.$#" + count: 2 + path: src/Utils/Formatter.php + + - + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 4 + path: src/Utils/Formatter.php + + - + message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Formatter\\:\\:getMergedOptions\\(\\) should return array\\\\>\\|bool\\|string\\> but returns array\\\\.$#" + count: 1 + path: src/Utils/Formatter.php + + - + message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Formatter\\:\\:toString\\(\\) should return string but returns mixed\\.$#" + count: 1 + path: src/Utils/Formatter.php + + - + message: "#^Only booleans are allowed in &&, array\\\\>\\|bool\\|string given on the left side\\.$#" + count: 2 + path: src/Utils/Formatter.php + + - + message: "#^Only booleans are allowed in &&, array\\\\>\\|bool\\|string given on the right side\\.$#" + count: 2 + path: src/Utils/Formatter.php + + - + message: "#^Only booleans are allowed in &&, int\\<0, 32\\> given on the right side\\.$#" + count: 1 + path: src/Utils/Formatter.php + + - + message: "#^Only booleans are allowed in an if condition, bool\\|int given\\.$#" + count: 1 + path: src/Utils/Formatter.php + + - + message: "#^Only booleans are allowed in \\|\\|, array\\\\>\\|bool\\|string given on the right side\\.$#" + count: 1 + path: src/Utils/Formatter.php + + - + message: "#^Only numeric types are allowed in pre\\-increment, int\\|null given\\.$#" + count: 3 + path: src/Utils/Formatter.php + + - + message: "#^Parameter \\#1 \\$input of function str_repeat expects string, array\\\\>\\|bool\\|string given\\.$#" + count: 1 + path: src/Utils/Formatter.php + + - + message: "#^Parameter \\#1 \\$string of function htmlspecialchars expects string, mixed given\\.$#" + count: 2 + path: src/Utils/Formatter.php + + - + message: "#^Parameter \\#1 \\$string of method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Formatter\\:\\:escapeConsole\\(\\) expects string, mixed given\\.$#" + count: 4 + path: src/Utils/Formatter.php + + - + message: "#^Parameter \\#2 \\$newFormats of static method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Formatter\\:\\:mergeFormats\\(\\) expects array\\\\>, array\\\\>\\|bool\\|string given\\.$#" + count: 1 + path: src/Utils/Formatter.php + + - + message: "#^Strict comparison using \\=\\=\\= between 1 and 1 will always evaluate to true\\.$#" + count: 1 + path: src/Utils/Formatter.php + + - + message: "#^Trying to invoke int\\\\|int\\<1, max\\>\\|non\\-falsy\\-string but it might not be a callable\\.$#" + count: 1 + path: src/Utils/Formatter.php + + - + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 3 + path: src/Utils/Misc.php + + - + message: "#^Instanceof between PhpMyAdmin\\\\SqlParser\\\\Statements\\\\SelectStatement and PhpMyAdmin\\\\SqlParser\\\\Statements\\\\SelectStatement will always evaluate to true\\.$#" + count: 1 + path: src/Utils/Misc.php + + - + message: "#^Access to an undefined property PhpMyAdmin\\\\SqlParser\\\\Components\\\\CaseExpression\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\:\\:\\$function\\.$#" + count: 1 + path: src/Utils/Query.php + + - + message: "#^Argument of an invalid type array\\\\|null supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: src/Utils/Query.php + + - + message: "#^Argument of an invalid type array\\\\|null supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: src/Utils/Query.php + + - + message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" + count: 2 + path: src/Utils/Query.php + + - + message: "#^Cannot access property \\$dest on PhpMyAdmin\\\\SqlParser\\\\Components\\\\IntoKeyword\\|null\\.$#" + count: 1 + path: src/Utils/Query.php + + - + message: "#^Cannot access property \\$keyword on PhpMyAdmin\\\\SqlParser\\\\Token\\|null\\.$#" + count: 1 + path: src/Utils/Query.php + + - + message: "#^Cannot call method has\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" + count: 4 + path: src/Utils/Query.php + + - + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 18 + path: src/Utils/Query.php + + - + message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Query\\:\\:getClauseStartOffset\\(\\) should return int but returns int\\|null\\.$#" + count: 1 + path: src/Utils/Query.php + + - + message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" + count: 1 + path: src/Utils/Query.php + + - + message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" + count: 1 + path: src/Utils/Query.php + + - + message: "#^Only booleans are allowed in \\|\\|, mixed given on the left side\\.$#" + count: 1 + path: src/Utils/Query.php + + - + message: "#^Only booleans are allowed in \\|\\|, mixed given on the right side\\.$#" + count: 1 + path: src/Utils/Query.php + + - + message: "#^Only numeric types are allowed in pre\\-increment, int\\|null given\\.$#" + count: 2 + path: src/Utils/Query.php + + - + message: "#^Parameter \\#1 \\$str of function strtoupper expects string, mixed given\\.$#" + count: 1 + path: src/Utils/Query.php + + - + message: "#^Cannot access offset 'value' on mixed\\.$#" + count: 3 + path: src/Utils/Routine.php + + - + message: "#^Cannot assign new offset to array\\, mixed\\>\\|string\\.$#" + count: 1 + path: src/Utils/Routine.php + + - + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 3 + path: src/Utils/Routine.php + + - + message: "#^Parameter \\#2 \\$pieces of function implode expects array, array\\, mixed\\>\\|string given\\.$#" + count: 1 + path: src/Utils/Routine.php + + - + message: "#^Cannot call method has\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" + count: 2 + path: src/Utils/Table.php + + - + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 5 + path: src/Utils/Table.php + + - + message: "#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null given\\.$#" + count: 1 + path: src/Utils/Table.php + + - + message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" + count: 3 + path: src/Utils/Table.php + + - + message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" + count: 4 + path: src/Utils/Table.php + + - + message: "#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, mixed given\\.$#" + count: 2 + path: src/Utils/Table.php + + - + message: "#^Binary operation \"&\" between int\\|string and int results in an error\\.$#" + count: 1 + path: src/Utils/Tokens.php + + - + message: "#^Cannot cast mixed to string\\.$#" + count: 1 + path: src/Utils/Tokens.php + + - + message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Tokens\\:\\:replaceTokens\\(\\) should return PhpMyAdmin\\\\SqlParser\\\\TokensList but returns PhpMyAdmin\\\\SqlParser\\\\TokensList\\|string\\.$#" + count: 1 + path: src/Utils/Tokens.php + + - + message: "#^Only booleans are allowed in &&, int\\<\\-1, 1\\> given on the right side\\.$#" + count: 1 + path: src/Utils/Tokens.php + + - + message: "#^Parameter \\#1 \\$str1 of function strcasecmp expects string, int\\|string given\\.$#" + count: 1 + path: src/Utils/Tokens.php + + - + message: "#^Parameter \\#2 \\$pattern of static method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Tokens\\:\\:match\\(\\) expects array\\, PhpMyAdmin\\\\SqlParser\\\\Token given\\.$#" + count: 1 + path: src/Utils/Tokens.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 13 + path: tests/Builder/AlterStatementTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 11 + path: tests/Builder/CallStatementTest.php + + - + message: "#^Cannot call method __toString\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" + count: 2 + path: tests/Builder/CreateStatementTest.php + + - + message: "#^Cannot call method __toString\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" + count: 4 + path: tests/Builder/CreateStatementTest.php + + - + message: "#^Cannot call method isEmpty\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" + count: 4 + path: tests/Builder/CreateStatementTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 33 + path: tests/Builder/CreateStatementTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertFalse\\(\\)\\.$#" + count: 4 + path: tests/Builder/CreateStatementTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\)\\.$#" + count: 13 + path: tests/Builder/CreateStatementTest.php + + - + message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\CreateDefinition\\:\\:build\\(\\) expects array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\CreateDefinition, array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\|null given\\.$#" + count: 2 + path: tests/Builder/CreateStatementTest.php + + - + message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\ParameterDefinition\\:\\:build\\(\\) expects array\\, array\\\\|null given\\.$#" + count: 2 + path: tests/Builder/CreateStatementTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 10 + path: tests/Builder/DeleteStatementTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 10 + path: tests/Builder/ExplainStatementTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 6 + path: tests/Builder/InsertStatementTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 6 + path: tests/Builder/LoadStatementTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 7 + path: tests/Builder/LockStatementTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 2 + path: tests/Builder/PurgeStatementTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 3 + path: tests/Builder/RenameStatementTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 4 + path: tests/Builder/ReplaceStatementTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 28 + path: tests/Builder/SelectStatementTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 15 + path: tests/Builder/SetStatementTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 1 + path: tests/Builder/StatementTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 1 + path: tests/Builder/TransactionStatementTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 3 + path: tests/Builder/TruncateStatementTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 3 + path: tests/Builder/UpdateStatementTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertCount\\(\\)\\.$#" + count: 6 + path: tests/Components/Array2dTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 8 + path: tests/Components/Array2dTest.php + + - + message: "#^Cannot access offset 0 on array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#" + count: 1 + path: tests/Components/ArrayObjTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 4 + path: tests/Components/ArrayObjTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\)\\.$#" + count: 2 + path: tests/Components/ArrayObjTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 9 + path: tests/Components/CaseExpressionTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 5 + path: tests/Components/ConditionTest.php + + - + message: "#^Cannot access offset 0 on array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\|null\\.$#" + count: 1 + path: tests/Components/CreateDefinitionTest.php + + - + message: "#^Cannot access offset 1 on array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\|null\\.$#" + count: 1 + path: tests/Components/CreateDefinitionTest.php + + - + message: "#^Cannot access offset 2 on array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\|null\\.$#" + count: 2 + path: tests/Components/CreateDefinitionTest.php + + - + message: "#^Cannot access offset 5 on array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\|null\\.$#" + count: 1 + path: tests/Components/CreateDefinitionTest.php + + - + message: "#^Cannot access offset 6 on array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\|null\\.$#" + count: 1 + path: tests/Components/CreateDefinitionTest.php + + - + message: "#^Cannot access property \\$name on PhpMyAdmin\\\\SqlParser\\\\Components\\\\DataType\\|null\\.$#" + count: 1 + path: tests/Components/CreateDefinitionTest.php + + - + message: "#^Cannot access property \\$name on PhpMyAdmin\\\\SqlParser\\\\Components\\\\Key\\|null\\.$#" + count: 1 + path: tests/Components/CreateDefinitionTest.php + + - + message: "#^Cannot access property \\$type on PhpMyAdmin\\\\SqlParser\\\\Components\\\\Key\\|null\\.$#" + count: 1 + path: tests/Components/CreateDefinitionTest.php + + - + message: "#^Cannot call method has\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" + count: 2 + path: tests/Components/CreateDefinitionTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertCount\\(\\)\\.$#" + count: 1 + path: tests/Components/CreateDefinitionTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 15 + path: tests/Components/CreateDefinitionTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\)\\.$#" + count: 4 + path: tests/Components/CreateDefinitionTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertTrue\\(\\)\\.$#" + count: 2 + path: tests/Components/CreateDefinitionTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertCount\\(\\)\\.$#" + count: 3 + path: tests/Components/ExpressionArrayTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 4 + path: tests/Components/ExpressionArrayTest.php + + - + message: "#^Cannot access property \\$alias on PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" + count: 2 + path: tests/Components/ExpressionTest.php + + - + message: "#^Cannot access property \\$expr on PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" + count: 4 + path: tests/Components/ExpressionTest.php + + - + message: "#^Cannot access property \\$table on PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" + count: 2 + path: tests/Components/ExpressionTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 10 + path: tests/Components/ExpressionTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 2 + path: tests/Components/FunctionCallTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\)\\.$#" + count: 1 + path: tests/Components/GroupKeywordTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 6 + path: tests/Components/IntoKeywordTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertCount\\(\\)\\.$#" + count: 2 + path: tests/Components/JoinKeywordTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 4 + path: tests/Components/JoinKeywordTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNull\\(\\)\\.$#" + count: 3 + path: tests/Components/JoinKeywordTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 42 + path: tests/Components/KeyTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNull\\(\\)\\.$#" + count: 11 + path: tests/Components/KeyTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\)\\.$#" + count: 27 + path: tests/Components/KeyTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 2 + path: tests/Components/LimitTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 7 + path: tests/Components/LockExpressionTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNotNull\\(\\)\\.$#" + count: 2 + path: tests/Components/LockExpressionTest.php + + - + message: "#^Cannot cast mixed to string\\.$#" + count: 1 + path: tests/Components/OptionsArrayTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 8 + path: tests/Components/OptionsArrayTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertFalse\\(\\)\\.$#" + count: 3 + path: tests/Components/OptionsArrayTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertTrue\\(\\)\\.$#" + count: 3 + path: tests/Components/OptionsArrayTest.php - - message: "#^Parameter \\#1 \\$string of function substr expects string, string\\|null given\\.$#" + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" count: 1 - path: src/Tools/TestGenerator.php + path: tests/Components/OrderKeywordTest.php - - message: "#^Cannot access offset 'a' on mixed\\.$#" + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" count: 3 - path: src/Utils/CLI.php + path: tests/Components/ParameterDefinitionTest.php - - message: "#^Cannot access offset 'c' on mixed\\.$#" - count: 1 - path: src/Utils/CLI.php + message: "#^Cannot access property \\$expr on PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|string\\.$#" + count: 2 + path: tests/Components/PartitionDefinitionTest.php - - message: "#^Cannot access offset 'f' on mixed\\.$#" - count: 1 - path: src/Utils/CLI.php + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 6 + path: tests/Components/PartitionDefinitionTest.php - - message: "#^Cannot access offset 'h' on mixed\\.$#" - count: 3 - path: src/Utils/CLI.php + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertFalse\\(\\)\\.$#" + count: 2 + path: tests/Components/PartitionDefinitionTest.php - - message: "#^Cannot access offset 'q' on mixed\\.$#" - count: 9 - path: src/Utils/CLI.php + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 3 + path: tests/Components/ReferenceTest.php - - message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\CLI\\:\\:readStdin\\(\\) should return string\\|false but returns string\\|false\\|null\\.$#" + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" count: 1 - path: src/Utils/CLI.php + path: tests/Components/RenameOperationTest.php - - message: "#^Parameter \\#1 \\$context of static method PhpMyAdmin\\\\SqlParser\\\\Context\\:\\:load\\(\\) expects string, mixed given\\.$#" + message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\RenameOperation\\:\\:build\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Components\\\\RenameOperation, array\\ given\\.$#" count: 1 - path: src/Utils/CLI.php + path: tests/Components/RenameOperationTest.php - - message: "#^Parameter \\#1 \\$query of static method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Formatter\\:\\:format\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Utils/CLI.php + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\)\\.$#" + count: 2 + path: tests/Lexer/ContextTest.php - - message: "#^Parameter \\#1 \\$str of class PhpMyAdmin\\\\SqlParser\\\\Lexer constructor expects PhpMyAdmin\\\\SqlParser\\\\UtfString\\|string, mixed given\\.$#" + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayNotHasKey\\(\\)\\.$#" count: 2 - path: src/Utils/CLI.php + path: tests/Lexer/ContextTest.php - - message: "#^Parameter \\#2 \\$options of static method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Formatter\\:\\:format\\(\\) expects array\\\\>\\|bool\\|string\\>, array\\ given\\.$#" - count: 1 - path: src/Utils/CLI.php + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 10 + path: tests/Lexer/ContextTest.php - - message: "#^Argument of an invalid type array\\\\>\\|bool\\|string supplied for foreach, only iterables are supported\\.$#" - count: 1 - path: src/Utils/Formatter.php + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertFalse\\(\\)\\.$#" + count: 4 + path: tests/Lexer/ContextTest.php - - message: "#^Binary operation \"&\" between int and int\\|string results in an error\\.$#" - count: 1 - path: src/Utils/Formatter.php + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\)\\.$#" + count: 7 + path: tests/Lexer/ContextTest.php - - message: "#^Binary operation \"&\\=\" between array\\\\>\\|bool\\|string\\|null and array\\\\>\\|bool\\|string\\|null results in an error\\.$#" - count: 1 - path: src/Utils/Formatter.php + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertTrue\\(\\)\\.$#" + count: 5 + path: tests/Lexer/ContextTest.php - - message: "#^Binary operation \"\\.\" between array\\\\>\\|bool\\|string and string results in an error\\.$#" - count: 1 - path: src/Utils/Formatter.php + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 30 + path: tests/Lexer/IsMethodsTest.php - - message: "#^Cannot cast mixed to string\\.$#" - count: 2 - path: src/Utils/Formatter.php + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertFalse\\(\\)\\.$#" + count: 8 + path: tests/Lexer/IsMethodsTest.php - - message: "#^Parameter \\#1 \\$input of function str_repeat expects string, array\\\\>\\|bool\\|string given\\.$#" - count: 1 - path: src/Utils/Formatter.php + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNull\\(\\)\\.$#" + count: 10 + path: tests/Lexer/IsMethodsTest.php - - message: "#^Parameter \\#2 \\$newFormats of static method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Formatter\\:\\:mergeFormats\\(\\) expects array\\\\>, array\\\\>\\|bool\\|string given\\.$#" - count: 1 - path: src/Utils/Formatter.php + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertTrue\\(\\)\\.$#" + count: 23 + path: tests/Lexer/IsMethodsTest.php - - message: "#^Trying to invoke int\\\\|int\\<1, max\\>\\|non\\-falsy\\-string but it might not be a callable\\.$#" + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" count: 1 - path: src/Utils/Formatter.php + path: tests/Lexer/LexerTest.php - - message: "#^Argument of an invalid type array\\\\|null supplied for foreach, only iterables are supported\\.$#" - count: 1 - path: src/Utils/Query.php + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 18 + path: tests/Lexer/TokenTest.php - - message: "#^Argument of an invalid type array\\\\|null supplied for foreach, only iterables are supported\\.$#" + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertFalse\\(\\)\\.$#" count: 1 - path: src/Utils/Query.php + path: tests/Lexer/TokenTest.php - - message: "#^Cannot access property \\$dest on PhpMyAdmin\\\\SqlParser\\\\Components\\\\IntoKeyword\\|null\\.$#" + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertTrue\\(\\)\\.$#" count: 1 - path: src/Utils/Query.php + path: tests/Lexer/TokenTest.php - - message: "#^Cannot access property \\$keyword on PhpMyAdmin\\\\SqlParser\\\\Token\\|null\\.$#" + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\)\\.$#" count: 1 - path: src/Utils/Query.php + path: tests/Lexer/TokensListTest.php - - message: "#^Cannot call method has\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" - count: 4 - path: src/Utils/Query.php + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayNotHasKey\\(\\)\\.$#" + count: 2 + path: tests/Lexer/TokensListTest.php - - message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Query\\:\\:getClauseStartOffset\\(\\) should return int but returns int\\|null\\.$#" - count: 1 - path: src/Utils/Query.php + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 25 + path: tests/Lexer/TokensListTest.php - - message: "#^Cannot access offset 'value' on mixed\\.$#" - count: 3 - path: src/Utils/Routine.php + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNull\\(\\)\\.$#" + count: 8 + path: tests/Lexer/TokensListTest.php - - message: "#^Cannot assign new offset to array\\, mixed\\>\\|string\\.$#" - count: 1 - path: src/Utils/Routine.php + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\)\\.$#" + count: 9 + path: tests/Lexer/TokensListTest.php - - message: "#^Parameter \\#2 \\$pieces of function implode expects array, array\\, mixed\\>\\|string given\\.$#" + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\)\\.$#" count: 1 - path: src/Utils/Routine.php + path: tests/Misc/UtfStringTest.php - - message: "#^Cannot call method has\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayNotHasKey\\(\\)\\.$#" count: 2 - path: src/Utils/Table.php + path: tests/Misc/UtfStringTest.php - - message: "#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, mixed given\\.$#" + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 17 + path: tests/Misc/UtfStringTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNull\\(\\)\\.$#" count: 2 - path: src/Utils/Table.php + path: tests/Misc/UtfStringTest.php - - message: "#^Binary operation \"&\" between int\\|string and int results in an error\\.$#" + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertCount\\(\\)\\.$#" count: 1 - path: src/Utils/Tokens.php + path: tests/Parser/KillStatementTest.php - - message: "#^Cannot cast mixed to string\\.$#" + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" count: 1 - path: src/Utils/Tokens.php + path: tests/Parser/KillStatementTest.php - - message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Tokens\\:\\:replaceTokens\\(\\) should return PhpMyAdmin\\\\SqlParser\\\\TokensList but returns PhpMyAdmin\\\\SqlParser\\\\TokensList\\|string\\.$#" + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\)\\.$#" count: 1 - path: src/Utils/Tokens.php + path: tests/Parser/KillStatementTest.php - - message: "#^Parameter \\#1 \\$str1 of function strcasecmp expects string, int\\|string given\\.$#" + message: "#^Cannot call method has\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" count: 1 - path: src/Utils/Tokens.php + path: tests/Parser/LoadStatementTest.php - - message: "#^Parameter \\#2 \\$pattern of static method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Tokens\\:\\:match\\(\\) expects array\\, PhpMyAdmin\\\\SqlParser\\\\Token given\\.$#" + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" count: 1 - path: src/Utils/Tokens.php + path: tests/Parser/LoadStatementTest.php - - message: "#^Cannot call method __toString\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" - count: 2 - path: tests/Builder/CreateStatementTest.php + message: "#^Argument of an invalid type array\\\\|null supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: tests/Parser/ParserLongExportsTest.php - - message: "#^Cannot call method __toString\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" - count: 4 - path: tests/Builder/CreateStatementTest.php + message: "#^Call to method PHPUnit\\\\Framework\\\\Assert\\:\\:assertIsString\\(\\) with string will always evaluate to true\\.$#" + count: 1 + path: tests/Parser/ParserLongExportsTest.php - - message: "#^Cannot call method isEmpty\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" - count: 4 - path: tests/Builder/CreateStatementTest.php + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 2 + path: tests/Parser/ParserLongExportsTest.php - - message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\CreateDefinition\\:\\:build\\(\\) expects array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\CreateDefinition, array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\|null given\\.$#" - count: 2 - path: tests/Builder/CreateStatementTest.php + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertIsString\\(\\)\\.$#" + count: 1 + path: tests/Parser/ParserLongExportsTest.php - - message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\ParameterDefinition\\:\\:build\\(\\) expects array\\, array\\\\|null given\\.$#" - count: 2 - path: tests/Builder/CreateStatementTest.php + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 3 + path: tests/Parser/ParserTest.php - - message: "#^Cannot access offset 0 on array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\.$#" + message: "#^Cannot call method has\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" count: 1 - path: tests/Components/ArrayObjTest.php + path: tests/Parser/SelectStatementTest.php - - message: "#^Cannot access offset 0 on array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\|null\\.$#" + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" count: 1 - path: tests/Components/CreateDefinitionTest.php + path: tests/Parser/SelectStatementTest.php - - message: "#^Cannot access offset 1 on array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\|null\\.$#" + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" count: 1 - path: tests/Components/CreateDefinitionTest.php + path: tests/Parser/TransactionStatementTest.php - - message: "#^Cannot access offset 2 on array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\|null\\.$#" - count: 2 - path: tests/Components/CreateDefinitionTest.php + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertCount\\(\\)\\.$#" + count: 8 + path: tests/Parser/WithStatementTest.php - - message: "#^Cannot access offset 5 on array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\|null\\.$#" - count: 1 - path: tests/Components/CreateDefinitionTest.php + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 3 + path: tests/Parser/WithStatementTest.php - - message: "#^Cannot access offset 6 on array\\\\|PhpMyAdmin\\\\SqlParser\\\\Components\\\\ArrayObj\\|null\\.$#" + message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\WithKeyword\\:\\:build\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Components\\\\WithKeyword, stdClass given\\.$#" count: 1 - path: tests/Components/CreateDefinitionTest.php + path: tests/Parser/WithStatementTest.php - - message: "#^Cannot access property \\$name on PhpMyAdmin\\\\SqlParser\\\\Components\\\\DataType\\|null\\.$#" - count: 1 - path: tests/Components/CreateDefinitionTest.php + message: "#^Casting to int something that's already int\\.$#" + count: 2 + path: tests/TestCase.php - - message: "#^Cannot access property \\$name on PhpMyAdmin\\\\SqlParser\\\\Components\\\\Key\\|null\\.$#" + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" count: 1 - path: tests/Components/CreateDefinitionTest.php + path: tests/TestCase.php - - message: "#^Cannot access property \\$type on PhpMyAdmin\\\\SqlParser\\\\Components\\\\Key\\|null\\.$#" - count: 1 - path: tests/Components/CreateDefinitionTest.php + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\)\\.$#" + count: 6 + path: tests/TestCase.php - - message: "#^Cannot call method has\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" - count: 2 - path: tests/Components/CreateDefinitionTest.php + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 4 + path: tests/TestCase.php - - message: "#^Cannot access property \\$alias on PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\)\\.$#" count: 2 - path: tests/Components/ExpressionTest.php + path: tests/TestCase.php - - message: "#^Cannot access property \\$expr on PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertIsArray\\(\\)\\.$#" count: 4 - path: tests/Components/ExpressionTest.php + path: tests/TestCase.php - - message: "#^Cannot access property \\$table on PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" - count: 2 - path: tests/Components/ExpressionTest.php + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertIsString\\(\\)\\.$#" + count: 3 + path: tests/TestCase.php - - message: "#^Cannot cast mixed to string\\.$#" + message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Tests\\\\TestCase\\:\\:getData\\(\\) should return array\\{query\\: string, lexer\\: PhpMyAdmin\\\\SqlParser\\\\Lexer, parser\\: PhpMyAdmin\\\\SqlParser\\\\Parser\\|null, errors\\: array\\{lexer\\: array\\, parser\\: array\\\\}\\} but returns non\\-empty\\-array\\.$#" count: 1 - path: tests/Components/OptionsArrayTest.php + path: tests/TestCase.php - - message: "#^Cannot access property \\$expr on PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|string\\.$#" - count: 2 - path: tests/Components/PartitionDefinitionTest.php + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 8 + path: tests/Tools/ContextGeneratorTest.php - - message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\RenameOperation\\:\\:build\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Components\\\\RenameOperation, array\\ given\\.$#" + message: "#^Cannot access offset int\\<0, max\\> on non\\-empty\\-array\\\\|false\\.$#" count: 1 - path: tests/Components/RenameOperationTest.php + path: tests/Utils/BufferedQueryTest.php - - message: "#^Cannot call method has\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" count: 1 - path: tests/Parser/LoadStatementTest.php + path: tests/Utils/BufferedQueryTest.php - - message: "#^Argument of an invalid type array\\\\|null supplied for foreach, only iterables are supported\\.$#" + message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" count: 1 - path: tests/Parser/ParserLongExportsTest.php + path: tests/Utils/BufferedQueryTest.php - - message: "#^Cannot call method has\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" + message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\\\|false given\\.$#" count: 1 - path: tests/Parser/SelectStatementTest.php + path: tests/Utils/BufferedQueryTest.php - - message: "#^Parameter \\#1 \\$component of static method PhpMyAdmin\\\\SqlParser\\\\Components\\\\WithKeyword\\:\\:build\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Components\\\\WithKeyword, stdClass given\\.$#" + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 7 + path: tests/Utils/CLITest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\)\\.$#" count: 1 - path: tests/Parser/WithStatementTest.php + path: tests/Utils/CLITest.php - - message: "#^Cannot access offset int\\<0, max\\> on non\\-empty\\-array\\\\|false\\.$#" + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 3 + path: tests/Utils/ErrorTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\)\\.$#" count: 1 - path: tests/Utils/BufferedQueryTest.php + path: tests/Utils/ErrorTest.php - - message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\\\|false given\\.$#" + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 4 + path: tests/Utils/FormatterTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\TestCase\\:\\:once\\(\\)\\.$#" + count: 2 + path: tests/Utils/FormatterTest.php + + - + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" count: 1 - path: tests/Utils/BufferedQueryTest.php + path: tests/Utils/MiscTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 1 + path: tests/Utils/MiscTest.php - message: "#^Parameter \\#1 \\$statement of static method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Misc\\:\\:getAliases\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Statements\\\\SelectStatement, PhpMyAdmin\\\\SqlParser\\\\Statement\\|null given\\.$#" @@ -1145,6 +2770,21 @@ parameters: count: 1 path: tests/Utils/MiscTest.php + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 30 + path: tests/Utils/QueryTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNull\\(\\)\\.$#" + count: 1 + path: tests/Utils/QueryTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\)\\.$#" + count: 1 + path: tests/Utils/QueryTest.php + - message: "#^Parameter \\#2 \\$list of static method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Query\\:\\:getClause\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\TokensList, PhpMyAdmin\\\\SqlParser\\\\TokensList\\|null given\\.$#" count: 9 @@ -1160,11 +2800,21 @@ parameters: count: 3 path: tests/Utils/QueryTest.php + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 3 + path: tests/Utils/RoutineTest.php + - message: "#^Parameter \\#1 \\$statement of static method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Routine\\:\\:getParameters\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Statements\\\\CreateStatement, PhpMyAdmin\\\\SqlParser\\\\Statement given\\.$#" count: 1 path: tests/Utils/RoutineTest.php + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 2 + path: tests/Utils/TableTest.php + - message: "#^Parameter \\#1 \\$statement of static method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Table\\:\\:getFields\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Statements\\\\CreateStatement, PhpMyAdmin\\\\SqlParser\\\\Statement given\\.$#" count: 1 @@ -1175,6 +2825,16 @@ parameters: count: 1 path: tests/Utils/TableTest.php + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertEquals\\(\\)\\.$#" + count: 1 + path: tests/Utils/TokensTest.php + + - + message: "#^Dynamic call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\)\\.$#" + count: 1 + path: tests/Utils/TokensTest.php + - message: "#^Parameter \\#2 \\$find of static method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Tokens\\:\\:replaceTokens\\(\\) expects array\\, array\\\\> given\\.$#" count: 1 @@ -1185,3 +2845,8 @@ parameters: count: 1 path: tests/benchmarks/UtfStringBench.php + - + message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + count: 1 + path: tools/TestGenerator.php + diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 0cd1bb05..a4d46bd4 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -15,3 +15,8 @@ parameters: - tools/doctum-config.php dynamicConstantNames: - USE_UTF_STRINGS + checkBenevolentUnionTypes: true + checkUninitializedProperties: true + checkDynamicProperties: true + checkTooWideReturnTypesInProtectedAndPublicMethods: true + checkImplicitMixed: true diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 7854c67b..43e3a484 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1192,14 +1192,6 @@ $debugFile - - - self::$loader === null - - - self::$translator !== null - - $this->status