diff --git a/composer.json b/composer.json index 7259e33dea..64533defdf 100644 --- a/composer.json +++ b/composer.json @@ -108,11 +108,11 @@ "php-webdriver/webdriver": "^1.14", "phpmyadmin/coding-standard": "^4.0", "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", - "phpstan/phpstan-webmozart-assert": "^1.2", + "phpstan/phpstan": "^2.0", + "phpstan/phpstan-deprecation-rules": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpstan/phpstan-strict-rules": "^2.0", + "phpstan/phpstan-webmozart-assert": "^2.0", "phpunit/phpunit": "^10.4", "pragmarx/google2fa-qrcode": "^3.0", "psalm/plugin-phpunit": "^0.18.4", diff --git a/composer.lock b/composer.lock index c7af500976..f03bb4f0fb 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "470c34891a7abf278b4fe93198e1e6c9", + "content-hash": "ebd5f44fa6a26180c91fee67cdf7022a", "packages": [ { "name": "composer/ca-bundle", @@ -4442,20 +4442,20 @@ }, { "name": "phpstan/phpstan", - "version": "1.12.10", + "version": "2.0.1", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "fc463b5d0fe906dcf19689be692c65c50406a071" + "reference": "ab4e9b4415a5fc9e4d27f7fe16c8bc9d067dcd6d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/fc463b5d0fe906dcf19689be692c65c50406a071", - "reference": "fc463b5d0fe906dcf19689be692c65c50406a071", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/ab4e9b4415a5fc9e4d27f7fe16c8bc9d067dcd6d", + "reference": "ab4e9b4415a5fc9e4d27f7fe16c8bc9d067dcd6d", "shasum": "" }, "require": { - "php": "^7.2|^8.0" + "php": "^7.4|^8.0" }, "conflict": { "phpstan/phpstan-shim": "*" @@ -4496,30 +4496,30 @@ "type": "github" } ], - "time": "2024-11-11T15:37:09+00:00" + "time": "2024-11-11T15:43:04+00:00" }, { "name": "phpstan/phpstan-deprecation-rules", - "version": "1.2.1", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-deprecation-rules.git", - "reference": "f94d246cc143ec5a23da868f8f7e1393b50eaa82" + "reference": "81833b5787e2e8f451b31218875e29e4ed600ab2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-deprecation-rules/zipball/f94d246cc143ec5a23da868f8f7e1393b50eaa82", - "reference": "f94d246cc143ec5a23da868f8f7e1393b50eaa82", + "url": "https://api.github.com/repos/phpstan/phpstan-deprecation-rules/zipball/81833b5787e2e8f451b31218875e29e4ed600ab2", + "reference": "81833b5787e2e8f451b31218875e29e4ed600ab2", "shasum": "" }, "require": { - "php": "^7.2 || ^8.0", - "phpstan/phpstan": "^1.12" + "php": "^7.4 || ^8.0", + "phpstan/phpstan": "^2.0" }, "require-dev": { "php-parallel-lint/php-parallel-lint": "^1.2", - "phpstan/phpstan-phpunit": "^1.0", - "phpunit/phpunit": "^9.5" + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^9.6" }, "type": "phpstan-extension", "extra": { @@ -4541,36 +4541,35 @@ "description": "PHPStan rules for detecting usage of deprecated classes, methods, properties, constants and traits.", "support": { "issues": "https://github.com/phpstan/phpstan-deprecation-rules/issues", - "source": "https://github.com/phpstan/phpstan-deprecation-rules/tree/1.2.1" + "source": "https://github.com/phpstan/phpstan-deprecation-rules/tree/2.0.0" }, - "time": "2024-09-11T15:52:35+00:00" + "time": "2024-10-26T16:04:11+00:00" }, { "name": "phpstan/phpstan-phpunit", - "version": "1.4.1", + "version": "2.0.1", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-phpunit.git", - "reference": "11d4235fbc6313ecbf93708606edfd3222e44949" + "reference": "4b6ad7fab8683ff4efd7887ba26ef8ee171c7475" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/11d4235fbc6313ecbf93708606edfd3222e44949", - "reference": "11d4235fbc6313ecbf93708606edfd3222e44949", + "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/4b6ad7fab8683ff4efd7887ba26ef8ee171c7475", + "reference": "4b6ad7fab8683ff4efd7887ba26ef8ee171c7475", "shasum": "" }, "require": { - "php": "^7.2 || ^8.0", - "phpstan/phpstan": "^1.12" + "php": "^7.4 || ^8.0", + "phpstan/phpstan": "^2.0" }, "conflict": { "phpunit/phpunit": "<7.0" }, "require-dev": { - "nikic/php-parser": "^4.13.0", "php-parallel-lint/php-parallel-lint": "^1.2", - "phpstan/phpstan-strict-rules": "^1.5.1", - "phpunit/phpunit": "^9.5" + "phpstan/phpstan-strict-rules": "^2.0", + "phpunit/phpunit": "^9.6" }, "type": "phpstan-extension", "extra": { @@ -4593,34 +4592,33 @@ "description": "PHPUnit extensions and rules for PHPStan", "support": { "issues": "https://github.com/phpstan/phpstan-phpunit/issues", - "source": "https://github.com/phpstan/phpstan-phpunit/tree/1.4.1" + "source": "https://github.com/phpstan/phpstan-phpunit/tree/2.0.1" }, - "time": "2024-11-12T12:43:59+00:00" + "time": "2024-11-12T12:48:00+00:00" }, { "name": "phpstan/phpstan-strict-rules", - "version": "1.6.1", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-strict-rules.git", - "reference": "daeec748b53de80a97498462513066834ec28f8b" + "reference": "a4a6a08bd4a461e516b9c3b8fdbf0f1883b34158" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/daeec748b53de80a97498462513066834ec28f8b", - "reference": "daeec748b53de80a97498462513066834ec28f8b", + "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/a4a6a08bd4a461e516b9c3b8fdbf0f1883b34158", + "reference": "a4a6a08bd4a461e516b9c3b8fdbf0f1883b34158", "shasum": "" }, "require": { - "php": "^7.2 || ^8.0", - "phpstan/phpstan": "^1.12.4" + "php": "^7.4 || ^8.0", + "phpstan/phpstan": "^2.0" }, "require-dev": { - "nikic/php-parser": "^4.13.0", "php-parallel-lint/php-parallel-lint": "^1.2", - "phpstan/phpstan-deprecation-rules": "^1.1", - "phpstan/phpstan-phpunit": "^1.0", - "phpunit/phpunit": "^9.5" + "phpstan/phpstan-deprecation-rules": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^9.6" }, "type": "phpstan-extension", "extra": { @@ -4642,35 +4640,35 @@ "description": "Extra strict and opinionated rules for PHPStan", "support": { "issues": "https://github.com/phpstan/phpstan-strict-rules/issues", - "source": "https://github.com/phpstan/phpstan-strict-rules/tree/1.6.1" + "source": "https://github.com/phpstan/phpstan-strict-rules/tree/2.0.0" }, - "time": "2024-09-20T14:04:44+00:00" + "time": "2024-10-26T16:04:33+00:00" }, { "name": "phpstan/phpstan-webmozart-assert", - "version": "1.2.11", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-webmozart-assert.git", - "reference": "960dd44e8466191590dd0d7940d3e9496eebebbd" + "reference": "0c641817d2a8f05c7157f92d91986e74d3c8ab0c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-webmozart-assert/zipball/960dd44e8466191590dd0d7940d3e9496eebebbd", - "reference": "960dd44e8466191590dd0d7940d3e9496eebebbd", + "url": "https://api.github.com/repos/phpstan/phpstan-webmozart-assert/zipball/0c641817d2a8f05c7157f92d91986e74d3c8ab0c", + "reference": "0c641817d2a8f05c7157f92d91986e74d3c8ab0c", "shasum": "" }, "require": { - "php": "^7.2 || ^8.0", - "phpstan/phpstan": "^1.12" + "php": "^7.4 || ^8.0", + "phpstan/phpstan": "^2.0" }, "require-dev": { - "nikic/php-parser": "^4.13.0", + "nikic/php-parser": "^5.1", "php-parallel-lint/php-parallel-lint": "^1.2", - "phpstan/phpstan-deprecation-rules": "^1.2", - "phpstan/phpstan-phpunit": "^1.4", - "phpstan/phpstan-strict-rules": "^1.6", - "phpunit/phpunit": "^9.5", + "phpstan/phpstan-deprecation-rules": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpstan/phpstan-strict-rules": "^2.0", + "phpunit/phpunit": "^9.6", "webmozart/assert": "^1.11.0" }, "type": "phpstan-extension", @@ -4693,9 +4691,9 @@ "description": "PHPStan webmozart/assert extension", "support": { "issues": "https://github.com/phpstan/phpstan-webmozart-assert/issues", - "source": "https://github.com/phpstan/phpstan-webmozart-assert/tree/1.2.11" + "source": "https://github.com/phpstan/phpstan-webmozart-assert/tree/2.0.0" }, - "time": "2024-09-11T15:48:08+00:00" + "time": "2024-10-14T03:45:26+00:00" }, { "name": "phpunit/php-code-coverage", diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 6fcd0ae61e..977ce33832 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1,17508 +1,23900 @@ parameters: ignoreErrors: - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 11 path: app/constants.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 2 path: app/services_loader.php - - message: "#^Cannot access offset 'arguments' on mixed\\.$#" + message: '#^Cannot access offset ''arguments'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: app/services_loader.php - - message: "#^Cannot access offset 'class' on mixed\\.$#" + message: '#^Cannot access offset ''class'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: app/services_loader.php - - message: "#^Cannot access offset 'factory' on mixed\\.$#" + message: '#^Cannot access offset ''factory'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: app/services_loader.php - - message: "#^Cannot access offset 0 on mixed\\.$#" + message: '#^Cannot access offset 0 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: app/services_loader.php - - message: "#^Parameter \\#1 \\$arguments of method Symfony\\\\Component\\\\DependencyInjection\\\\Loader\\\\Configurator\\\\ServiceConfigurator\\:\\:args\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#1 \$arguments of method Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ServiceConfigurator\:\:args\(\) expects array, mixed given\.$#' + identifier: argument.type count: 1 path: app/services_loader.php - - message: "#^Parameter \\#1 \\$factory of method Symfony\\\\Component\\\\DependencyInjection\\\\Loader\\\\Configurator\\\\ServiceConfigurator\\:\\:factory\\(\\) expects array\\|string\\|Symfony\\\\Component\\\\DependencyInjection\\\\Loader\\\\Configurator\\\\ReferenceConfigurator\\|Symfony\\\\Component\\\\ExpressionLanguage\\\\Expression, mixed given\\.$#" + message: '#^Parameter \#1 \$factory of method Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ServiceConfigurator\:\:factory\(\) expects array\|string\|Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ReferenceConfigurator\|Symfony\\Component\\ExpressionLanguage\\Expression, mixed given\.$#' + identifier: argument.type count: 1 path: app/services_loader.php - - message: "#^Parameter \\#1 \\$id of method Symfony\\\\Component\\\\DependencyInjection\\\\Loader\\\\Configurator\\\\ServicesConfigurator\\:\\:alias\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$id of method Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ServicesConfigurator\:\:alias\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: app/services_loader.php - - message: "#^Parameter \\#1 \\$id of method Symfony\\\\Component\\\\DependencyInjection\\\\Loader\\\\Configurator\\\\ServicesConfigurator\\:\\:set\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$id of method Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ServicesConfigurator\:\:set\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: app/services_loader.php - - message: "#^Parameter \\#1 \\$servicesFile of closure expects array, mixed given\\.$#" + message: '#^Parameter \#1 \$servicesFile of closure expects array, mixed given\.$#' + identifier: argument.type count: 2 path: app/services_loader.php - - message: "#^Parameter \\#1 \\$string of function substr expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function substr expects string, mixed given\.$#' + identifier: argument.type count: 2 path: app/services_loader.php - - message: "#^Parameter \\#2 \\$class of method Symfony\\\\Component\\\\DependencyInjection\\\\Loader\\\\Configurator\\\\ServicesConfigurator\\:\\:set\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \$class of method Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ServicesConfigurator\:\:set\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: app/services_loader.php - - message: "#^Parameter \\#1 \\$filename of function is_readable expects string, mixed given\\.$#" + message: '#^Binary operation "\." between ''\File \'' and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: public/index.php - - message: "#^Parameter \\#1 \\$filename of function is_readable expects string, mixed given\\.$#" + message: '#^Comparison operation "\<" between int\<80200, 80499\> and 80200 is always false\.$#' + identifier: smaller.alwaysFalse + count: 1 + path: public/index.php + + - + message: '#^Parameter \#1 \$filename of function is_readable expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: public/index.php + + - + message: '#^Binary operation "\." between ''\File \'' and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: public/setup/index.php - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" + message: '#^Comparison operation "\<" between int\<80200, 80499\> and 80200 is always false\.$#' + identifier: smaller.alwaysFalse + count: 1 + path: public/setup/index.php + + - + message: '#^Parameter \#1 \$filename of function is_readable expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: public/setup/index.php + + - + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 2 + path: src/Advisory/Advisor.php + + - + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Advisory/Advisor.php - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" + message: '#^Only booleans are allowed in an if condition, mixed given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Advisory/Advisor.php - - message: "#^Parameter \\#1 \\$haystack of function str_contains expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$haystack of function str_contains expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Advisory/Advisor.php - - message: "#^Parameter \\#1 \\$string of function htmlspecialchars expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function htmlspecialchars expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Advisory/Advisor.php - - message: "#^Parameter \\#1 \\$url of static method PhpMyAdmin\\\\Core\\:\\:linkURL\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$url of static method PhpMyAdmin\\Core\:\:linkURL\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Advisory/Advisor.php - - message: "#^Parameter \\#2 \\$values of function vsprintf expects array\\, mixed given\\.$#" + message: '#^Parameter \#2 \$values of function vsprintf expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Advisory/Advisor.php - - message: "#^Parameter \\#3 \\$subject of function preg_replace_callback expects array\\|string, string\\|null given\\.$#" + message: '#^Parameter \#3 \$subject of function preg_replace_callback expects array\\|string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Advisory/Advisor.php - - message: "#^Property PhpMyAdmin\\\\Advisory\\\\Advisor\\:\\:\\$firedRules \\(array\\\\) does not accept non\\-empty\\-array\\\\.$#" + message: '#^Property PhpMyAdmin\\Advisory\\Advisor\:\:\$firedRules \(list\\) does not accept non\-empty\-list\\.$#' + identifier: assign.propertyType count: 1 path: src/Advisory/Advisor.php - - message: "#^Property PhpMyAdmin\\\\Advisory\\\\Advisor\\:\\:\\$notFiredRules \\(array\\\\) does not accept non\\-empty\\-array\\\\.$#" + message: '#^Property PhpMyAdmin\\Advisory\\Advisor\:\:\$notFiredRules \(list\\) does not accept non\-empty\-list\\.$#' + identifier: assign.propertyType count: 1 path: src/Advisory/Advisor.php - - message: "#^Parameter \\#2 \\$replace of function str_replace expects array\\|string, mixed given\\.$#" + message: '#^Parameter \#2 \$replace of function str_replace expects array\\|string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Bookmarks/Bookmark.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Bookmarks/BookmarkRepository.php - - message: "#^Parameter \\#1 \\$row of method PhpMyAdmin\\\\Bookmarks\\\\BookmarkRepository\\:\\:createFromRow\\(\\) expects array\\, array\\ given\\.$#" + message: '#^Parameter \#1 \$row of method PhpMyAdmin\\Bookmarks\\BookmarkRepository\:\:createFromRow\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 2 path: src/Bookmarks/BookmarkRepository.php - - message: "#^Parameter \\#1 \\$row of method PhpMyAdmin\\\\Bookmarks\\\\BookmarkRepository\\:\\:createFromRow\\(\\) expects array\\, mixed given\\.$#" + message: '#^Parameter \#1 \$row of method PhpMyAdmin\\Bookmarks\\BookmarkRepository\:\:createFromRow\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Bookmarks/BookmarkRepository.php - - message: "#^Parameter \\#2 \\$bookmarkFeature of class PhpMyAdmin\\\\Bookmarks\\\\Bookmark constructor expects PhpMyAdmin\\\\ConfigStorage\\\\Features\\\\BookmarkFeature, PhpMyAdmin\\\\ConfigStorage\\\\Features\\\\BookmarkFeature\\|null given\\.$#" + message: '#^Parameter \#2 \$bookmarkFeature of class PhpMyAdmin\\Bookmarks\\Bookmark constructor expects PhpMyAdmin\\ConfigStorage\\Features\\BookmarkFeature, PhpMyAdmin\\ConfigStorage\\Features\\BookmarkFeature\|null given\.$#' + identifier: argument.type count: 1 path: src/Bookmarks/BookmarkRepository.php - - message: "#^Parameter \\#1 \\$description of method PhpMyAdmin\\\\BrowseForeigners\\:\\:getDescriptionAndTitle\\(\\) expects string, mixed given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 2 path: src/BrowseForeigners.php - - message: "#^Parameter \\#1 \\$state of static method PhpMyAdmin\\\\Charsets\\\\Charset\\:\\:fromServer\\(\\) expects array\\{Charset\\?\\: string, Description\\?\\: string, Default collation\\?\\: string, Maxlen\\?\\: string\\}, array\\ given\\.$#" + message: '#^Parameter \#1 \$description of method PhpMyAdmin\\BrowseForeigners\:\:getDescriptionAndTitle\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/BrowseForeigners.php + + - + message: '#^Parameter \#1 \$state of static method PhpMyAdmin\\Charsets\\Charset\:\:fromServer\(\) expects array\{Charset\?\: string, Description\?\: string, Default collation\?\: string, Maxlen\?\: string\}, array\ given\.$#' + identifier: argument.type count: 1 path: src/Charsets.php - - message: "#^Parameter \\#1 \\$state of static method PhpMyAdmin\\\\Charsets\\\\Collation\\:\\:fromServer\\(\\) expects array\\, array\\ given\\.$#" + message: '#^Parameter \#1 \$state of static method PhpMyAdmin\\Charsets\\Collation\:\:fromServer\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: src/Charsets.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Command/CacheWarmupCommand.php - - message: "#^Parameter \\#1 \\$source of method PhpMyAdmin\\\\Config\\:\\:loadAndCheck\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$source of method PhpMyAdmin\\Config\:\:loadAndCheck\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Command/CacheWarmupCommand.php - - message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \.\.\.\$values of function sprintf expects bool\|float\|int\|string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Command/CacheWarmupCommand.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\.$#' + identifier: assign.propertyType count: 1 path: src/Command/CacheWarmupCommand.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Command/FixPoTwigCommand.php - - message: "#^Cannot access offset 0 on mixed\\.$#" - count: 2 - path: src/Command/FixPoTwigCommand.php - - - - message: "#^Cannot access offset 1 on mixed\\.$#" + message: '#^Binary operation "\." between mixed and ''\:'' results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Command/FixPoTwigCommand.php - - message: "#^Cannot access offset 'exception' on mixed\\.$#" + message: '#^Binary operation "\." between mixed and ''\:0'' results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Command/FixPoTwigCommand.php + + - + message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Command/FixPoTwigCommand.php + + - + message: '#^Cannot access offset 0 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 2 + path: src/Command/FixPoTwigCommand.php + + - + message: '#^Cannot access offset 1 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Command/FixPoTwigCommand.php + + - + message: '#^Cannot access offset ''exception'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Command/TwigLintCommand.php - - message: "#^Cannot access offset 'file' on mixed\\.$#" + message: '#^Cannot access offset ''file'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Command/TwigLintCommand.php - - message: "#^Cannot access offset 'template' on mixed\\.$#" + message: '#^Cannot access offset ''template'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Command/TwigLintCommand.php - - message: "#^Cannot access offset 'valid' on mixed\\.$#" + message: '#^Cannot access offset ''valid'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Command/TwigLintCommand.php - - message: "#^Only booleans are allowed in &&, mixed given on the left side\\.$#" + message: '#^Only booleans are allowed in &&, mixed given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 1 path: src/Command/TwigLintCommand.php - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Command/TwigLintCommand.php - - message: "#^Only booleans are allowed in a ternary operator condition, \\(callable\\)\\|null given\\.$#" + message: '#^Only booleans are allowed in a ternary operator condition, \(callable\)\|null given\.$#' + identifier: ternary.condNotBoolean count: 1 path: src/Command/TwigLintCommand.php - - message: "#^Only booleans are allowed in a ternary operator condition, mixed given\\.$#" + message: '#^Only booleans are allowed in a ternary operator condition, mixed given\.$#' + identifier: ternary.condNotBoolean count: 1 path: src/Command/TwigLintCommand.php - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" + message: '#^Only booleans are allowed in an if condition, mixed given\.$#' + identifier: if.condNotBoolean count: 2 path: src/Command/TwigLintCommand.php - - message: "#^Parameter \\#1 \\$callback of function set_error_handler expects \\(callable\\(int, string, string, int\\)\\: bool\\)\\|null, Closure\\(int, string, string, int\\)\\: mixed given\\.$#" + message: '#^Parameter \#1 \$callback of function set_error_handler expects \(callable\(int, string, string, int\)\: bool\)\|null, Closure\(int, string, string, int\)\: mixed given\.$#' + identifier: argument.type count: 1 path: src/Command/TwigLintCommand.php - - message: "#^Parameter \\#2 \\$template of method PhpMyAdmin\\\\Command\\\\TwigLintCommand\\:\\:renderException\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$template of method PhpMyAdmin\\Command\\TwigLintCommand\:\:renderException\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Command/TwigLintCommand.php - - message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \.\.\.\$values of function sprintf expects bool\|float\|int\|string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Command/TwigLintCommand.php - - message: "#^Parameter \\#3 \\$exception of method PhpMyAdmin\\\\Command\\\\TwigLintCommand\\:\\:renderException\\(\\) expects Twig\\\\Error\\\\Error, mixed given\\.$#" + message: '#^Parameter \#3 \$exception of method PhpMyAdmin\\Command\\TwigLintCommand\:\:renderException\(\) expects Twig\\Error\\Error, mixed given\.$#' + identifier: argument.type count: 1 path: src/Command/TwigLintCommand.php - - message: "#^Parameter \\#4 \\$file of method PhpMyAdmin\\\\Command\\\\TwigLintCommand\\:\\:renderException\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#4 \$file of method PhpMyAdmin\\Command\\TwigLintCommand\:\:renderException\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Command/TwigLintCommand.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 3 path: src/Config.php - - message: "#^Cannot access offset 'LoginCookieValidity' on mixed\\.$#" + message: '#^Cannot access offset ''LoginCookieValidity'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Config.php - - message: "#^Cannot access offset 'Server' on mixed\\.$#" + message: '#^Cannot access offset ''Server'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Config.php - - message: "#^Cannot access offset 'ThemeDefault' on mixed\\.$#" + message: '#^Cannot access offset ''ThemeDefault'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Config.php - - message: "#^Cannot access offset 'config_mtime' on mixed\\.$#" + message: '#^Cannot access offset ''config_mtime'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Config.php - - message: "#^Cannot access offset 'lang' on mixed\\.$#" + message: '#^Cannot access offset ''lang'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Config.php - - message: "#^Cannot access offset 'userprefs' on mixed\\.$#" + message: '#^Cannot access offset ''userprefs'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 5 path: src/Config.php - - message: "#^Cannot access offset 'userprefs_mtime' on mixed\\.$#" + message: '#^Cannot access offset ''userprefs_mtime'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Config.php - - message: "#^Cannot access offset 'userprefs_type' on mixed\\.$#" + message: '#^Cannot access offset ''userprefs_type'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Config.php - - message: "#^Cannot access offset non\\-falsy\\-string on mixed\\.$#" + message: '#^Cannot access offset non\-falsy\-string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 10 path: src/Config.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 2 path: src/Config.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 7 path: src/Config.php - - message: "#^Method PhpMyAdmin\\\\Config\\:\\:getChangeLogFilePath\\(\\) should return string but returns mixed\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 3 + path: src/Config.php + + - + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 1 path: src/Config.php - - message: "#^Method PhpMyAdmin\\\\Config\\:\\:getUploadTempDir\\(\\) should return string\\|null but returns string\\|false\\.$#" + message: '#^Method PhpMyAdmin\\Config\:\:getChangeLogFilePath\(\) should return string but returns mixed\.$#' + identifier: return.type count: 1 path: src/Config.php - - message: "#^Only booleans are allowed in &&, string\\|null given on the right side\\.$#" + message: '#^Method PhpMyAdmin\\Config\:\:getUploadTempDir\(\) should return string\|null but returns string\|false\.$#' + identifier: return.type count: 1 path: src/Config.php - - message: "#^Only booleans are allowed in a negated boolean, int\\<0, 2\\> given\\.$#" + message: '#^Only booleans are allowed in &&, string\|null given on the right side\.$#' + identifier: booleanAnd.rightNotBoolean count: 1 path: src/Config.php - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, int\<0, 2\> given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Config.php - - message: "#^Only booleans are allowed in a negated boolean, string\\|false given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean + count: 1 + path: src/Config.php + + - + message: '#^Only booleans are allowed in a negated boolean, string\|false given\.$#' + identifier: booleanNot.exprNotBoolean count: 2 path: src/Config.php - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" + message: '#^Only booleans are allowed in an if condition, mixed given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Config.php - - message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" + message: '#^Only booleans are allowed in an if condition, string\|false given\.$#' + identifier: if.condNotBoolean count: 2 path: src/Config.php - - message: "#^Only booleans are allowed in \\|\\|, string\\|false given on the left side\\.$#" + message: '#^Only booleans are allowed in \|\|, string\|false given on the left side\.$#' + identifier: booleanOr.leftNotBoolean count: 1 path: src/Config.php - - message: "#^Parameter \\#1 \\$code of method PhpMyAdmin\\\\I18n\\\\LanguageManager\\:\\:getLanguage\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$code of method PhpMyAdmin\\I18n\\LanguageManager\:\:getLanguage\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config.php - - message: "#^Parameter \\#1 \\$collation of method PhpMyAdmin\\\\DatabaseInterface\\:\\:setCollation\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$collation of method PhpMyAdmin\\DatabaseInterface\:\:setCollation\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config.php - - message: "#^Parameter \\#1 \\$filename of static method PhpMyAdmin\\\\Config\\:\\:renderCustom\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$filename of static method PhpMyAdmin\\Config\:\:renderCustom\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Config.php - - message: "#^Parameter \\#1 \\$haystack of function str_contains expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$haystack of function str_contains expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config.php - - message: "#^Parameter \\#1 \\$string of function rtrim expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$server of class PhpMyAdmin\\Config\\Settings\\Server constructor expects array\, array given\.$#' + identifier: argument.type count: 1 path: src/Config.php - - message: "#^Parameter \\#1 \\$theme of method PhpMyAdmin\\\\Theme\\\\ThemeManager\\:\\:checkTheme\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$settings of class PhpMyAdmin\\Config\\Settings constructor expects array\, array given\.$#' + identifier: argument.type count: 1 path: src/Config.php - - message: "#^Parameter \\#1 \\$theme of method PhpMyAdmin\\\\Theme\\\\ThemeManager\\:\\:setActiveTheme\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$settings of class PhpMyAdmin\\Config\\Settings constructor expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: src/Config.php - - message: "#^Parameter \\#1 \\$url of function parse_url expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function rtrim expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Config.php + + - + message: '#^Parameter \#1 \$theme of method PhpMyAdmin\\Theme\\ThemeManager\:\:checkTheme\(\) expects string\|null, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Config.php + + - + message: '#^Parameter \#1 \$theme of method PhpMyAdmin\\Theme\\ThemeManager\:\:setActiveTheme\(\) expects string\|null, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Config.php + + - + message: '#^Parameter \#1 \$url of function parse_url expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Config.php - - message: "#^Parameter \\#2 \\.\\.\\.\\$replacements of function array_replace_recursive expects array, mixed given\\.$#" + message: '#^Parameter \#2 \.\.\.\$replacements of function array_replace_recursive expects array, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config.php - - message: "#^Parameter \\#3 \\$default of method PhpMyAdmin\\\\Config\\:\\:setCookie\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#3 \$default of method PhpMyAdmin\\Config\:\:setCookie\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\.$#' + identifier: assign.propertyType count: 2 path: src/Config.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\\.$#' + identifier: assign.propertyType count: 1 path: src/Config.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\.$#' + identifier: assign.propertyType count: 1 path: src/Config.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept non\\-empty\\-array\\\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType count: 1 path: src/Config.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between ''\:'' and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Config/ConfigFile.php - - message: "#^Cannot access offset 'ServerDefault' on mixed\\.$#" + message: '#^Binary operation "\.\=" between ''mysqli\://'' and mixed results in an error\.$#' + identifier: assignOp.invalid count: 1 path: src/Config/ConfigFile.php - - message: "#^Cannot access offset 'Servers' on mixed\\.$#" + message: '#^Binary operation "\.\=" between non\-falsy\-string and mixed results in an error\.$#' + identifier: assignOp.invalid + count: 2 + path: src/Config/ConfigFile.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 1 + path: src/Config/ConfigFile.php + + - + message: '#^Cannot access offset ''ServerDefault'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Config/ConfigFile.php + + - + message: '#^Cannot access offset ''Servers'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 8 path: src/Config/ConfigFile.php - - message: "#^Cannot access offset int on mixed\\.$#" + message: '#^Cannot access offset int on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 6 path: src/Config/ConfigFile.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 5 path: src/Config/ConfigFile.php - - message: "#^Method PhpMyAdmin\\\\Config\\\\ConfigFile\\:\\:getCanonicalPath\\(\\) should return string but returns string\\|null\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed count: 1 path: src/Config/ConfigFile.php - - message: "#^Method PhpMyAdmin\\\\Config\\\\ConfigFile\\:\\:getConfig\\(\\) should return array but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\Config\\ConfigFile\:\:getCanonicalPath\(\) should return string but returns string\|null\.$#' + identifier: return.type count: 1 path: src/Config/ConfigFile.php - - message: "#^Method PhpMyAdmin\\\\Config\\\\ConfigFile\\:\\:getServerName\\(\\) should return string but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\Config\\ConfigFile\:\:getConfig\(\) should return array\ but returns mixed\.$#' + identifier: return.type + count: 1 + path: src/Config/ConfigFile.php + + - + message: '#^Method PhpMyAdmin\\Config\\ConfigFile\:\:getServerName\(\) should return string but returns mixed\.$#' + identifier: return.type count: 2 path: src/Config/ConfigFile.php - - message: "#^Method PhpMyAdmin\\\\Config\\\\ConfigFile\\:\\:getServers\\(\\) should return array but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\Config\\ConfigFile\:\:getServers\(\) should return array\ but returns mixed\.$#' + identifier: return.type count: 1 path: src/Config/ConfigFile.php - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" + message: '#^Only booleans are allowed in an if condition, mixed given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Config/ConfigFile.php - - message: "#^Parameter \\#1 \\$array of function array_flip expects array\\, array given\\.$#" + message: '#^Parameter \#1 \$array of function array_flip expects array\, array\ given\.$#' + identifier: argument.type count: 2 path: src/Config/ConfigFile.php - - message: "#^Parameter \\#1 \\$array of method PhpMyAdmin\\\\Config\\\\ConfigFile\\:\\:getFlatArray\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#1 \$array of method PhpMyAdmin\\Config\\ConfigFile\:\:getFlatArray\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/ConfigFile.php - - message: "#^Parameter \\#1 \\$path of method PhpMyAdmin\\\\Config\\\\ConfigFile\\:\\:getCanonicalPath\\(\\) expects string, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#1 \$path of method PhpMyAdmin\\Config\\ConfigFile\:\:getCanonicalPath\(\) expects string, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Config/ConfigFile.php - - message: "#^Parameter \\#1 \\$path of method PhpMyAdmin\\\\Config\\\\ConfigFile\\:\\:set\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$path of method PhpMyAdmin\\Config\\ConfigFile\:\:set\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/ConfigFile.php - - message: "#^Parameter \\#1 \\$path of static method PhpMyAdmin\\\\Core\\:\\:arrayRead\\(\\) expects string, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#1 \$path of static method PhpMyAdmin\\Core\:\:arrayRead\(\) expects string, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Config/ConfigFile.php - - message: "#^Parameter \\#1 \\$path of static method PhpMyAdmin\\\\Core\\:\\:arrayRead\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$path of static method PhpMyAdmin\\Core\:\:arrayRead\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/ConfigFile.php - - message: "#^Parameter \\#1 \\$path of static method PhpMyAdmin\\\\Core\\:\\:arrayRemove\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$path of static method PhpMyAdmin\\Core\:\:arrayRemove\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/ConfigFile.php - - message: "#^Parameter \\#1 \\$path of static method PhpMyAdmin\\\\Core\\:\\:arrayWrite\\(\\) expects string, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#1 \$path of static method PhpMyAdmin\\Core\:\:arrayWrite\(\) expects string, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Config/ConfigFile.php - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/ConfigFile.php - - message: "#^Parameter \\#2 \\$array of static method PhpMyAdmin\\\\Core\\:\\:arrayRead\\(\\) expects array, array\\|null given\\.$#" + message: '#^Parameter \#2 \$array of static method PhpMyAdmin\\Core\:\:arrayRead\(\) expects array\, array\\|null given\.$#' + identifier: argument.type count: 1 path: src/Config/ConfigFile.php - - message: "#^Parameter \\#2 \\$array of static method PhpMyAdmin\\\\Core\\:\\:arrayRead\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#2 \$array of static method PhpMyAdmin\\Core\:\:arrayRead\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 4 path: src/Config/ConfigFile.php - - message: "#^Parameter \\#3 \\$canonicalPath of method PhpMyAdmin\\\\Config\\\\ConfigFile\\:\\:set\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \$array of static method PhpMyAdmin\\Core\:\:arrayRemove\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/ConfigFile.php - - message: "#^Property PhpMyAdmin\\\\Config\\\\ConfigFile\\:\\:\\$setFilter type has no value type specified in iterable type array\\.$#" + message: '#^Parameter \#2 \$array of static method PhpMyAdmin\\Core\:\:arrayWrite\(\) expects array\, mixed given\.$#' + identifier: argument.type + count: 3 + path: src/Config/ConfigFile.php + + - + message: '#^Parameter \#3 \$canonicalPath of method PhpMyAdmin\\Config\\ConfigFile\:\:set\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/ConfigFile.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Property PhpMyAdmin\\Config\\ConfigFile\:\:\$setFilter type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: src/Config/ConfigFile.php + + - + message: '#^Binary operation "\." between mixed and ''/'' results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Config/Form.php - - message: "#^PHPDoc tag @var for variable \\$value has no value type specified in iterable type array\\.$#" + message: '#^Binary operation "\." between mixed and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 2 + path: src/Config/Form.php + + - + message: '#^Binary operation "\.\=" between mixed and non\-falsy\-string results in an error\.$#' + identifier: assignOp.invalid count: 1 path: src/Config/Form.php - - message: "#^Parameter \\#1 \\$keys of function array_combine expects array\\, array\\, mixed\\> given\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 1 path: src/Config/Form.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^PHPDoc tag @var for variable \$value has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: src/Config/Form.php + + - + message: '#^Parameter \#1 \$keys of function array_combine expects array\, list\ given\.$#' + identifier: argument.type + count: 1 + path: src/Config/Form.php + + - + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 2 path: src/Config/FormDisplay.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ - count: 4 + message: '#^Binary operation "\." between mixed and ''\-userprefs\-allow'' results in an error\.$#' + identifier: binaryOp.invalid + count: 2 path: src/Config/FormDisplay.php - - message: "#^Call to function array_search\\(\\) requires parameter \\#3 to be set\\.$#" - count: 4 - path: src/Config/FormDisplay.php - - - - message: "#^Call to function function_exists\\(\\) with 'bzcompress'\\|'gzcompress'\\|'gzencode' will always evaluate to true\\.$#" + message: '#^Binary operation "\." between mixed and ''\: '' results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Config/FormDisplay.php - - message: "#^Call to function function_exists\\(\\) with 'bzopen'\\|'gzopen'\\|'zip_open' will always evaluate to true\\.$#" + message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Config/FormDisplay.php - - message: "#^Cannot access an offset on mixed\\.$#" + message: '#^Binary operation "\.\=" between mixed and non\-falsy\-string results in an error\.$#' + identifier: assignOp.invalid + count: 1 + path: src/Config/FormDisplay.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 4 + path: src/Config/FormDisplay.php + + - + message: '#^Call to function array_search\(\) requires parameter \#3 to be set\.$#' + identifier: function.strict + count: 4 + path: src/Config/FormDisplay.php + + - + message: '#^Call to function function_exists\(\) with ''bzcompress''\|''gzcompress''\|''gzencode'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/Config/FormDisplay.php + + - + message: '#^Call to function function_exists\(\) with ''bzopen''\|''gzopen''\|''zip_open'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/Config/FormDisplay.php + + - + message: '#^Cannot access an offset on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Config/FormDisplay.php - - message: "#^Cannot access offset 'iconv' on mixed\\.$#" + message: '#^Cannot access offset ''iconv'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Config/FormDisplay.php - - message: "#^Cannot access offset 'wrapper_params' on mixed\\.$#" + message: '#^Cannot access offset ''wrapper_params'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Config/FormDisplay.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 2 path: src/Config/FormDisplay.php - - message: "#^Only booleans are allowed in &&, mixed given on the left side\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 1 path: src/Config/FormDisplay.php - - message: "#^Only booleans are allowed in a negated boolean, int\\|string\\|false given\\.$#" + message: '#^Only booleans are allowed in &&, mixed given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 1 path: src/Config/FormDisplay.php - - message: "#^Only booleans are allowed in a ternary operator condition, mixed given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, int\|string\|false given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Config/FormDisplay.php - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" + message: '#^Only booleans are allowed in a ternary operator condition, mixed given\.$#' + identifier: ternary.condNotBoolean + count: 1 + path: src/Config/FormDisplay.php + + - + message: '#^Only booleans are allowed in an if condition, mixed given\.$#' + identifier: if.condNotBoolean count: 3 path: src/Config/FormDisplay.php - - message: "#^Parameter \\#1 \\$array of function array_flip expects array\\, mixed given\\.$#" + message: '#^Parameter \#1 \$array of function array_flip expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/FormDisplay.php - - message: "#^Parameter \\#1 \\$canonicalPath of method PhpMyAdmin\\\\Config\\\\ConfigFile\\:\\:getDefault\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$canonicalPath of method PhpMyAdmin\\Config\\ConfigFile\:\:getDefault\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/FormDisplay.php - - message: "#^Parameter \\#1 \\$fieldId of method PhpMyAdmin\\\\Config\\\\FormDisplayTemplate\\:\\:addJsValidate\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$fieldId of method PhpMyAdmin\\Config\\FormDisplayTemplate\:\:addJsValidate\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/FormDisplay.php - - message: "#^Parameter \\#1 \\$optionName of method PhpMyAdmin\\\\Config\\\\Form\\:\\:getOptionType\\(\\) expects string, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#1 \$optionName of method PhpMyAdmin\\Config\\Form\:\:getOptionType\(\) expects string, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Config/FormDisplay.php - - message: "#^Parameter \\#1 \\$path of method PhpMyAdmin\\\\Config\\\\ConfigFile\\:\\:getValue\\(\\) expects string, int\\|string\\|false given\\.$#" + message: '#^Parameter \#1 \$path of method PhpMyAdmin\\Config\\ConfigFile\:\:getValue\(\) expects string, int\|string\|false given\.$#' + identifier: argument.type count: 1 path: src/Config/FormDisplay.php - - message: "#^Parameter \\#1 \\$path of method PhpMyAdmin\\\\Config\\\\ConfigFile\\:\\:set\\(\\) expects string, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#1 \$path of method PhpMyAdmin\\Config\\ConfigFile\:\:set\(\) expects string, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Config/FormDisplay.php - - message: "#^Parameter \\#1 \\$path of method PhpMyAdmin\\\\Config\\\\ConfigFile\\:\\:set\\(\\) expects string, int\\|string given\\.$#" + message: '#^Parameter \#1 \$path of method PhpMyAdmin\\Config\\ConfigFile\:\:set\(\) expects string, int\|string given\.$#' + identifier: argument.type count: 1 path: src/Config/FormDisplay.php - - message: "#^Parameter \\#1 \\$path of static method PhpMyAdmin\\\\Config\\\\Descriptions\\:\\:get\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$path of static method PhpMyAdmin\\Config\\Descriptions\:\:get\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/FormDisplay.php - - message: "#^Parameter \\#2 \\$array of function implode expects array\\, mixed given\\.$#" + message: '#^Parameter \#1 \$value of method PhpMyAdmin\\Config\\FormDisplay\:\:validateSelect\(\) expects bool\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/FormDisplay.php - - message: "#^Parameter \\#2 \\$array of function implode expects array\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \$array of function implode expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/FormDisplay.php - - message: "#^Parameter \\#2 \\$errorList of method PhpMyAdmin\\\\Config\\\\FormDisplayTemplate\\:\\:displayErrors\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#2 \$array of function implode expects array\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/FormDisplay.php - - message: "#^Parameter \\#2 \\$field of method PhpMyAdmin\\\\Config\\\\FormDisplay\\:\\:displayFieldInput\\(\\) expects string, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#2 \$errorList of method PhpMyAdmin\\Config\\FormDisplayTemplate\:\:displayErrors\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/FormDisplay.php - - message: "#^Parameter \\#2 \\$key of method PhpMyAdmin\\\\Config\\\\FormDisplay\\:\\:fillPostArrayParameters\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$field of method PhpMyAdmin\\Config\\FormDisplay\:\:displayFieldInput\(\) expects string, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Config/FormDisplay.php - - message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$key of method PhpMyAdmin\\Config\\FormDisplay\:\:fillPostArrayParameters\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/FormDisplay.php - - message: "#^Parameter \\#2 \\$subject of function preg_match expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$string of function explode expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Config/FormDisplay.php + + - + message: '#^Parameter \#2 \$subject of function preg_match expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Config/FormDisplay.php - - message: "#^Parameter \\#2 \\$validators of method PhpMyAdmin\\\\Config\\\\FormDisplayTemplate\\:\\:addJsValidate\\(\\) expects array\\|string, mixed given\\.$#" + message: '#^Parameter \#2 \$validators of method PhpMyAdmin\\Config\\FormDisplayTemplate\:\:addJsValidate\(\) expects array\\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/FormDisplay.php - - message: "#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, int\\|string\\|false given\\.$#" + message: '#^Parameter \#3 \$subject of function str_replace expects array\\|string, int\|string\|false given\.$#' + identifier: argument.type count: 1 path: src/Config/FormDisplay.php - - message: "#^Parameter \\#4 \\$workPath of method PhpMyAdmin\\\\Config\\\\FormDisplay\\:\\:displayFieldInput\\(\\) expects string, int\\|string\\|false given\\.$#" + message: '#^Parameter \#4 \$workPath of method PhpMyAdmin\\Config\\FormDisplay\:\:displayFieldInput\(\) expects string, int\|string\|false given\.$#' + identifier: argument.type count: 1 path: src/Config/FormDisplay.php - - message: "#^Parameter \\#5 \\$translatedPath of method PhpMyAdmin\\\\Config\\\\FormDisplay\\:\\:displayFieldInput\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#5 \$translatedPath of method PhpMyAdmin\\Config\\FormDisplay\:\:displayFieldInput\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/FormDisplay.php - - message: "#^Parameter \\#7 \\$opts of method PhpMyAdmin\\\\Config\\\\FormDisplayTemplate\\:\\:displayInput\\(\\) expects array\\|null, mixed given\\.$#" + message: '#^Property PhpMyAdmin\\Config\\FormDisplay\:\:\$userprefsKeys type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Config/FormDisplay.php - - message: "#^Property PhpMyAdmin\\\\Config\\\\FormDisplay\\:\\:\\$userprefsKeys type has no value type specified in iterable type array\\.$#" - count: 1 - path: src/Config/FormDisplay.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Config/FormDisplayTemplate.php - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean count: 2 path: src/Config/FormDisplayTemplate.php - - message: "#^Only booleans are allowed in a ternary operator condition, mixed given\\.$#" + message: '#^Only booleans are allowed in a ternary operator condition, mixed given\.$#' + identifier: ternary.condNotBoolean count: 1 path: src/Config/FormDisplayTemplate.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Config/Forms/BaseForm.php - - message: "#^Method PhpMyAdmin\\\\Config\\\\Forms\\\\BaseForm\\:\\:getFields\\(\\) should return array\\ but returns array\\, mixed\\>\\.$#" + message: '#^Method PhpMyAdmin\\Config\\Forms\\BaseForm\:\:getFields\(\) should return array\ but returns list\\.$#' + identifier: return.type count: 1 path: src/Config/Forms/BaseForm.php - - message: "#^Parameter \\#1 \\$formName of method PhpMyAdmin\\\\Config\\\\FormDisplay\\:\\:registerForm\\(\\) expects string, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#1 \$formName of method PhpMyAdmin\\Config\\FormDisplay\:\:registerForm\(\) expects string, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Config/Forms/BaseForm.php - - message: "#^Parameter \\#2 \\$form of method PhpMyAdmin\\\\Config\\\\FormDisplay\\:\\:registerForm\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#2 \$form of method PhpMyAdmin\\Config\\FormDisplay\:\:registerForm\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/Forms/BaseForm.php - - message: "#^Parameter \\#1 \\$array of function array_diff expects array, mixed given\\.$#" + message: '#^Parameter \#1 \$array of function array_diff expects an array of values castable to string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/Forms/Setup/FeaturesForm.php - - message: "#^Cannot access an offset on mixed\\.$#" + message: '#^Parameter \#1 \$array of function array_diff expects array, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Config/Forms/Setup/FeaturesForm.php + + - + message: '#^Cannot access an offset on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Config/Forms/Setup/MainForm.php - - message: "#^Cannot access an offset on mixed\\.$#" + message: '#^Cannot access an offset on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Config/Forms/Setup/SqlForm.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Config/Forms/User/FeaturesForm.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Config/PageSettings.php - - message: "#^Parameter \\#1 \\$url of method PhpMyAdmin\\\\ResponseRenderer\\:\\:redirect\\(\\) expects non\\-empty\\-string, string given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 2 + path: src/Config/PageSettings.php + + - + message: '#^Parameter \#1 \$url of method PhpMyAdmin\\ResponseRenderer\:\:redirect\(\) expects non\-empty\-string, string given\.$#' + identifier: argument.type count: 1 path: src/Config/PageSettings.php - - message: "#^Only booleans are allowed in &&, mixed given on the left side\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 4 + path: src/Config/ServerConfigChecks.php + + - + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 1 path: src/Config/ServerConfigChecks.php - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" + message: '#^Only booleans are allowed in &&, mixed given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean + count: 1 + path: src/Config/ServerConfigChecks.php + + - + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean count: 6 path: src/Config/ServerConfigChecks.php - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" + message: '#^Only booleans are allowed in an if condition, mixed given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Config/ServerConfigChecks.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 35 path: src/Config/Settings.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 45 path: src/Config/Settings.php - - message: "#^Method PhpMyAdmin\\\\Config\\\\Settings\\:\\:setTempDir\\(\\) should return string but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\Config\\Settings\:\:setTempDir\(\) should return string but returns mixed\.$#' + identifier: return.type count: 1 path: src/Config/Settings.php - - message: "#^Method PhpMyAdmin\\\\Config\\\\Settings\\:\\:setVersionCheck\\(\\) should return bool but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\Config\\Settings\:\:setVersionCheck\(\) should return bool but returns mixed\.$#' + identifier: return.type count: 1 path: src/Config/Settings.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Parameter \#1 \$export of class PhpMyAdmin\\Config\\Settings\\Export constructor expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Config/Settings.php + + - + message: '#^Parameter \#1 \$import of class PhpMyAdmin\\Config\\Settings\\Import constructor expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Config/Settings.php + + - + message: '#^Parameter \#1 \$schema of class PhpMyAdmin\\Config\\Settings\\Schema constructor expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Config/Settings.php + + - + message: '#^Parameter \#1 \$server of class PhpMyAdmin\\Config\\Settings\\Server constructor expects array\, array given\.$#' + identifier: argument.type + count: 1 + path: src/Config/Settings.php + + - + message: '#^Parameter \#1 \$server of class PhpMyAdmin\\Config\\Settings\\Server constructor expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Config/Settings.php + + - + message: '#^Parameter \#1 \$transformations of class PhpMyAdmin\\Config\\Settings\\Transformations constructor expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Config/Settings.php + + - + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 1 path: src/Config/Settings/Console.php - - message: "#^Only booleans are allowed in &&, mixed given on the right side\\.$#" + message: '#^Only booleans are allowed in &&, mixed given on the right side\.$#' + identifier: booleanAnd.rightNotBoolean count: 4 path: src/Config/Settings/Debug.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 2 path: src/Config/Settings/Export.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 23 path: src/Config/Settings/Export.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 1 path: src/Config/Settings/Import.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 11 path: src/Config/Settings/Import.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 2 path: src/Config/Settings/Schema.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^@readonly property PhpMyAdmin\\Config\\Settings\\Server\:\:\$ssl is assigned outside of the constructor\.$#' + identifier: property.readOnlyByPhpDocAssignNotInConstructor + count: 1 + path: src/Config/Settings/Server.php + + - + message: '#^@readonly property cannot have a default value\.$#' + identifier: property.readOnlyByPhpDocDefaultValue + count: 10 + path: src/Config/Settings/Server.php + + - + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 2 path: src/Config/Settings/Server.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 58 path: src/Config/Settings/Server.php - - message: "#^Parameter \\#1 \\$callback of function array_map expects \\(callable\\(mixed\\)\\: mixed\\)\\|null, Closure\\(bool\\|float\\|int\\|resource\\|string\\|null\\)\\: string given\\.$#" + message: '#^Parameter \#1 \$callback of function array_map expects \(callable\(mixed\)\: mixed\)\|null, Closure\(bool\|float\|int\|resource\|string\|null\)\: string given\.$#' + identifier: argument.type count: 1 path: src/Config/Settings/Server.php - - message: "#^Only booleans are allowed in \\|\\|, mixed given on the right side\\.$#" + message: '#^Only booleans are allowed in \|\|, mixed given on the right side\.$#' + identifier: booleanOr.rightNotBoolean count: 4 path: src/Config/Settings/SqlQueryBox.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 11 path: src/Config/Settings/Transformations.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 12 path: src/Config/Settings/Transformations.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Config/SpecialSchemaLinks.php - - message: "#^Argument of an invalid type array\\|object supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type array\\|object supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Config/Validator.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Config/Validator.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: src/Config/Validator.php - - message: "#^Cannot access offset mixed on mixed\\.$#" + message: '#^Cannot access offset mixed on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Config/Validator.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 21 path: src/Config/Validator.php - - message: "#^Method PhpMyAdmin\\\\Config\\\\Validator\\:\\:getValidators\\(\\) should return array but returns mixed\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 1 + path: src/Config/Validator.php + + - + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 1 + path: src/Config/Validator.php + + - + message: '#^Method PhpMyAdmin\\Config\\Validator\:\:getValidators\(\) should return array\ but returns mixed\.$#' + identifier: return.type count: 2 path: src/Config/Validator.php - - message: "#^Only booleans are allowed in a negated boolean, mysqli\\|false given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, mysqli\|false given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Config/Validator.php - - message: "#^Only booleans are allowed in a ternary operator condition, int\\<0, max\\>\\|false given\\.$#" + message: '#^Only booleans are allowed in a ternary operator condition, int\<0, max\>\|false given\.$#' + identifier: ternary.condNotBoolean count: 1 path: src/Config/Validator.php - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" + message: '#^Only booleans are allowed in an if condition, mixed given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Config/Validator.php - - message: "#^Parameter \\#1 \\$haystack of function mb_strpos expects string, \\(int\\|string\\) given\\.$#" + message: '#^PHPDoc tag @var with type string is not subtype of native type non\-empty\-string\|null\.$#' + identifier: varTag.nativeType count: 1 path: src/Config/Validator.php - - message: "#^Parameter \\#1 \\$haystack of function str_starts_with expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$haystack of function mb_strpos expects string, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Config/Validator.php - - message: "#^Parameter \\#1 \\$host of static method PhpMyAdmin\\\\Config\\\\Validator\\:\\:testDBConnection\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$haystack of function str_starts_with expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Config/Validator.php + + - + message: '#^Parameter \#1 \$host of static method PhpMyAdmin\\Config\\Validator\:\:testDBConnection\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Config/Validator.php - - message: "#^Parameter \\#1 \\$path of method PhpMyAdmin\\\\Config\\\\ConfigFile\\:\\:getCanonicalPath\\(\\) expects string, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#1 \$path of method PhpMyAdmin\\Config\\ConfigFile\:\:getCanonicalPath\(\) expects string, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Config/Validator.php - - message: "#^Parameter \\#1 \\$path of static method PhpMyAdmin\\\\Config\\\\Validator\\:\\:validateByRegex\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$path of static method PhpMyAdmin\\Config\\Validator\:\:validateByRegex\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/Validator.php - - message: "#^Parameter \\#1 \\$path of static method PhpMyAdmin\\\\Config\\\\Validator\\:\\:validateNonNegativeNumber\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$path of static method PhpMyAdmin\\Config\\Validator\:\:validateNonNegativeNumber\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/Validator.php - - message: "#^Parameter \\#1 \\$path of static method PhpMyAdmin\\\\Config\\\\Validator\\:\\:validatePMAStorage\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$path of static method PhpMyAdmin\\Config\\Validator\:\:validatePMAStorage\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/Validator.php - - message: "#^Parameter \\#1 \\$path of static method PhpMyAdmin\\\\Config\\\\Validator\\:\\:validatePortNumber\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$path of static method PhpMyAdmin\\Config\\Validator\:\:validatePortNumber\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/Validator.php - - message: "#^Parameter \\#1 \\$path of static method PhpMyAdmin\\\\Config\\\\Validator\\:\\:validatePositiveNumber\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$path of static method PhpMyAdmin\\Config\\Validator\:\:validatePositiveNumber\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/Validator.php - - message: "#^Parameter \\#1 \\$path of static method PhpMyAdmin\\\\Config\\\\Validator\\:\\:validateRegex\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$path of static method PhpMyAdmin\\Config\\Validator\:\:validateRegex\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/Validator.php - - message: "#^Parameter \\#1 \\$path of static method PhpMyAdmin\\\\Config\\\\Validator\\:\\:validateServer\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$path of static method PhpMyAdmin\\Config\\Validator\:\:validateServer\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/Validator.php - - message: "#^Parameter \\#1 \\$path of static method PhpMyAdmin\\\\Config\\\\Validator\\:\\:validateTrustedProxies\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$path of static method PhpMyAdmin\\Config\\Validator\:\:validateTrustedProxies\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/Validator.php - - message: "#^Parameter \\#1 \\$path of static method PhpMyAdmin\\\\Config\\\\Validator\\:\\:validateUpperBound\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$path of static method PhpMyAdmin\\Config\\Validator\:\:validateUpperBound\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/Validator.php - - message: "#^Parameter \\#1 \\$string of function mb_substr expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function mb_substr expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/Validator.php - - message: "#^Parameter \\#2 \\$port of static method PhpMyAdmin\\\\Config\\\\Validator\\:\\:testDBConnection\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$port of static method PhpMyAdmin\\Config\\Validator\:\:testDBConnection\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Config/Validator.php - - message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$string of function explode expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Config/Validator.php - - message: "#^Parameter \\#2 \\$subject of function preg_match expects string, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#2 \$subject of function preg_match expects string, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Config/Validator.php - - message: "#^Parameter \\#3 \\$socket of static method PhpMyAdmin\\\\Config\\\\Validator\\:\\:testDBConnection\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$socket of static method PhpMyAdmin\\Config\\Validator\:\:testDBConnection\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Config/Validator.php - - message: "#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#3 \$subject of function str_replace expects array\\|string, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Config/Validator.php - - message: "#^Parameter \\#4 \\$user of static method PhpMyAdmin\\\\Config\\\\Validator\\:\\:testDBConnection\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#4 \$user of static method PhpMyAdmin\\Config\\Validator\:\:testDBConnection\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Config/Validator.php - - message: "#^Parameter \\#5 \\$pass of static method PhpMyAdmin\\\\Config\\\\Validator\\:\\:testDBConnection\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#5 \$pass of static method PhpMyAdmin\\Config\\Validator\:\:testDBConnection\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Config/Validator.php - - message: "#^Static property PhpMyAdmin\\\\Config\\\\Validator\\:\\:\\$validators \\(array\\|null\\) does not accept mixed\\.$#" + message: '#^Static property PhpMyAdmin\\Config\\Validator\:\:\$validators \(array\\|null\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/Config/Validator.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between mixed and ''create_tables\.sql'' results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Call to function array_search\\(\\) requires parameter \\#3 to be set\\.$#" + message: '#^Binary operation "\." between mixed and ''upgrade_column_info…'' results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Cannot access an offset on mixed\\.$#" + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Cannot access offset 'COLUMN_NAME' on mixed\\.$#" + message: '#^Call to function array_search\(\) requires parameter \#3 to be set\.$#' + identifier: function.strict count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Cannot access offset 'DATA_TYPE' on mixed\\.$#" + message: '#^Cannot access an offset on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot access offset ''COLUMN_NAME'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Cannot access offset ''DATA_TYPE'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/ConfigStorage/Relation.php + + - + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string + count: 1 + path: src/ConfigStorage/Relation.php + + - + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 21 path: src/ConfigStorage/Relation.php - - message: "#^Do\\-while loop condition is always false\\.$#" + message: '#^Do\-while loop condition is always false\.$#' + identifier: doWhile.alwaysFalse count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:getChildReferences\\(\\) should return array\\\\> but returns array\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:getDisplayField\\(\\) should return string but returns mixed\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 21 + path: src/ConfigStorage/Relation.php + + - + message: '#^Method PhpMyAdmin\\ConfigStorage\\Relation\:\:getChildReferences\(\) should return array\\>\> but returns array\\.$#' + identifier: return.type count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:getTableReplacementNames\\(\\) should return array\\ but returns array\\\\|bool\\|int\\|string\\>\\|int\\<1, max\\>\\|string\\|true\\>\\.$#" + message: '#^Method PhpMyAdmin\\ConfigStorage\\Relation\:\:getDisplayField\(\) should return string but returns mixed\.$#' + identifier: return.type count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:searchColumnInForeigners\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method PhpMyAdmin\\ConfigStorage\\Relation\:\:getTableReplacementNames\(\) should return array\ but returns array\\|bool\|int\|string\>\|int\<1, max\>\|string\|true\>\.$#' + identifier: return.type count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:searchColumnInForeigners\\(\\) should return array\\|false but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\ConfigStorage\\Relation\:\:searchColumnInForeigners\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Offset 'bookmarktable'\\|'central_columns'\\|'column_info'\\|'designer_settings'\\|'export_templates'\\|'favorite'\\|'history'\\|'navigationhiding'\\|'recent'\\|'relation'\\|'savedsearches'\\|'table_uiprefs'\\|'tracking'\\|'userconfig' on array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Method PhpMyAdmin\\ConfigStorage\\Relation\:\:searchColumnInForeigners\(\) should return array\|false but returns mixed\.$#' + identifier: return.type count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Offset 'central_columns' on \\*NEVER\\* on left side of \\?\\? always exists and is not nullable\\.$#" + message: '#^Offset ''bookmarktable''\|''central_columns''\|''column_info''\|''designer_settings''\|''export_templates''\|''favorite''\|''history''\|''navigationhiding''\|''recent''\|''relation''\|''savedsearches''\|''table_uiprefs''\|''tracking''\|''userconfig'' on array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Offset 'column_info' on \\*NEVER\\* on left side of \\?\\? always exists and is not nullable\\.$#" + message: '#^Offset ''central_columns'' on \*NEVER\* on left side of \?\? always exists and is not nullable\.$#' + identifier: nullCoalesce.offset count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Offset 'designer_settings' on \\*NEVER\\* on left side of \\?\\? always exists and is not nullable\\.$#" + message: '#^Offset ''column_info'' on \*NEVER\* on left side of \?\? always exists and is not nullable\.$#' + identifier: nullCoalesce.offset count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Offset 'export_templates' on \\*NEVER\\* on left side of \\?\\? always exists and is not nullable\\.$#" + message: '#^Offset ''designer_settings'' on \*NEVER\* on left side of \?\? always exists and is not nullable\.$#' + identifier: nullCoalesce.offset count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Offset 'favorite' on \\*NEVER\\* on left side of \\?\\? always exists and is not nullable\\.$#" + message: '#^Offset ''export_templates'' on \*NEVER\* on left side of \?\? always exists and is not nullable\.$#' + identifier: nullCoalesce.offset count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Offset 'history' on \\*NEVER\\* on left side of \\?\\? always exists and is not nullable\\.$#" + message: '#^Offset ''favorite'' on \*NEVER\* on left side of \?\? always exists and is not nullable\.$#' + identifier: nullCoalesce.offset count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Offset 'navigationhiding' on \\*NEVER\\* on left side of \\?\\? always exists and is not nullable\\.$#" + message: '#^Offset ''history'' on \*NEVER\* on left side of \?\? always exists and is not nullable\.$#' + identifier: nullCoalesce.offset count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Offset 'pdf_pages' on \\*NEVER\\* on left side of \\?\\? always exists and is not nullable\\.$#" + message: '#^Offset ''navigationhiding'' on \*NEVER\* on left side of \?\? always exists and is not nullable\.$#' + identifier: nullCoalesce.offset count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Offset 'pdf_pages'\\|'relation'\\|'table_coords'\\|'table_info'\\|'usergroups'\\|'users' on array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset ''pdf_pages'' on \*NEVER\* on left side of \?\? always exists and is not nullable\.$#' + identifier: nullCoalesce.offset count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Offset 'recent' on \\*NEVER\\* on left side of \\?\\? always exists and is not nullable\\.$#" + message: '#^Offset ''pdf_pages''\|''relation''\|''table_coords''\|''table_info''\|''usergroups''\|''users'' on array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Offset 'relation' on array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\} on left side of \\?\\? always exists and is not nullable\\.$#" + message: '#^Offset ''recent'' on \*NEVER\* on left side of \?\? always exists and is not nullable\.$#' + identifier: nullCoalesce.offset count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Offset 'savedsearches' on \\*NEVER\\* on left side of \\?\\? always exists and is not nullable\\.$#" + message: '#^Offset ''relation'' on array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\} on left side of \?\? always exists and is not nullable\.$#' + identifier: nullCoalesce.offset count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Offset 'table_coords' on \\*NEVER\\* on left side of \\?\\? always exists and is not nullable\\.$#" + message: '#^Offset ''savedsearches'' on \*NEVER\* on left side of \?\? always exists and is not nullable\.$#' + identifier: nullCoalesce.offset count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Offset 'table_info' on \\*NEVER\\* on left side of \\?\\? always exists and is not nullable\\.$#" + message: '#^Offset ''table_coords'' on \*NEVER\* on left side of \?\? always exists and is not nullable\.$#' + identifier: nullCoalesce.offset count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Offset 'table_uiprefs' on \\*NEVER\\* on left side of \\?\\? always exists and is not nullable\\.$#" + message: '#^Offset ''table_info'' on \*NEVER\* on left side of \?\? always exists and is not nullable\.$#' + identifier: nullCoalesce.offset count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Offset 'tracking' on \\*NEVER\\* on left side of \\?\\? always exists and is not nullable\\.$#" + message: '#^Offset ''table_uiprefs'' on \*NEVER\* on left side of \?\? always exists and is not nullable\.$#' + identifier: nullCoalesce.offset count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Offset 'userconfig' on \\*NEVER\\* on left side of \\?\\? always exists and is not nullable\\.$#" + message: '#^Offset ''tracking'' on \*NEVER\* on left side of \?\? always exists and is not nullable\.$#' + identifier: nullCoalesce.offset count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Offset 'usergroups' on \\*NEVER\\* on left side of \\?\\? always exists and is not nullable\\.$#" + message: '#^Offset ''userconfig'' on \*NEVER\* on left side of \?\? always exists and is not nullable\.$#' + identifier: nullCoalesce.offset count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Offset 'users' on \\*NEVER\\* on left side of \\?\\? always exists and is not nullable\\.$#" + message: '#^Offset ''usergroups'' on \*NEVER\* on left side of \?\? always exists and is not nullable\.$#' + identifier: nullCoalesce.offset count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Only booleans are allowed in &&, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given on the left side\\.$#" + message: '#^Offset ''users'' on \*NEVER\* on left side of \?\? always exists and is not nullable\.$#' + identifier: nullCoalesce.offset + count: 1 + path: src/ConfigStorage/Relation.php + + - + message: '#^Only booleans are allowed in &&, PhpMyAdmin\\Dbal\\ResultInterface\|false given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 2 path: src/ConfigStorage/Relation.php - - message: "#^Only booleans are allowed in &&, string given on the left side\\.$#" + message: '#^Only booleans are allowed in &&, string given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Only booleans are allowed in a negated boolean, string\\|false\\|null given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, string\|false\|null given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Only booleans are allowed in an if condition, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Only booleans are allowed in an if condition, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: if.condNotBoolean count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Only booleans are allowed in an if condition, bool\\|string\\|null given\\.$#" + message: '#^Only booleans are allowed in an if condition, bool\|string\|null given\.$#' + identifier: if.condNotBoolean count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Parameter \\#1 \\$array of function array_reverse expects array, mixed given\\.$#" + message: '#^Parameter \#1 \$array of function array_reverse expects array, mixed given\.$#' + identifier: argument.type count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Parameter \\#1 \\$array of function array_shift expects array, mixed given\\.$#" + message: '#^Parameter \#1 \$array of function array_shift expects array, mixed given\.$#' + identifier: argument.type count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Parameter \\#1 \\$db of method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:getDisplayField\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$db of method PhpMyAdmin\\ConfigStorage\\Relation\:\:getDisplayField\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Parameter \\#1 \\$dbName of method PhpMyAdmin\\\\DatabaseInterface\\:\\:getTable\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$dbName of method PhpMyAdmin\\DatabaseInterface\:\:getTable\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/ConfigStorage/Relation.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#' + identifier: argument.type count: 7 path: src/ConfigStorage/Relation.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, string\\|false given\\.$#" + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, string\|false given\.$#' + identifier: argument.type count: 2 path: src/ConfigStorage/Relation.php - - message: "#^Parameter \\#1 \\$type of method PhpMyAdmin\\\\Types\\:\\:getTypeClass\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$type of method PhpMyAdmin\\Types\:\:getTypeClass\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#' + identifier: argument.type count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Parameter \\#2 \\$callback of function usort expects callable\\(string\\|null, string\\|null\\)\\: int, Closure\\(string, string\\)\\: int\\<\\-1, 1\\> given\\.$#" + message: '#^Parameter \#2 \$callback of function usort expects callable\(string\|null, string\|null\)\: int, Closure\(string, string\)\: int\<\-1, 1\> given\.$#' + identifier: argument.type count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Parameter \\#2 \\$table of method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:getDisplayField\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$table of method PhpMyAdmin\\ConfigStorage\\Relation\:\:getDisplayField\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/ConfigStorage/Relation.php - - message: "#^Parameter \\#2 \\$tableName of method PhpMyAdmin\\\\DatabaseInterface\\:\\:getTable\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$tableName of method PhpMyAdmin\\DatabaseInterface\:\:getTable\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/ConfigStorage/Relation.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 4 path: src/ConfigStorage/UserGroups.php - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" + message: '#^Call to function in_array\(\) requires parameter \#3 to be set\.$#' + identifier: function.strict count: 1 path: src/ConfigStorage/UserGroups.php - - message: "#^Only booleans are allowed in &&, int\\|string given on the right side\\.$#" + message: '#^Only booleans are allowed in &&, int\|string given on the right side\.$#' + identifier: booleanAnd.rightNotBoolean count: 1 path: src/ConfigStorage/UserGroups.php - - message: "#^Only booleans are allowed in an if condition, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Only booleans are allowed in an if condition, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: if.condNotBoolean count: 2 path: src/ConfigStorage/UserGroups.php - - message: "#^Parameter \\#1 \\$haystack of function str_starts_with expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$haystack of function str_starts_with expects string, string\|null given\.$#' + identifier: argument.type count: 3 path: src/ConfigStorage/UserGroups.php - - message: "#^Parameter \\#1 \\$string of function mb_substr expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$string of function mb_substr expects string, string\|null given\.$#' + identifier: argument.type count: 3 path: src/ConfigStorage/UserGroups.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Console.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/CheckRelationsController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: src/Controllers/Console/Bookmark/AddController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Database/CentralColumnsController.php - - message: "#^Cannot access offset string on mixed\\.$#" + message: '#^Binary operation "\.\=" between mixed and '' \-\> '' results in an error\.$#' + identifier: assignOp.invalid count: 1 path: src/Controllers/Database/DataDictionaryController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\.\=" between non\-falsy\-string and mixed results in an error\.$#' + identifier: assignOp.invalid + count: 1 + path: src/Controllers/Database/DataDictionaryController.php + + - + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Controllers/Database/DataDictionaryController.php + + - + message: '#^Binary operation "\." between mixed and ''\.'' results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Controllers/Database/DesignerController.php - - message: "#^Cannot access offset 'dbName' on mixed\\.$#" + message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Controllers/Database/DesignerController.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 1 + path: src/Controllers/Database/DesignerController.php + + - + message: '#^Cannot access offset ''dbName'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Controllers/Database/DesignerController.php - - message: "#^Cannot access offset 'tableName' on mixed\\.$#" + message: '#^Cannot access offset ''tableName'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Controllers/Database/DesignerController.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 1 path: src/Controllers/Database/DesignerController.php - - message: "#^Parameter \\#1 \\$db of method PhpMyAdmin\\\\Database\\\\Designer\\:\\:getHtmlForEditOrDeletePages\\(\\) expects string, string\\|null given\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 1 + path: src/Controllers/Database/DesignerController.php + + - + message: '#^Parameter \#1 \$db of method PhpMyAdmin\\Database\\Designer\:\:getHtmlForEditOrDeletePages\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Database/DesignerController.php - - message: "#^Parameter \\#1 \\$db of method PhpMyAdmin\\\\Database\\\\Designer\\:\\:getHtmlForPageSaveAs\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$db of method PhpMyAdmin\\Database\\Designer\:\:getHtmlForPageSaveAs\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/DesignerController.php - - message: "#^Parameter \\#1 \\$db of method PhpMyAdmin\\\\Database\\\\Designer\\:\\:getHtmlForSchemaExport\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$db of method PhpMyAdmin\\Database\\Designer\:\:getHtmlForSchemaExport\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/DesignerController.php - - message: "#^Parameter \\#1 \\$db of method PhpMyAdmin\\\\Database\\\\Designer\\\\Common\\:\\:getDefaultPage\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$db of method PhpMyAdmin\\Database\\Designer\\Common\:\:getDefaultPage\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/DesignerController.php - - message: "#^Parameter \\#1 \\$db of method PhpMyAdmin\\\\Database\\\\Designer\\\\Common\\:\\:getLoadingPage\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$db of method PhpMyAdmin\\Database\\Designer\\Common\:\:getLoadingPage\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/DesignerController.php - - message: "#^Parameter \\#1 \\$db of method PhpMyAdmin\\\\Database\\\\Designer\\\\Common\\:\\:getTablesInfo\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$db of method PhpMyAdmin\\Database\\Designer\\Common\:\:getTablesInfo\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/DesignerController.php - - message: "#^Parameter \\#1 \\$db of method PhpMyAdmin\\\\Database\\\\Designer\\\\Common\\:\\:saveDisplayField\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$db of method PhpMyAdmin\\Database\\Designer\\Common\:\:saveDisplayField\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/DesignerController.php - - message: "#^Parameter \\#1 \\$db of static method PhpMyAdmin\\\\Url\\:\\:getHiddenInputs\\(\\) expects array\\|string, mixed given\\.$#" + message: '#^Parameter \#1 \$db of static method PhpMyAdmin\\Url\:\:getHiddenInputs\(\) expects array\\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/DesignerController.php - - message: "#^Parameter \\#2 \\$db of method PhpMyAdmin\\\\Database\\\\Designer\\\\Common\\:\\:createNewPage\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#2 \$db of method PhpMyAdmin\\Database\\Designer\\Common\:\:createNewPage\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/DesignerController.php - - message: "#^Parameter \\#2 \\$table of method PhpMyAdmin\\\\Database\\\\Designer\\\\Common\\:\\:getTablesInfo\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \$table of method PhpMyAdmin\\Database\\Designer\\Common\:\:getTablesInfo\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/DesignerController.php - - message: "#^Parameter \\#2 \\$table of method PhpMyAdmin\\\\Database\\\\Designer\\\\Common\\:\\:saveDisplayField\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#2 \$table of method PhpMyAdmin\\Database\\Designer\\Common\:\:saveDisplayField\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/DesignerController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Database/EventsController.php - - message: "#^Cannot call method isSuccess\\(\\) on mixed\\.$#" + message: '#^Cannot call method isSuccess\(\) on mixed\.$#' + identifier: method.nonObject count: 1 path: src/Controllers/Database/EventsController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 16 path: src/Controllers/Database/EventsController.php - - message: "#^Only booleans are allowed in \\|\\|, int\\<0, max\\> given on the left side\\.$#" + message: '#^Only booleans are allowed in \|\|, int\<0, max\> given on the left side\.$#' + identifier: booleanOr.leftNotBoolean count: 1 path: src/Controllers/Database/EventsController.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Database/EventsController.php - - message: "#^Parameter \\#1 \\$name of method PhpMyAdmin\\\\Database\\\\Events\\:\\:getDataFromName\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$name of method PhpMyAdmin\\Database\\Events\:\:getDataFromName\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/EventsController.php - - message: "#^Parameter \\#1 \\$string of function mb_strtoupper expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function mb_strtoupper expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/EventsController.php - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/EventsController.php - - message: "#^Parameter \\#2 \\$name of method PhpMyAdmin\\\\Database\\\\Events\\:\\:getDetails\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$name of method PhpMyAdmin\\Database\\Events\:\:getDetails\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/EventsController.php - - message: "#^Parameter \\#3 \\$name of static method PhpMyAdmin\\\\Database\\\\Events\\:\\:getDefinition\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$name of static method PhpMyAdmin\\Database\\Events\:\:getDefinition\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/EventsController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Database/ExportController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 2 path: src/Controllers/Database/ExportController.php - - message: "#^Parameter \\#2 \\$array of method PhpMyAdmin\\\\Export\\\\Export\\:\\:getCheckedClause\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#2 \$array of method PhpMyAdmin\\Export\\Export\:\:getCheckedClause\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/ExportController.php - - message: "#^Parameter \\#4 \\$sqlQuery of method PhpMyAdmin\\\\Export\\\\Options\\:\\:getOptions\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#4 \$sqlQuery of method PhpMyAdmin\\Export\\Options\:\:getOptions\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/ExportController.php - - message: "#^Parameter \\#5 \\$numTables of method PhpMyAdmin\\\\Export\\\\Options\\:\\:getOptions\\(\\) expects int\\|string, mixed given\\.$#" + message: '#^Parameter \#5 \$numTables of method PhpMyAdmin\\Export\\Options\:\:getOptions\(\) expects int\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/ExportController.php - - message: "#^Parameter \\#6 \\$unlimNumRows of method PhpMyAdmin\\\\Export\\\\Options\\:\\:getOptions\\(\\) expects int\\|string, mixed given\\.$#" + message: '#^Parameter \#6 \$unlimNumRows of method PhpMyAdmin\\Export\\Options\:\:getOptions\(\) expects int\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/ExportController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Database/ImportController.php - - message: "#^Cannot access offset 'handler' on mixed\\.$#" + message: '#^Cannot access offset ''handler'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Controllers/Database/ImportController.php - - message: "#^Cannot call static method getIdKey\\(\\) on mixed\\.$#" + message: '#^Cannot call static method getIdKey\(\) on mixed\.$#' + identifier: staticMethod.nonObject count: 1 path: src/Controllers/Database/ImportController.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 1 path: src/Controllers/Database/ImportController.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 1 path: src/Controllers/Database/ImportController.php - - message: "#^Parameter \\#2 \\$db of static method PhpMyAdmin\\\\Database\\\\MultiTableQuery\\:\\:displayResults\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$db of static method PhpMyAdmin\\Database\\MultiTableQuery\:\:displayResults\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/MultiTableQuery/QueryController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Database/PrivilegesController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\-" between mixed and 1 results in an error\.$#' + identifier: binaryOp.invalid + count: 6 + path: src/Controllers/Database/RoutinesController.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Database/RoutinesController.php - - message: "#^Cannot access an offset on mixed\\.$#" + message: '#^Cannot access an offset on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 6 path: src/Controllers/Database/RoutinesController.php - - message: "#^Cannot access offset \\(float\\|int\\) on mixed\\.$#" + message: '#^Cannot access offset \(float\|int\) on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 6 path: src/Controllers/Database/RoutinesController.php - - message: "#^Cannot access offset int\\<0, max\\> on mixed\\.$#" + message: '#^Cannot access offset int\<0, max\> on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: src/Controllers/Database/RoutinesController.php - - message: "#^Cannot call method isSuccess\\(\\) on mixed\\.$#" + message: '#^Cannot call method isSuccess\(\) on mixed\.$#' + identifier: method.nonObject count: 1 path: src/Controllers/Database/RoutinesController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Cannot use \+\+ on mixed\.$#' + identifier: postInc.type + count: 1 + path: src/Controllers/Database/RoutinesController.php + + - + message: '#^Cannot use \-\- on mixed\.$#' + identifier: postDec.type + count: 1 + path: src/Controllers/Database/RoutinesController.php + + - + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 23 path: src/Controllers/Database/RoutinesController.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, mixed given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 1 + path: src/Controllers/Database/RoutinesController.php + + - + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean + count: 1 + path: src/Controllers/Database/RoutinesController.php + + - + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#' + identifier: argument.type count: 4 path: src/Controllers/Database/RoutinesController.php - - message: "#^Parameter \\#1 \\$name of method PhpMyAdmin\\\\Database\\\\Routines\\:\\:getDataFromName\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$name of method PhpMyAdmin\\Database\\Routines\:\:getDataFromName\(\) expects string, mixed given\.$#' + identifier: argument.type count: 3 path: src/Controllers/Database/RoutinesController.php - - message: "#^Parameter \\#1 \\$string of function htmlentities expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function htmlentities expects string, mixed given\.$#' + identifier: argument.type count: 3 path: src/Controllers/Database/RoutinesController.php - - message: "#^Parameter \\#1 \\$string of function mb_strtoupper expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function mb_strtoupper expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/RoutinesController.php - - message: "#^Parameter \\#2 \\$type of method PhpMyAdmin\\\\Database\\\\Routines\\:\\:getDataFromName\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$type of method PhpMyAdmin\\Database\\Routines\:\:getDataFromName\(\) expects string, mixed given\.$#' + identifier: argument.type count: 3 path: src/Controllers/Database/RoutinesController.php - - message: "#^Parameter \\#3 \\$name of static method PhpMyAdmin\\\\Database\\\\Routines\\:\\:getFunctionDefinition\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$name of static method PhpMyAdmin\\Database\\Routines\:\:getFunctionDefinition\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/RoutinesController.php - - message: "#^Parameter \\#3 \\$name of static method PhpMyAdmin\\\\Database\\\\Routines\\:\\:getProcedureDefinition\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$name of static method PhpMyAdmin\\Database\\Routines\:\:getProcedureDefinition\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/RoutinesController.php - - message: "#^Parameter \\#3 \\$which of static method PhpMyAdmin\\\\Database\\\\Routines\\:\\:getDetails\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#3 \$which of static method PhpMyAdmin\\Database\\Routines\:\:getDetails\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/RoutinesController.php - - message: "#^Parameter \\#4 \\$name of static method PhpMyAdmin\\\\Database\\\\Routines\\:\\:getDetails\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#4 \$name of static method PhpMyAdmin\\Database\\Routines\:\:getDetails\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/RoutinesController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Database/SearchController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Controllers/Database/SearchController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Database/SqlController.php - - message: "#^Parameter \\#1 \\$database of method PhpMyAdmin\\\\Database\\\\CentralColumns\\:\\:deleteColumnsFromList\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$database of method PhpMyAdmin\\Database\\CentralColumns\:\:deleteColumnsFromList\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/Structure/CentralColumns/RemoveController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Database/Structure/CopyFormController.php - - message: "#^Cannot access offset 'table_limit_offset' on mixed\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 1 + path: src/Controllers/Database/Structure/CopyFormController.php + + - + message: '#^Binary operation "\.\=" between mixed and '';'' results in an error\.$#' + identifier: assignOp.invalid count: 1 path: src/Controllers/Database/Structure/DropTableController.php - - message: "#^Cannot access offset 'table_limit_offset…' on mixed\\.$#" - count: 1 - path: src/Controllers/Database/Structure/DropTableController.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Binary operation "\.\=" between mixed and non\-falsy\-string results in an error\.$#' + identifier: assignOp.invalid count: 2 path: src/Controllers/Database/Structure/DropTableController.php - - message: "#^Only booleans are allowed in &&, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given on the left side\\.$#" + message: '#^Cannot access offset ''table_limit_offset'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Controllers/Database/Structure/DropTableController.php - - message: "#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Cannot access offset ''table_limit_offset_db'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Controllers/Database/Structure/DropTableController.php + + - + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 2 path: src/Controllers/Database/Structure/DropTableController.php - - message: "#^Parameter \\#1 \\$query of method PhpMyAdmin\\\\DatabaseInterface\\:\\:tryQuery\\(\\) expects string, mixed given\\.$#" + message: '#^Only booleans are allowed in &&, PhpMyAdmin\\Dbal\\ResultInterface\|false given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 1 path: src/Controllers/Database/Structure/DropTableController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: booleanNot.exprNotBoolean + count: 2 + path: src/Controllers/Database/Structure/DropTableController.php + + - + message: '#^Parameter \#1 \$query of method PhpMyAdmin\\DatabaseInterface\:\:tryQuery\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Database/Structure/DropTableController.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Database/Structure/EmptyTableController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Controllers/Database/Structure/EmptyTableController.php - - message: "#^Parameter \\#3 \\$pos of method PhpMyAdmin\\\\Sql\\:\\:calculatePosForLastPage\\(\\) expects int\\|null, mixed given\\.$#" + message: '#^Parameter \#3 \$pos of method PhpMyAdmin\\Sql\:\:calculatePosForLastPage\(\) expects int\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/Structure/EmptyTableController.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Controllers/Database/Structure/FavoriteTableController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Database/Structure/FavoriteTableController.php - - message: "#^Cannot access offset 'db' on mixed\\.$#" + message: '#^Cannot access offset ''db'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Controllers/Database/Structure/FavoriteTableController.php - - message: "#^Cannot access offset 'favorites_synced' on mixed\\.$#" + message: '#^Cannot access offset ''favorites_synced'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Controllers/Database/Structure/FavoriteTableController.php - - message: "#^Cannot access offset 'table' on mixed\\.$#" + message: '#^Cannot access offset ''table'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Controllers/Database/Structure/FavoriteTableController.php - - message: "#^Cannot access offset int\\<0, max\\> on mixed\\.$#" + message: '#^Cannot access offset int\<0, max\> on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Controllers/Database/Structure/FavoriteTableController.php - - message: "#^Cannot access offset non\\-falsy\\-string on mixed\\.$#" + message: '#^Cannot access offset non\-falsy\-string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Controllers/Database/Structure/FavoriteTableController.php - - message: "#^Parameter \\#1 \\$json of function json_decode expects string, mixed given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 1 path: src/Controllers/Database/Structure/FavoriteTableController.php - - message: "#^Parameter \\#3 \\$favoriteTables of method PhpMyAdmin\\\\Controllers\\\\Database\\\\Structure\\\\FavoriteTableController\\:\\:synchronizeFavoriteTables\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#1 \$json of function json_decode expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/Structure/FavoriteTableController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Parameter \#3 \$favoriteTables of method PhpMyAdmin\\Controllers\\Database\\Structure\\FavoriteTableController\:\:synchronizeFavoriteTables\(\) expects array\, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Database/Structure/FavoriteTableController.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Database/Structure/RealRowCountController.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 1 path: src/Controllers/Database/Structure/RealRowCountController.php - - message: "#^Parameter \\#1 \\$value of static method PhpMyAdmin\\\\Util\\:\\:formatNumber\\(\\) expects float\\|int\\|string, int\\|null given\\.$#" + message: '#^Parameter \#1 \$value of static method PhpMyAdmin\\Util\:\:formatNumber\(\) expects float\|int\|string, int\|null given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/Structure/RealRowCountController.php - - message: "#^Parameter \\#3 \\$statement of method PhpMyAdmin\\\\FlashMessenger\\:\\:addMessage\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$statement of method PhpMyAdmin\\FlashMessenger\:\:addMessage\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Database/Structure/ReplacePrefixController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\+" between mixed and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 3 + path: src/Controllers/Database/StructureController.php + + - + message: '#^Binary operation "\+\=" between \(float\|int\) and mixed results in an error\.$#' + identifier: assignOp.invalid + count: 1 + path: src/Controllers/Database/StructureController.php + + - + message: '#^Binary operation "\+\=" between int and mixed results in an error\.$#' + identifier: assignOp.invalid + count: 1 + path: src/Controllers/Database/StructureController.php + + - + message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Controllers/Database/StructureController.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 5 path: src/Controllers/Database/StructureController.php - - message: "#^Call to function array_search\\(\\) requires parameter \\#3 to be set\\.$#" + message: '#^Call to function array_search\(\) requires parameter \#3 to be set\.$#' + identifier: function.strict count: 4 path: src/Controllers/Database/StructureController.php - - message: "#^Cannot access offset 'TABLE_NAME' on mixed\\.$#" + message: '#^Cannot access offset ''TABLE_NAME'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Controllers/Database/StructureController.php - - message: "#^Cannot access offset 'TABLE_ROWS' on mixed\\.$#" + message: '#^Cannot access offset ''TABLE_ROWS'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Controllers/Database/StructureController.php - - message: "#^Cannot access offset 'TABLE_TYPE' on mixed\\.$#" + message: '#^Cannot access offset ''TABLE_TYPE'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Controllers/Database/StructureController.php - - message: "#^Method PhpMyAdmin\\\\Controllers\\\\Database\\\\StructureController\\:\\:getStuffForEngineTypeTable\\(\\) should return array\\{array, string, string, string, string, int, bool, int\\} but returns array\\{mixed, mixed, mixed, mixed, mixed, mixed, bool, mixed\\}\\.$#" - count: 1 - path: src/Controllers/Database/StructureController.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 1 - path: src/Controllers/Database/StructureController.php - - - - message: "#^Parameter \\#1 \\$db of method PhpMyAdmin\\\\Controllers\\\\Database\\\\StructureController\\:\\:hasTable\\(\\) expects array, mixed given\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed count: 2 path: src/Controllers/Database/StructureController.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, mixed given\\.$#" - count: 2 - path: src/Controllers/Database/StructureController.php - - - - message: "#^Parameter \\#1 \\$string of function htmlspecialchars expects string, mixed given\\.$#" - count: 4 - path: src/Controllers/Database/StructureController.php - - - - message: "#^Parameter \\#1 \\$string of function md5 expects string, mixed given\\.$#" - count: 1 - path: src/Controllers/Database/StructureController.php - - - - message: "#^Parameter \\#1 \\$string of method PhpMyAdmin\\\\Replication\\\\Replication\\:\\:extractDbOrTable\\(\\) expects string, mixed given\\.$#" - count: 2 - path: src/Controllers/Database/StructureController.php - - - - message: "#^Parameter \\#1 \\$table of method PhpMyAdmin\\\\Controllers\\\\Database\\\\StructureController\\:\\:getTrackingIcon\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Controllers/Database/StructureController.php - - - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" - count: 2 - path: src/Controllers/Database/StructureController.php - - - - message: "#^Parameter \\#1 \\$value of static method PhpMyAdmin\\\\Util\\:\\:formatByteDown\\(\\) expects float\\|int\\|string\\|null, mixed given\\.$#" - count: 1 - path: src/Controllers/Database/StructureController.php - - - - message: "#^Parameter \\#2 \\$haystack of function array_search expects array, mixed given\\.$#" - count: 4 - path: src/Controllers/Database/StructureController.php - - - - message: "#^Parameter \\#2 \\$table of method PhpMyAdmin\\\\Controllers\\\\Database\\\\StructureController\\:\\:getReplicationStatus\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Controllers/Database/StructureController.php - - - - message: "#^Parameter \\#2 \\$tableName of method PhpMyAdmin\\\\DatabaseInterface\\:\\:getTable\\(\\) expects string, mixed given\\.$#" - count: 4 - path: src/Controllers/Database/StructureController.php - - - - message: "#^Parameter \\#3 \\$name of static method PhpMyAdmin\\\\Charsets\\:\\:findCollationByName\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Controllers/Database/StructureController.php - - - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ - count: 1 - path: src/Controllers/Database/TrackingController.php - - - - message: "#^Parameter \\#2 \\$selected of method PhpMyAdmin\\\\Tracking\\\\Tracking\\:\\:createTrackingForMultipleTables\\(\\) expects array, mixed given\\.$#" - count: 1 - path: src/Controllers/Database/TrackingController.php - - - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ - count: 1 - path: src/Controllers/ErrorReportController.php - - - - message: "#^Cannot access offset 'success' on mixed\\.$#" - count: 1 - path: src/Controllers/ErrorReportController.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: src/Controllers/ErrorReportController.php - - - - message: "#^Only booleans are allowed in &&, mixed given on the right side\\.$#" - count: 1 - path: src/Controllers/ErrorReportController.php - - - - message: "#^Call to an undefined method object\\:\\:exportFooter\\(\\)\\.$#" - count: 1 - path: src/Controllers/Export/ExportController.php - - - - message: "#^Call to an undefined method object\\:\\:exportHeader\\(\\)\\.$#" - count: 1 - path: src/Controllers/Export/ExportController.php - - - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ - count: 1 - path: src/Controllers/Export/ExportController.php - - - - message: "#^Cannot access offset 'aliases' on mixed\\.$#" - count: 1 - path: src/Controllers/Export/ExportController.php - - - - message: "#^Cannot cast mixed to string\\.$#" - count: 1 - path: src/Controllers/Export/ExportController.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 5 - path: src/Controllers/Export/ExportController.php + path: src/Controllers/Database/StructureController.php - - message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#" + message: '#^Method PhpMyAdmin\\Controllers\\Database\\StructureController\:\:getStuffForEngineTypeTable\(\) should return array\{array\, string, string, string, string, int, bool, int\} but returns array\{mixed, mixed, mixed, mixed, mixed, mixed, bool, mixed\}\.$#' + identifier: return.type count: 1 - path: src/Controllers/Export/ExportController.php + path: src/Controllers/Database/StructureController.php - - message: "#^Only booleans are allowed in &&, string\\|null given on the right side\\.$#" + message: '#^Only booleans are allowed in an if condition, mixed given\.$#' + identifier: if.condNotBoolean + count: 1 + path: src/Controllers/Database/StructureController.php + + - + message: '#^Parameter \#1 \$db of method PhpMyAdmin\\Controllers\\Database\\StructureController\:\:hasTable\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 2 - path: src/Controllers/Export/ExportController.php + path: src/Controllers/Database/StructureController.php - - message: "#^PHPDoc tag @var for variable \\$aliasesParam has no value type specified in iterable type array\\.$#" + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Controllers/Database/StructureController.php + + - + message: '#^Parameter \#1 \$string of function htmlspecialchars expects string, mixed given\.$#' + identifier: argument.type + count: 4 + path: src/Controllers/Database/StructureController.php + + - + message: '#^Parameter \#1 \$string of function md5 expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Database/StructureController.php + + - + message: '#^Parameter \#1 \$string of method PhpMyAdmin\\Replication\\Replication\:\:extractDbOrTable\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Controllers/Database/StructureController.php + + - + message: '#^Parameter \#1 \$table of method PhpMyAdmin\\Controllers\\Database\\StructureController\:\:getTrackingIcon\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Database/StructureController.php + + - + message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Controllers/Database/StructureController.php + + - + message: '#^Parameter \#1 \$value of static method PhpMyAdmin\\Util\:\:formatByteDown\(\) expects float\|int\|string\|null, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Database/StructureController.php + + - + message: '#^Parameter \#2 \$haystack of function array_search expects array, mixed given\.$#' + identifier: argument.type + count: 4 + path: src/Controllers/Database/StructureController.php + + - + message: '#^Parameter \#2 \$table of method PhpMyAdmin\\Controllers\\Database\\StructureController\:\:getReplicationStatus\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Database/StructureController.php + + - + message: '#^Parameter \#2 \$tableName of method PhpMyAdmin\\DatabaseInterface\:\:getTable\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 4 + path: src/Controllers/Database/StructureController.php + + - + message: '#^Parameter \#3 \$name of static method PhpMyAdmin\\Charsets\:\:findCollationByName\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Database/StructureController.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 1 + path: src/Controllers/Database/TrackingController.php + + - + message: '#^Parameter \#2 \$selected of method PhpMyAdmin\\Tracking\\Tracking\:\:createTrackingForMultipleTables\(\) expects array\, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Database/TrackingController.php + + - + message: '#^Binary operation "\+" between mixed and 1 results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Controllers/ErrorReportController.php + + - + message: '#^Binary operation "\-" between mixed and int\<1, max\> results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Controllers/ErrorReportController.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 1 + path: src/Controllers/ErrorReportController.php + + - + message: '#^Cannot access offset ''success'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Controllers/ErrorReportController.php + + - + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed + count: 1 + path: src/Controllers/ErrorReportController.php + + - + message: '#^Only booleans are allowed in &&, mixed given on the right side\.$#' + identifier: booleanAnd.rightNotBoolean + count: 1 + path: src/Controllers/ErrorReportController.php + + - + message: '#^Binary operation "\." between mixed and ''_comments'' results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#1 \\$dbSelect of method PhpMyAdmin\\\\Export\\\\Export\\:\\:exportServer\\(\\) expects array\\|string, mixed given\\.$#" + message: '#^Binary operation "\." between mixed and ''_dates'' results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#1 \\$exportPlugin of method PhpMyAdmin\\\\Export\\\\Export\\:\\:getFinalFilenameAndMimetypeForFilename\\(\\) expects PhpMyAdmin\\\\Plugins\\\\ExportPlugin, object given\\.$#" + message: '#^Binary operation "\." between mixed and ''_include_comments'' results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#1 \\$exportType of method PhpMyAdmin\\\\Export\\\\Export\\:\\:getFilenameAndMimetype\\(\\) expects string, mixed given\\.$#" + message: '#^Binary operation "\." between mixed and ''_mime'' results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#1 \\$exportType of method PhpMyAdmin\\\\Export\\\\Export\\:\\:getHtmlForDisplayedExportFooter\\(\\) expects string, mixed given\\.$#" + message: '#^Binary operation "\." between mixed and ''_relation'' results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#1 \\$exportType of method PhpMyAdmin\\\\Export\\\\Export\\:\\:getHtmlForDisplayedExportHeader\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Controllers/Export/ExportController.php - - - - message: "#^Parameter \\#1 \\$exportType of method PhpMyAdmin\\\\Export\\\\Export\\:\\:getPageLocationAndSaveMessage\\(\\) expects string, mixed given\\.$#" + message: '#^Binary operation "\." between mixed and ''_structure_or_data'' results in an error\.$#' + identifier: binaryOp.invalid count: 3 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#1 \\$fileHandle of method PhpMyAdmin\\\\Export\\\\Export\\:\\:closeFile\\(\\) expects resource, mixed given\\.$#" + message: '#^Call to an undefined method object\:\:exportFooter\(\)\.$#' + identifier: method.notFound count: 1 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#1 \\$list of class PhpMyAdmin\\\\SqlParser\\\\Parser constructor expects PhpMyAdmin\\\\SqlParser\\\\TokensList\\|PhpMyAdmin\\\\SqlParser\\\\UtfString\\|string\\|null, mixed given\\.$#" + message: '#^Call to an undefined method object\:\:exportHeader\(\)\.$#' + identifier: method.notFound count: 1 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#14 \\$sqlQuery of method PhpMyAdmin\\\\Export\\\\Export\\:\\:exportTable\\(\\) expects string, mixed given\\.$#" + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 1 + path: src/Controllers/Export/ExportController.php + + - + message: '#^Cannot access offset ''aliases'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Controllers/Export/ExportController.php + + - + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string + count: 1 + path: src/Controllers/Export/ExportController.php + + - + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed + count: 5 + path: src/Controllers/Export/ExportController.php + + - + message: '#^Only booleans are allowed in &&, mixed given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 2 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#2 \\$compression of method PhpMyAdmin\\\\Export\\\\Export\\:\\:compress\\(\\) expects string, mixed given\\.$#" + message: '#^Only booleans are allowed in &&, string\|null given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean + count: 1 + path: src/Controllers/Export/ExportController.php + + - + message: '#^Only booleans are allowed in &&, string\|null given on the right side\.$#' + identifier: booleanAnd.rightNotBoolean count: 2 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#2 \\$compression of method PhpMyAdmin\\\\Export\\\\Export\\:\\:getFinalFilenameAndMimetypeForFilename\\(\\) expects string, mixed given\\.$#" + message: '#^Only booleans are allowed in an elseif condition, mixed given\.$#' + identifier: elseif.condNotBoolean count: 1 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#2 \\$destCharset of static method PhpMyAdmin\\\\Encoding\\:\\:convertString\\(\\) expects string, mixed given\\.$#" + message: '#^Only booleans are allowed in an if condition, mixed given\.$#' + identifier: if.condNotBoolean + count: 5 + path: src/Controllers/Export/ExportController.php + + - + message: '#^PHPDoc tag @var for variable \$aliasesParam has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#2 \\$exportPlugin of static method PhpMyAdmin\\\\Export\\\\Export\\:\\:exportRaw\\(\\) expects PhpMyAdmin\\\\Plugins\\\\ExportPlugin, object given\\.$#" + message: '#^PHPDoc tag @var with type mixed is not subtype of type bool\|int\<0, max\>\|string\|null\.$#' + identifier: varTag.type count: 1 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#2 \\$rememberTemplate of method PhpMyAdmin\\\\Export\\\\Export\\:\\:getFilenameAndMimetype\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$dbSelect of method PhpMyAdmin\\Export\\Export\:\:exportServer\(\) expects array\\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#3 \\$errorUrl of static method PhpMyAdmin\\\\Export\\\\Export\\:\\:exportRaw\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$exportPlugin of method PhpMyAdmin\\Export\\Export\:\:getFinalFilenameAndMimetypeForFilename\(\) expects PhpMyAdmin\\Plugins\\ExportPlugin, object given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#3 \\$exportPlugin of method PhpMyAdmin\\\\Export\\\\Export\\:\\:exportServer\\(\\) expects PhpMyAdmin\\\\Plugins\\\\ExportPlugin, object given\\.$#" + message: '#^Parameter \#1 \$exportType of method PhpMyAdmin\\Export\\Export\:\:getFilenameAndMimetype\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#3 \\$exportPlugin of method PhpMyAdmin\\\\Export\\\\Export\\:\\:getFilenameAndMimetype\\(\\) expects PhpMyAdmin\\\\Plugins\\\\ExportPlugin, object given\\.$#" + message: '#^Parameter \#1 \$exportType of method PhpMyAdmin\\Export\\Export\:\:getHtmlForDisplayedExportFooter\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#3 \\$saveFilename of method PhpMyAdmin\\\\Export\\\\Export\\:\\:closeFile\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$exportType of method PhpMyAdmin\\Export\\Export\:\:getHtmlForDisplayedExportHeader\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#4 \\$compression of method PhpMyAdmin\\\\Export\\\\Export\\:\\:getFilenameAndMimetype\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$exportType of method PhpMyAdmin\\Export\\Export\:\:getPageLocationAndSaveMessage\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 3 + path: src/Controllers/Export/ExportController.php + + - + message: '#^Parameter \#1 \$fileHandle of method PhpMyAdmin\\Export\\Export\:\:closeFile\(\) expects resource, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#4 \\$errorUrl of method PhpMyAdmin\\\\Export\\\\Export\\:\\:exportServer\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$list of class PhpMyAdmin\\SqlParser\\Parser constructor expects PhpMyAdmin\\SqlParser\\TokensList\|PhpMyAdmin\\SqlParser\\UtfString\|string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#4 \\$exportPlugin of method PhpMyAdmin\\\\Export\\\\Export\\:\\:exportTable\\(\\) expects PhpMyAdmin\\\\Plugins\\\\ExportPlugin, object given\\.$#" + message: '#^Parameter \#14 \$sqlQuery of method PhpMyAdmin\\Export\\Export\:\:exportTable\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#4 \\$tableStructure of method PhpMyAdmin\\\\Export\\\\Export\\:\\:exportDatabase\\(\\) expects array\\, array given\\.$#" + message: '#^Parameter \#2 \$compression of method PhpMyAdmin\\Export\\Export\:\:compress\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#5 \\$errorUrl of method PhpMyAdmin\\\\Export\\\\Export\\:\\:exportTable\\(\\) expects string, mixed given\\.$#" - count: 2 - path: src/Controllers/Export/ExportController.php - - - - message: "#^Parameter \\#5 \\$sqlQuery of static method PhpMyAdmin\\\\Export\\\\Export\\:\\:exportRaw\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$compression of method PhpMyAdmin\\Export\\Export\:\:getFinalFilenameAndMimetypeForFilename\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#5 \\$tableData of method PhpMyAdmin\\\\Export\\\\Export\\:\\:exportDatabase\\(\\) expects array\\, array given\\.$#" + message: '#^Parameter \#2 \$destCharset of static method PhpMyAdmin\\Encoding\:\:convertString\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Export/ExportController.php + + - + message: '#^Parameter \#2 \$exportPlugin of static method PhpMyAdmin\\Export\\Export\:\:exportRaw\(\) expects PhpMyAdmin\\Plugins\\ExportPlugin, object given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Export/ExportController.php + + - + message: '#^Parameter \#2 \$rememberTemplate of method PhpMyAdmin\\Export\\Export\:\:getFilenameAndMimetype\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Export/ExportController.php + + - + message: '#^Parameter \#3 \$errorUrl of static method PhpMyAdmin\\Export\\Export\:\:exportRaw\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Export/ExportController.php + + - + message: '#^Parameter \#3 \$exportPlugin of method PhpMyAdmin\\Export\\Export\:\:exportServer\(\) expects PhpMyAdmin\\Plugins\\ExportPlugin, object given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Export/ExportController.php + + - + message: '#^Parameter \#3 \$exportPlugin of method PhpMyAdmin\\Export\\Export\:\:getFilenameAndMimetype\(\) expects PhpMyAdmin\\Plugins\\ExportPlugin, object given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Export/ExportController.php + + - + message: '#^Parameter \#3 \$saveFilename of method PhpMyAdmin\\Export\\Export\:\:closeFile\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Export/ExportController.php + + - + message: '#^Parameter \#4 \$compression of method PhpMyAdmin\\Export\\Export\:\:getFilenameAndMimetype\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Export/ExportController.php + + - + message: '#^Parameter \#4 \$errorUrl of method PhpMyAdmin\\Export\\Export\:\:exportServer\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Export/ExportController.php + + - + message: '#^Parameter \#4 \$exportPlugin of method PhpMyAdmin\\Export\\Export\:\:exportTable\(\) expects PhpMyAdmin\\Plugins\\ExportPlugin, object given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#6 \\$exportPlugin of method PhpMyAdmin\\\\Export\\\\Export\\:\\:exportDatabase\\(\\) expects PhpMyAdmin\\\\Plugins\\\\ExportPlugin, object given\\.$#" + message: '#^Parameter \#4 \$tableStructure of method PhpMyAdmin\\Export\\Export\:\:exportDatabase\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#6 \\$exportType of method PhpMyAdmin\\\\Export\\\\Export\\:\\:exportTable\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#5 \$errorUrl of method PhpMyAdmin\\Export\\Export\:\:exportTable\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#7 \\$errorUrl of method PhpMyAdmin\\\\Export\\\\Export\\:\\:exportDatabase\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#5 \$sqlQuery of static method PhpMyAdmin\\Export\\Export\:\:exportRaw\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Export/ExportController.php + + - + message: '#^Parameter \#5 \$tableData of method PhpMyAdmin\\Export\\Export\:\:exportDatabase\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Export/ExportController.php - - message: "#^Parameter \\#8 \\$exportType of method PhpMyAdmin\\\\Export\\\\Export\\:\\:exportDatabase\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#6 \$exportPlugin of method PhpMyAdmin\\Export\\Export\:\:exportDatabase\(\) expects PhpMyAdmin\\Plugins\\ExportPlugin, object given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Export/ExportController.php - - message: "#^Property PhpMyAdmin\\\\Export\\\\Export\\:\\:\\$dumpBuffer \\(string\\) does not accept array\\|bool\\|string\\.$#" + message: '#^Parameter \#6 \$exportType of method PhpMyAdmin\\Export\\Export\:\:exportTable\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Export/ExportController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Parameter \#7 \$errorUrl of method PhpMyAdmin\\Export\\Export\:\:exportDatabase\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Controllers/Export/ExportController.php + + - + message: '#^Parameter \#8 \$exportType of method PhpMyAdmin\\Export\\Export\:\:exportDatabase\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Controllers/Export/ExportController.php + + - + message: '#^Property PhpMyAdmin\\Export\\Export\:\:\$dumpBuffer \(string\) does not accept array\|bool\|string\.$#' + identifier: assign.propertyType + count: 2 + path: src/Controllers/Export/ExportController.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Export/Template/CreateController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Export/Template/DeleteController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Export/Template/LoadController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Export/Template/UpdateController.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 1 path: src/Controllers/GisDataEditorController.php - - message: "#^PHPDoc tag @var for variable \\$gisDataParam has no value type specified in iterable type array\\.$#" + message: '#^PHPDoc tag @var for variable \$gisDataParam has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Controllers/GisDataEditorController.php - - message: "#^Parameter \\#1 \\$showGitRevision of class PhpMyAdmin\\\\Git constructor expects bool, mixed given\\.$#" + message: '#^Parameter \#1 \$showGitRevision of class PhpMyAdmin\\Git constructor expects bool, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/GitInfoController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 3 path: src/Controllers/HomeController.php - - message: "#^Cannot access offset mixed on mixed\\.$#" + message: '#^Cannot access offset mixed on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Controllers/HomeController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 7 path: src/Controllers/HomeController.php - - message: "#^Only booleans are allowed in &&, string\\|false given on the right side\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed count: 1 path: src/Controllers/HomeController.php - - message: "#^Only booleans are allowed in \\|\\|, string\\|false given on the right side\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 6 + path: src/Controllers/HomeController.php + + - + message: '#^Only booleans are allowed in &&, string\|false given on the right side\.$#' + identifier: booleanAnd.rightNotBoolean count: 1 path: src/Controllers/HomeController.php - - message: "#^Parameter \\#1 \\$message of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getMessage\\(\\) expects PhpMyAdmin\\\\Message\\|string, mixed given\\.$#" + message: '#^Only booleans are allowed in \|\|, string\|false given on the right side\.$#' + identifier: booleanOr.rightNotBoolean count: 1 path: src/Controllers/HomeController.php - - message: "#^Parameter \\#1 \\$showGitRevision of class PhpMyAdmin\\\\Git constructor expects bool, mixed given\\.$#" + message: '#^Parameter \#1 \$message of static method PhpMyAdmin\\Html\\Generator\:\:getMessage\(\) expects PhpMyAdmin\\Message\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/HomeController.php - - message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$showGitRevision of class PhpMyAdmin\\Git constructor expects bool, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/HomeController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Parameter \#2 \.\.\.\$values of function sprintf expects bool\|float\|int\|string\|null, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/HomeController.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Import/ImportController.php - - message: "#^Cannot access offset 'go_back_url' on mixed\\.$#" + message: '#^Cannot access offset ''go_back_url'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: src/Controllers/Import/ImportController.php - - message: "#^Cannot access offset 'message' on mixed\\.$#" + message: '#^Cannot access offset ''message'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 6 path: src/Controllers/Import/ImportController.php - - message: "#^Cannot access offset 'reload' on mixed\\.$#" + message: '#^Cannot access offset ''reload'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 5 path: src/Controllers/Import/ImportController.php - - message: "#^Cannot access offset 'table_name' on mixed\\.$#" + message: '#^Cannot access offset ''table_name'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Controllers/Import/ImportController.php - - message: "#^Cannot call method getDisplay\\(\\) on mixed\\.$#" + message: '#^Cannot call method getDisplay\(\) on mixed\.$#' + identifier: method.nonObject count: 1 path: src/Controllers/Import/ImportController.php - - message: "#^Casting to string something that's already string\\.$#" + message: '#^Casting to string something that''s already string\.$#' + identifier: cast.useless count: 1 path: src/Controllers/Import/ImportController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 8 path: src/Controllers/Import/ImportController.php - - message: "#^If condition is always false\\.$#" + message: '#^If condition is always false\.$#' + identifier: if.alwaysFalse count: 1 path: src/Controllers/Import/ImportController.php - - message: "#^Left side of && is always false\\.$#" + message: '#^Left side of && is always false\.$#' + identifier: booleanAnd.leftAlwaysFalse count: 1 path: src/Controllers/Import/ImportController.php - - message: "#^Negated boolean expression is always true\\.$#" - count: 1 - path: src/Controllers/Import/ImportController.php - - - - message: "#^Parameter \\#1 \\$sqlQuery of method PhpMyAdmin\\\\Import\\\\Import\\:\\:handleRollbackRequest\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Controllers/Import/ImportController.php - - - - message: "#^Parameter \\#1 \\$sqlQuery of static method PhpMyAdmin\\\\ParseAnalyze\\:\\:sqlQuery\\(\\) expects string, mixed given\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed count: 2 path: src/Controllers/Import/ImportController.php - - message: "#^Parameter \\#1 \\$string of function mb_strlen expects string, mixed given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 1 path: src/Controllers/Import/ImportController.php - - message: "#^Parameter \\#11 \\$sqlQuery of method PhpMyAdmin\\\\Sql\\:\\:executeQueryAndGetQueryResponse\\(\\) expects string, mixed given\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: src/Controllers/Import/ImportController.php - - message: "#^Parameter \\#2 \\$size of method PhpMyAdmin\\\\Import\\\\Import\\:\\:getNextChunk\\(\\) expects int, float\\|int\\\\|int\\<1, max\\> given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean + count: 5 + path: src/Controllers/Import/ImportController.php + + - + message: '#^Only booleans are allowed in an if condition, mixed given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Controllers/Import/ImportController.php - - message: "#^Parameter \\#2 \\$sqlQuery of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getMessage\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$sqlQuery of method PhpMyAdmin\\Import\\Import\:\:handleRollbackRequest\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Import/ImportController.php - - message: "#^Parameter \\#2 \\$subject of function preg_match expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$sqlQuery of static method PhpMyAdmin\\ParseAnalyze\:\:sqlQuery\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Controllers/Import/ImportController.php + + - + message: '#^Parameter \#1 \$string of function mb_strlen expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Import/ImportController.php + + - + message: '#^Parameter \#11 \$sqlQuery of method PhpMyAdmin\\Sql\:\:executeQueryAndGetQueryResponse\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Import/ImportController.php + + - + message: '#^Parameter \#2 \$size of method PhpMyAdmin\\Import\\Import\:\:getNextChunk\(\) expects int, float\|int\\|int\<1, max\> given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Import/ImportController.php + + - + message: '#^Parameter \#2 \$sqlQuery of static method PhpMyAdmin\\Html\\Generator\:\:getMessage\(\) expects string\|null, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Import/ImportController.php + + - + message: '#^Parameter \#2 \$subject of function preg_match expects string, mixed given\.$#' + identifier: argument.type count: 4 path: src/Controllers/Import/ImportController.php - - message: "#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, \\(array\\\\|string\\|null\\) given\\.$#" + message: '#^Parameter \#3 \$subject of function preg_replace expects array\\|string, \(list\\|string\|null\) given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Import/ImportController.php - - message: "#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, mixed given\\.$#" + message: '#^Parameter \#3 \$subject of function preg_replace expects array\\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Import/ImportController.php - - message: "#^Parameter \\#4 \\$backUrl of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:mysqlDie\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#4 \$backUrl of static method PhpMyAdmin\\Html\\Generator\:\:mysqlDie\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Import/ImportController.php - - message: "#^Parameter \\#5 \\$exit of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:mysqlDie\\(\\) expects bool, mixed given\\.$#" + message: '#^Parameter \#5 \$exit of static method PhpMyAdmin\\Html\\Generator\:\:mysqlDie\(\) expects bool, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Import/ImportController.php - - message: "#^Result of \\|\\| is always true\\.$#" + message: '#^Result of \|\| is always true\.$#' + identifier: booleanOr.alwaysTrue count: 1 path: src/Controllers/Import/ImportController.php - - message: "#^Static property PhpMyAdmin\\\\Import\\\\ImportSettings\\:\\:\\$importType \\(''\\|'database'\\|'query'\\|'server'\\|'table'\\) does not accept string\\.$#" + message: '#^Static property PhpMyAdmin\\Import\\ImportSettings\:\:\$importType \(''''\|''database''\|''query''\|''server''\|''table''\) does not accept string\.$#' + identifier: assign.propertyType count: 1 path: src/Controllers/Import/ImportController.php - - message: "#^Static property PhpMyAdmin\\\\Import\\\\ImportSettings\\:\\:\\$readLimit \\(int\\) does not accept float\\|int\\\\|int\\<1, max\\>\\.$#" + message: '#^Static property PhpMyAdmin\\Import\\ImportSettings\:\:\$readLimit \(int\) does not accept float\|int\\|int\<1, max\>\.$#' + identifier: assign.propertyType count: 1 path: src/Controllers/Import/ImportController.php - - message: "#^Strict comparison using \\=\\=\\= between 0 and 0 will always evaluate to true\\.$#" + message: '#^Strict comparison using \=\=\= between 0 and 0 will always evaluate to true\.$#' + identifier: identical.alwaysTrue count: 1 path: src/Controllers/Import/ImportController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Controllers/Import/SimulateDmlController.php - - message: "#^Parameter \\#1 \\$query of method PhpMyAdmin\\\\Controllers\\\\Import\\\\SimulateDmlController\\:\\:createParser\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$query of method PhpMyAdmin\\Controllers\\Import\\SimulateDmlController\:\:createParser\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Import/SimulateDmlController.php - - message: "#^Cannot access offset 'go_back_url' on mixed\\.$#" + message: '#^Cannot access offset ''go_back_url'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Controllers/Import/StatusController.php - - message: "#^Cannot access offset 'message' on mixed\\.$#" + message: '#^Cannot access offset ''message'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Controllers/Import/StatusController.php - - message: "#^Parameter \\#1 \\$id of static method PhpMyAdmin\\\\Import\\\\Ajax\\:\\:status\\(\\) expects string, mixed given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 1 path: src/Controllers/Import/StatusController.php - - message: "#^Parameter \\#1 \\(mixed\\) of echo cannot be converted to string\\.$#" + message: '#^Parameter \#1 \$id of static method PhpMyAdmin\\Import\\Ajax\:\:status\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Import/StatusController.php - - message: "#^Parameter \\#1 \\$filename of function is_readable expects string, mixed given\\.$#" + message: '#^Parameter \#1 \(mixed\) of echo cannot be converted to string\.$#' + identifier: echo.nonString + count: 1 + path: src/Controllers/Import/StatusController.php + + - + message: '#^Parameter \#1 \$filename of function is_readable expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/LicenseController.php - - message: "#^Parameter \\#1 \\$filename of function readfile expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$filename of function readfile expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/LicenseController.php - - message: "#^Parameter \\#1 \\$path of function basename expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$path of function basename expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/LicenseController.php - - message: "#^Parameter \\#1 \\$partialDependencies of method PhpMyAdmin\\\\Normalization\\:\\:createNewTablesFor2NF\\(\\) expects array, mixed given\\.$#" + message: '#^Only booleans are allowed in \|\|, mixed given on the right side\.$#' + identifier: booleanOr.rightNotBoolean + count: 1 + path: src/Controllers/LogoutController.php + + - + message: '#^Parameter \#1 \$partialDependencies of method PhpMyAdmin\\Normalization\:\:createNewTablesFor2NF\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Normalization/SecondNormalForm/CreateNewTablesController.php - - message: "#^Parameter \\#2 \\$tablesName of method PhpMyAdmin\\\\Normalization\\:\\:createNewTablesFor2NF\\(\\) expects object, mixed given\\.$#" + message: '#^Parameter \#2 \$tablesName of method PhpMyAdmin\\Normalization\:\:createNewTablesFor2NF\(\) expects object, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Normalization/SecondNormalForm/CreateNewTablesController.php - - message: "#^Parameter \\#1 \\$partialDependencies of method PhpMyAdmin\\\\Normalization\\:\\:getHtmlForNewTables2NF\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#1 \$partialDependencies of method PhpMyAdmin\\Normalization\:\:getHtmlForNewTables2NF\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Normalization/SecondNormalForm/NewTablesController.php - - message: "#^Parameter \\#1 \\$newTables of method PhpMyAdmin\\\\Normalization\\:\\:createNewTablesFor3NF\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#1 \$newTables of method PhpMyAdmin\\Normalization\:\:createNewTablesFor3NF\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Normalization/ThirdNormalForm/CreateNewTablesController.php - - message: "#^Parameter \\#2 \\$tables of method PhpMyAdmin\\\\Normalization\\:\\:getHtmlFor3NFstep1\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#2 \$tables of method PhpMyAdmin\\Normalization\:\:getHtmlFor3NFstep1\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Normalization/ThirdNormalForm/FirstStepController.php - - message: "#^Parameter \\#1 \\$dependencies of method PhpMyAdmin\\\\Normalization\\:\\:getHtmlForNewTables3NF\\(\\) expects object, mixed given\\.$#" + message: '#^Parameter \#1 \$dependencies of method PhpMyAdmin\\Normalization\:\:getHtmlForNewTables3NF\(\) expects object, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Normalization/ThirdNormalForm/NewTablesController.php - - message: "#^Parameter \\#2 \\$tables of method PhpMyAdmin\\\\Normalization\\:\\:getHtmlForNewTables3NF\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#2 \$tables of method PhpMyAdmin\\Normalization\:\:getHtmlForNewTables3NF\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Normalization/ThirdNormalForm/NewTablesController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Operations/Database/CollationController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Operations/DatabaseController.php - - message: "#^Cannot call method isSuccess\\(\\) on mixed\\.$#" + message: '#^Cannot call method isSuccess\(\) on mixed\.$#' + identifier: method.nonObject count: 1 path: src/Controllers/Operations/DatabaseController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Controllers/Operations/DatabaseController.php - - message: "#^Parameter \\#1 \\$message of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getMessage\\(\\) expects PhpMyAdmin\\\\Message\\|string, mixed given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 1 path: src/Controllers/Operations/DatabaseController.php - - message: "#^Parameter \\#1 \\$state of method PhpMyAdmin\\\\ResponseRenderer\\:\\:setRequestStatus\\(\\) expects bool, mixed given\\.$#" + message: '#^Only booleans are allowed in &&, mixed given on the right side\.$#' + identifier: booleanAnd.rightNotBoolean count: 1 path: src/Controllers/Operations/DatabaseController.php - - message: "#^Parameter \\#2 \\$exportSqlPlugin of method PhpMyAdmin\\\\Operations\\:\\:getViewsAndCreateSqlViewStandIn\\(\\) expects PhpMyAdmin\\\\Plugins\\\\Export\\\\ExportSql, object\\|null given\\.$#" + message: '#^Parameter \#1 \$message of static method PhpMyAdmin\\Html\\Generator\:\:getMessage\(\) expects PhpMyAdmin\\Message\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Operations/DatabaseController.php - - message: "#^Parameter \\#2 \\$sqlQuery of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getMessage\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$state of method PhpMyAdmin\\ResponseRenderer\:\:setRequestStatus\(\) expects bool, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Operations/DatabaseController.php + + - + message: '#^Parameter \#2 \$exportSqlPlugin of method PhpMyAdmin\\Operations\:\:getViewsAndCreateSqlViewStandIn\(\) expects PhpMyAdmin\\Plugins\\Export\\ExportSql, object\|null given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Operations/DatabaseController.php + + - + message: '#^Parameter \#2 \$sqlQuery of static method PhpMyAdmin\\Html\\Generator\:\:getMessage\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Operations/DatabaseController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Operations/TableController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 9 path: src/Controllers/Operations/TableController.php - - message: "#^Only booleans are allowed in &&, mixed given on the right side\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed count: 1 path: src/Controllers/Operations/TableController.php - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 4 + path: src/Controllers/Operations/TableController.php + + - + message: '#^Only booleans are allowed in &&, mixed given on the right side\.$#' + identifier: booleanAnd.rightNotBoolean + count: 2 + path: src/Controllers/Operations/TableController.php + + - + message: '#^Only booleans are allowed in an if condition, mixed given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Controllers/Operations/TableController.php - - message: "#^Parameter \\#2 \\$sqlQuery of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getMessage\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \$sqlQuery of static method PhpMyAdmin\\Html\\Generator\:\:getMessage\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 3 path: src/Controllers/Operations/TableController.php - - message: "#^Parameter \\#3 \\$partitionNames of static method PhpMyAdmin\\\\Query\\\\Generator\\:\\:getQueryForPartitioningTable\\(\\) expects array\\, array given\\.$#" + message: '#^Parameter \#3 \$partitionNames of static method PhpMyAdmin\\Query\\Generator\:\:getQueryForPartitioningTable\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Operations/TableController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Operations/ViewController.php - - message: "#^Parameter \\#2 \\$sqlQuery of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getMessage\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \$sqlQuery of static method PhpMyAdmin\\Html\\Generator\:\:getMessage\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Operations/ViewController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Preferences/ExportController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Preferences/FeaturesController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Preferences/ImportController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Preferences/MainPanelController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Preferences/ManageController.php - - message: "#^Only booleans are allowed in an if condition, PhpMyAdmin\\\\Message\\|string given\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 2 + path: src/Controllers/Preferences/ManageController.php + + - + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 1 path: src/Controllers/Preferences/ManageController.php - - message: "#^Only numeric types are allowed in \\+, int\\<0, max\\>\\|false given on the left side\\.$#" + message: '#^Only booleans are allowed in an if condition, PhpMyAdmin\\Message\|string given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Controllers/Preferences/ManageController.php - - message: "#^Parameter \\#1 \\$fileName of method PhpMyAdmin\\\\UserPreferences\\:\\:redirect\\(\\) expects string, string\\|false given\\.$#" + message: '#^Only numeric types are allowed in \+, int\<0, max\>\|false given on the left side\.$#' + identifier: plus.leftNonNumeric count: 1 path: src/Controllers/Preferences/ManageController.php - - message: "#^Parameter \\#1 \\$filename of function file_exists expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$fileName of method PhpMyAdmin\\UserPreferences\:\:redirect\(\) expects string, string\|false given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Preferences/ManageController.php - - message: "#^Parameter \\#1 \\$json of function json_decode expects string, string\\|false given\\.$#" + message: '#^Parameter \#1 \$filename of function file_exists expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Preferences/ManageController.php - - message: "#^Parameter \\#1 \\$theme of method PhpMyAdmin\\\\Theme\\\\ThemeManager\\:\\:checkTheme\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$json of function json_decode expects string, string\|false given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Preferences/ManageController.php - - message: "#^Parameter \\#1 \\$theme of method PhpMyAdmin\\\\Theme\\\\ThemeManager\\:\\:setActiveTheme\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$theme of method PhpMyAdmin\\Theme\\ThemeManager\:\:checkTheme\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Preferences/ManageController.php - - message: "#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#1 \$theme of method PhpMyAdmin\\Theme\\ThemeManager\:\:setActiveTheme\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Preferences/ManageController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Parameter \#3 \$subject of function str_replace expects array\\|string, \(int\|string\) given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Preferences/ManageController.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Preferences/NavigationController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Preferences/SqlController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Preferences/TwoFactorController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Server/BinlogController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Server/CollationsController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Server/Databases/CreateController.php - - message: "#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Controllers/Server/Databases/CreateController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Server/Databases/DestroyController.php - - message: "#^Parameter \\#1 \\$db of method PhpMyAdmin\\\\ConfigStorage\\\\RelationCleanup\\:\\:database\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$db of method PhpMyAdmin\\ConfigStorage\\RelationCleanup\:\:database\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/Databases/DestroyController.php - - message: "#^Parameter \\#1 \\$db of method PhpMyAdmin\\\\Transformations\\:\\:clear\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$db of method PhpMyAdmin\\Transformations\:\:clear\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/Databases/DestroyController.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/Databases/DestroyController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: src/Controllers/Server/DatabasesController.php - - message: "#^Call to function array_search\\(\\) requires parameter \\#3 to be set\\.$#" + message: '#^Call to function array_search\(\) requires parameter \#3 to be set\.$#' + identifier: function.strict count: 4 path: src/Controllers/Server/DatabasesController.php - - message: "#^Cannot access offset 'DEFAULT_COLLATION…' on mixed\\.$#" + message: '#^Cannot access offset ''DEFAULT_COLLATION_NAME'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Controllers/Server/DatabasesController.php - - message: "#^Cannot access offset 'SCHEMA_NAME' on mixed\\.$#" + message: '#^Cannot access offset ''SCHEMA_NAME'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 10 path: src/Controllers/Server/DatabasesController.php - - message: "#^Cannot access offset string on mixed\\.$#" + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Controllers/Server/DatabasesController.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 3 path: src/Controllers/Server/DatabasesController.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 4 path: src/Controllers/Server/DatabasesController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Controllers/Server/DatabasesController.php - - message: "#^Parameter \\#1 \\$params of static method PhpMyAdmin\\\\Url\\:\\:getCommonRaw\\(\\) expects array\\, array\\ given\\.$#" + message: '#^Parameter \#1 \$params of static method PhpMyAdmin\\Url\:\:getCommonRaw\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/DatabasesController.php - - message: "#^Parameter \\#1 \\$schemaName of static method PhpMyAdmin\\\\Query\\\\Utilities\\:\\:isSystemSchema\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$schemaName of static method PhpMyAdmin\\Query\\Utilities\:\:isSystemSchema\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/DatabasesController.php - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Server/DatabasesController.php - - message: "#^Parameter \\#2 \\$haystack of function array_search expects array, mixed given\\.$#" + message: '#^Parameter \#2 \$haystack of function array_search expects array, mixed given\.$#' + identifier: argument.type count: 4 path: src/Controllers/Server/DatabasesController.php - - message: "#^Parameter \\#3 \\$name of static method PhpMyAdmin\\\\Charsets\\:\\:findCollationByName\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$name of static method PhpMyAdmin\\Charsets\:\:findCollationByName\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/DatabasesController.php - - message: "#^Parameter \\#1 \\$tmpSelect of method PhpMyAdmin\\\\Export\\\\Options\\:\\:getDatabasesForSelectOptions\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$tmpSelect of method PhpMyAdmin\\Export\\Options\:\:getDatabasesForSelectOptions\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/ExportController.php - - message: "#^Parameter \\#4 \\$sqlQuery of method PhpMyAdmin\\\\Export\\\\Options\\:\\:getOptions\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#4 \$sqlQuery of method PhpMyAdmin\\Export\\Options\:\:getOptions\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/ExportController.php - - message: "#^Parameter \\#5 \\$numTables of method PhpMyAdmin\\\\Export\\\\Options\\:\\:getOptions\\(\\) expects int\\|string, mixed given\\.$#" + message: '#^Parameter \#5 \$numTables of method PhpMyAdmin\\Export\\Options\:\:getOptions\(\) expects int\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/ExportController.php - - message: "#^Parameter \\#6 \\$unlimNumRows of method PhpMyAdmin\\\\Export\\\\Options\\:\\:getOptions\\(\\) expects int\\|string, mixed given\\.$#" + message: '#^Parameter \#6 \$unlimNumRows of method PhpMyAdmin\\Export\\Options\:\:getOptions\(\) expects int\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/ExportController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Server/ImportController.php - - message: "#^Cannot access offset 'handler' on mixed\\.$#" + message: '#^Cannot access offset ''handler'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Controllers/Server/ImportController.php - - message: "#^Cannot call static method getIdKey\\(\\) on mixed\\.$#" + message: '#^Cannot call static method getIdKey\(\) on mixed\.$#' + identifier: staticMethod.nonObject count: 1 path: src/Controllers/Server/ImportController.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 1 path: src/Controllers/Server/ImportController.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 1 path: src/Controllers/Server/ImportController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 5 path: src/Controllers/Server/PrivilegesController.php - - message: "#^Method PhpMyAdmin\\\\Controllers\\\\Server\\\\PrivilegesController\\:\\:getExportPageTitle\\(\\) has parameter \\$selectedUsers with no value type specified in iterable type array\\.$#" - count: 1 - path: src/Controllers/Server/PrivilegesController.php - - - - message: "#^Parameter \\#1 \\$errorUrl of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:updatePassword\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Controllers/Server/PrivilegesController.php - - - - message: "#^Parameter \\#1 \\$message of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getMessage\\(\\) expects PhpMyAdmin\\\\Message\\|string, mixed given\\.$#" - count: 1 - path: src/Controllers/Server/PrivilegesController.php - - - - message: "#^Parameter \\#1 \\$username of method PhpMyAdmin\\\\Controllers\\\\Server\\\\PrivilegesController\\:\\:getExportPageTitle\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Controllers/Server/PrivilegesController.php - - - - message: "#^Parameter \\#1 \\$username of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:getExportUserDefinitionTextarea\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Controllers/Server/PrivilegesController.php - - - - message: "#^Parameter \\#1 \\$username of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:getHtmlForRoutineSpecificPrivileges\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Controllers/Server/PrivilegesController.php - - - - message: "#^Parameter \\#1 \\$username of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:setUserGroup\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Controllers/Server/PrivilegesController.php - - - - message: "#^Parameter \\#1 \\$username of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:updatePrivileges\\(\\) expects string, mixed given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 2 path: src/Controllers/Server/PrivilegesController.php - - message: "#^Parameter \\#2 \\$globalHostname of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:getHostname\\(\\) expects string, mixed given\\.$#" + message: '#^Method PhpMyAdmin\\Controllers\\Server\\PrivilegesController\:\:getExportPageTitle\(\) has parameter \$selectedUsers with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Controllers/Server/PrivilegesController.php - - message: "#^Parameter \\#2 \\$hostname of method PhpMyAdmin\\\\Controllers\\\\Server\\\\PrivilegesController\\:\\:getExportPageTitle\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$errorUrl of method PhpMyAdmin\\Server\\Privileges\:\:updatePassword\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/PrivilegesController.php - - message: "#^Parameter \\#2 \\$hostname of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:getExportUserDefinitionTextarea\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$message of static method PhpMyAdmin\\Html\\Generator\:\:getMessage\(\) expects PhpMyAdmin\\Message\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/PrivilegesController.php - - message: "#^Parameter \\#2 \\$hostname of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:getHtmlForRoutineSpecificPrivileges\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$username of method PhpMyAdmin\\Controllers\\Server\\PrivilegesController\:\:getExportPageTitle\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/PrivilegesController.php - - message: "#^Parameter \\#2 \\$hostname of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:updatePrivileges\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$username of method PhpMyAdmin\\Server\\Privileges\:\:getExportUserDefinitionTextarea\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Server/PrivilegesController.php + + - + message: '#^Parameter \#1 \$username of method PhpMyAdmin\\Server\\Privileges\:\:getHtmlForRoutineSpecificPrivileges\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Server/PrivilegesController.php + + - + message: '#^Parameter \#1 \$username of method PhpMyAdmin\\Server\\Privileges\:\:setUserGroup\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Server/PrivilegesController.php + + - + message: '#^Parameter \#1 \$username of method PhpMyAdmin\\Server\\Privileges\:\:updatePrivileges\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Server/PrivilegesController.php - - message: "#^Parameter \\#2 \\$initial of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:getHtmlForUserOverview\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \$globalHostname of method PhpMyAdmin\\Server\\Privileges\:\:getHostname\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/PrivilegesController.php - - message: "#^Parameter \\#2 \\$sqlQuery of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:getExtraDataForAjaxBehavior\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$hostname of method PhpMyAdmin\\Controllers\\Server\\PrivilegesController\:\:getExportPageTitle\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/PrivilegesController.php - - message: "#^Parameter \\#2 \\$username of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:addUser\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$hostname of method PhpMyAdmin\\Server\\Privileges\:\:getExportUserDefinitionTextarea\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/PrivilegesController.php - - message: "#^Parameter \\#2 \\$username of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:getDbSpecificPrivsQueriesForChangeOrCopyUser\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$hostname of method PhpMyAdmin\\Server\\Privileges\:\:getHtmlForRoutineSpecificPrivileges\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/PrivilegesController.php - - message: "#^Parameter \\#2 \\$username of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:updatePassword\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$hostname of method PhpMyAdmin\\Server\\Privileges\:\:updatePrivileges\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Controllers/Server/PrivilegesController.php + + - + message: '#^Parameter \#2 \$initial of method PhpMyAdmin\\Server\\Privileges\:\:getHtmlForUserOverview\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/PrivilegesController.php - - message: "#^Parameter \\#3 \\$hostname of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:getDbSpecificPrivsQueriesForChangeOrCopyUser\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$sqlQuery of method PhpMyAdmin\\Server\\Privileges\:\:getExtraDataForAjaxBehavior\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/PrivilegesController.php - - message: "#^Parameter \\#3 \\$hostname of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:getExtraDataForAjaxBehavior\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$username of method PhpMyAdmin\\Server\\Privileges\:\:addUser\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/PrivilegesController.php - - message: "#^Parameter \\#3 \\$hostname of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:updatePassword\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$username of method PhpMyAdmin\\Server\\Privileges\:\:getDbSpecificPrivsQueriesForChangeOrCopyUser\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/PrivilegesController.php - - message: "#^Parameter \\#3 \\$username of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:getHtmlForUserProperties\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$username of method PhpMyAdmin\\Server\\Privileges\:\:updatePassword\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/PrivilegesController.php - - message: "#^Parameter \\#3 \\$username of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:getMessageAndSqlQueryForPrivilegesRevoke\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$hostname of method PhpMyAdmin\\Server\\Privileges\:\:getDbSpecificPrivsQueriesForChangeOrCopyUser\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/PrivilegesController.php - - message: "#^Parameter \\#4 \\$hostname of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:getHtmlForUserProperties\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$hostname of method PhpMyAdmin\\Server\\Privileges\:\:getExtraDataForAjaxBehavior\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/PrivilegesController.php - - message: "#^Parameter \\#4 \\$hostname of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:getMessageAndSqlQueryForPrivilegesRevoke\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$hostname of method PhpMyAdmin\\Server\\Privileges\:\:updatePassword\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/PrivilegesController.php - - message: "#^Parameter \\#4 \\$username of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:getExtraDataForAjaxBehavior\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$username of method PhpMyAdmin\\Server\\Privileges\:\:getHtmlForUserProperties\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/PrivilegesController.php - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" + message: '#^Parameter \#3 \$username of method PhpMyAdmin\\Server\\Privileges\:\:getMessageAndSqlQueryForPrivilegesRevoke\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Server/PrivilegesController.php + + - + message: '#^Parameter \#4 \$hostname of method PhpMyAdmin\\Server\\Privileges\:\:getHtmlForUserProperties\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Server/PrivilegesController.php + + - + message: '#^Parameter \#4 \$hostname of method PhpMyAdmin\\Server\\Privileges\:\:getMessageAndSqlQueryForPrivilegesRevoke\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Server/PrivilegesController.php + + - + message: '#^Parameter \#4 \$username of method PhpMyAdmin\\Server\\Privileges\:\:getExtraDataForAjaxBehavior\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Server/PrivilegesController.php + + - + message: '#^Only booleans are allowed in an if condition, mixed given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Controllers/Server/ReplicationController.php - - message: "#^Parameter \\#2 \\$serverReplicaStatus of method PhpMyAdmin\\\\Replication\\\\ReplicationGui\\:\\:getHtmlForReplicaConfiguration\\(\\) expects bool, mixed given\\.$#" + message: '#^Parameter \#2 \$serverReplicaStatus of method PhpMyAdmin\\Replication\\ReplicationGui\:\:getHtmlForReplicaConfiguration\(\) expects bool, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/ReplicationController.php - - message: "#^Static property PhpMyAdmin\\\\UrlParams\\:\\:\\$params \\(array\\\\) does not accept array\\.$#" + message: '#^Static property PhpMyAdmin\\UrlParams\:\:\$params \(array\\) does not accept array\\.$#' + identifier: assign.propertyType count: 1 path: src/Controllers/Server/ReplicationController.php - - message: "#^Only booleans are allowed in an if condition, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Only booleans are allowed in an if condition, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Controllers/Server/Status/Processes/KillController.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Binary operation "\*" between mixed and \(float\|int\) results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Controllers/Server/Status/QueriesController.php - - message: "#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, \\(int\\|string\\) given\\.$#" + message: '#^Binary operation "\*" between mixed and 100 results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Controllers/Server/Status/QueriesController.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Binary operation "\+\=" between float\|int and mixed results in an error\.$#' + identifier: assignOp.invalid + count: 1 + path: src/Controllers/Server/Status/QueriesController.php + + - + message: '#^Binary operation "/" between \(float\|int\) and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 2 + path: src/Controllers/Server/Status/QueriesController.php + + - + message: '#^Binary operation "/" between 3600 and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Controllers/Server/Status/QueriesController.php + + - + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int + count: 1 + path: src/Controllers/Server/Status/QueriesController.php + + - + message: '#^Parameter \#3 \$subject of function str_replace expects array\\|string, \(int\|string\) given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Server/Status/QueriesController.php + + - + message: '#^Binary operation "\*" between \(array\|float\|int\) and \(float\|int\) results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Controllers/Server/Status/StatusController.php - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" + message: '#^Binary operation "\*" between mixed and \(float\|int\) results in an error\.$#' + identifier: binaryOp.invalid + count: 5 + path: src/Controllers/Server/Status/StatusController.php + + - + message: '#^Binary operation "\*" between mixed and 100 results in an error\.$#' + identifier: binaryOp.invalid count: 2 path: src/Controllers/Server/Status/StatusController.php - - message: "#^Parameter \\#1 \\$value of static method PhpMyAdmin\\\\Util\\:\\:formatByteDown\\(\\) expects float\\|int\\|string\\|null, \\(array\\|float\\|int\\) given\\.$#" + message: '#^Binary operation "\+" between mixed and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 3 + path: src/Controllers/Server/Status/StatusController.php + + - + message: '#^Binary operation "\." between ''SELECT UNIX…'' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Controllers/Server/Status/StatusController.php + + - + message: '#^Binary operation "/" between \(float\|int\) and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 2 path: src/Controllers/Server/Status/StatusController.php - - message: "#^Parameter \\#1 \\$value of static method PhpMyAdmin\\\\Util\\:\\:formatByteDown\\(\\) expects float\\|int\\|string\\|null, mixed given\\.$#" + message: '#^Binary operation "/" between 3600 and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 2 path: src/Controllers/Server/Status/StatusController.php - - message: "#^Parameter \\#1 \\$value of static method PhpMyAdmin\\\\Util\\:\\:formatNumber\\(\\) expects float\\|int\\|string, mixed given\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int + count: 1 + path: src/Controllers/Server/Status/StatusController.php + + - + message: '#^Only booleans are allowed in an if condition, mixed given\.$#' + identifier: if.condNotBoolean + count: 2 + path: src/Controllers/Server/Status/StatusController.php + + - + message: '#^Only numeric types are allowed in \*, \(array\|float\|int\) given on the left side\.$#' + identifier: mul.leftNonNumeric + count: 1 + path: src/Controllers/Server/Status/StatusController.php + + - + message: '#^Parameter \#1 \$value of static method PhpMyAdmin\\Util\:\:formatByteDown\(\) expects float\|int\|string\|null, \(array\|float\|int\) given\.$#' + identifier: argument.type + count: 2 + path: src/Controllers/Server/Status/StatusController.php + + - + message: '#^Parameter \#1 \$value of static method PhpMyAdmin\\Util\:\:formatByteDown\(\) expects float\|int\|string\|null, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Controllers/Server/Status/StatusController.php + + - + message: '#^Parameter \#1 \$value of static method PhpMyAdmin\\Util\:\:formatNumber\(\) expects float\|int\|string, mixed given\.$#' + identifier: argument.type count: 4 path: src/Controllers/Server/Status/StatusController.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Controllers/Server/Status/VariablesController.php - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" + message: '#^Binary operation "\*" between 0\.01 and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Controllers/Server/Status/VariablesController.php - - message: "#^Parameter \\#1 \\$flush of method PhpMyAdmin\\\\Controllers\\\\Server\\\\Status\\\\VariablesController\\:\\:flush\\(\\) expects string, mixed given\\.$#" + message: '#^Binary operation "\*" between 0\.9 and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Controllers/Server/Status/VariablesController.php - - message: "#^Parameter \\#1 \\$haystack of function str_contains expects string, \\(int\\|string\\) given\\.$#" + message: '#^Binary operation "\*" between 0\.95 and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Controllers/Server/Status/VariablesController.php - - message: "#^Parameter \\#1 \\$name of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:linkToVarDocumentation\\(\\) expects string, \\(int\\|string\\) given\\.$#" + message: '#^Binary operation "/" between mixed and 5 results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Controllers/Server/Status/VariablesController.php - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Controllers/Server/Status/VariablesController.php - - message: "#^Only booleans are allowed in an if condition, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Parameter \#1 \$flush of method PhpMyAdmin\\Controllers\\Server\\Status\\VariablesController\:\:flush\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Server/Status/VariablesController.php + + - + message: '#^Parameter \#1 \$haystack of function str_contains expects string, \(int\|string\) given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Server/Status/VariablesController.php + + - + message: '#^Parameter \#1 \$name of static method PhpMyAdmin\\Html\\Generator\:\:linkToVarDocumentation\(\) expects string, \(int\|string\) given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Server/Status/VariablesController.php + + - + message: '#^Short ternary operator is not allowed\. Use null coalesce operator if applicable or consider using long ternary\.$#' + identifier: ternary.shortNotAllowed + count: 1 + path: src/Controllers/Server/Status/VariablesController.php + + - + message: '#^Only booleans are allowed in an if condition, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Controllers/Server/UserGroupsFormController.php - - message: "#^Offset 1 does not exist on array\\\\|null\\.$#" + message: '#^Offset 1 might not exist on array\\|null\.$#' + identifier: offsetAccess.notFound count: 2 path: src/Controllers/Server/Variables/GetVariableController.php - - message: "#^Offset 1 does not exist on array\\\\|null\\.$#" + message: '#^Offset 1 might not exist on array\\|null\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Controllers/Server/Variables/SetVariableController.php - - message: "#^Parameter \\#1 \\$string of function htmlspecialchars expects string, int\\|string given\\.$#" + message: '#^Parameter \#1 \$string of function htmlspecialchars expects string, int\|string given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/Variables/SetVariableController.php - - message: "#^Parameter \\#2 \\$value of method PhpMyAdmin\\\\Controllers\\\\Server\\\\Variables\\\\SetVariableController\\:\\:formatVariable\\(\\) expects int\\|string, string\\|null given\\.$#" + message: '#^Parameter \#2 \$value of method PhpMyAdmin\\Controllers\\Server\\Variables\\SetVariableController\:\:formatVariable\(\) expects int\|string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Server/Variables/SetVariableController.php - - message: "#^Parameter \\#1 \\$filename of function file_exists expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$filename of function file_exists expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Setup/ConfigController.php - - message: "#^Parameter \\#1 \\$filename of function file_exists expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$filename of function file_exists expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Setup/FormController.php - - message: "#^Only booleans are allowed in a ternary operator condition, mixed given\\.$#" + message: '#^Only booleans are allowed in a ternary operator condition, mixed given\.$#' + identifier: ternary.condNotBoolean count: 1 path: src/Controllers/Setup/HomeController.php - - message: "#^Parameter \\#1 \\$filename of function file_exists expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$filename of function file_exists expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Setup/HomeController.php - - message: "#^Parameter \\#1 \\$id of method PhpMyAdmin\\\\Config\\\\ConfigFile\\:\\:getServerName\\(\\) expects int, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#1 \$id of method PhpMyAdmin\\Config\\ConfigFile\:\:getServerName\(\) expects int, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Setup/HomeController.php - - message: "#^Parameter \\#1 \\$server of method PhpMyAdmin\\\\Config\\\\ConfigFile\\:\\:getServerDSN\\(\\) expects int, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#1 \$server of method PhpMyAdmin\\Config\\ConfigFile\:\:getServerDSN\(\) expects int, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Setup/HomeController.php - - message: "#^Parameter \\#1 \\$filename of function file_exists expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$filename of function file_exists expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Setup/ServerDestroyController.php - - message: "#^Parameter \\#1 \\$filename of function file_exists expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$filename of function file_exists expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Setup/ServersController.php - - message: "#^Parameter \\#1 \\$filename of function file_exists expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$filename of function file_exists expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Setup/ShowConfigController.php - - message: "#^Parameter \\#1 \\$filename of function file_exists expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$filename of function file_exists expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Setup/ValidateController.php - - message: "#^Cannot access offset 'relational_display' on mixed\\.$#" + message: '#^Cannot access offset ''relational_display'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Controllers/Sql/RelationalValuesController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Sql/SqlController.php - - message: "#^Cannot access offset 'reload' on mixed\\.$#" + message: '#^Cannot access offset ''reload'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Controllers/Sql/SqlController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Controllers/Sql/SqlController.php - - message: "#^Only booleans are allowed in an if condition, bool\\|null given\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 3 + path: src/Controllers/Sql/SqlController.php + + - + message: '#^Only booleans are allowed in an if condition, bool\|null given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Controllers/Sql/SqlController.php - - message: "#^Parameter \\#1 \\$sqlQuery of static method PhpMyAdmin\\\\Core\\:\\:checkSqlQuerySignature\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$sqlQuery of static method PhpMyAdmin\\Core\:\:checkSqlQuerySignature\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Sql/SqlController.php - - message: "#^Parameter \\#1 \\$sqlQuery of static method PhpMyAdmin\\\\ParseAnalyze\\:\\:sqlQuery\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$sqlQuery of static method PhpMyAdmin\\ParseAnalyze\:\:sqlQuery\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Sql/SqlController.php - - message: "#^Parameter \\#10 \\$dispMessage of method PhpMyAdmin\\\\Sql\\:\\:executeQueryAndSendQueryResponse\\(\\) expects PhpMyAdmin\\\\Message\\|string\\|null, mixed given\\.$#" + message: '#^Parameter \#10 \$dispMessage of method PhpMyAdmin\\Sql\:\:executeQueryAndSendQueryResponse\(\) expects PhpMyAdmin\\Message\|string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Sql/SqlController.php - - message: "#^Parameter \\#11 \\$sqlQuery of method PhpMyAdmin\\\\Sql\\:\\:executeQueryAndSendQueryResponse\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#11 \$sqlQuery of method PhpMyAdmin\\Sql\:\:executeQueryAndSendQueryResponse\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Sql/SqlController.php - - message: "#^Parameter \\#12 \\$completeQuery of method PhpMyAdmin\\\\Sql\\:\\:executeQueryAndSendQueryResponse\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#12 \$completeQuery of method PhpMyAdmin\\Sql\:\:executeQueryAndSendQueryResponse\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Sql/SqlController.php - - message: "#^Parameter \\#2 \\$signature of static method PhpMyAdmin\\\\Core\\:\\:checkSqlQuerySignature\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$signature of static method PhpMyAdmin\\Core\:\:checkSqlQuerySignature\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Sql/SqlController.php - - message: "#^Parameter \\#4 \\$backUrl of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:mysqlDie\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#4 \$backUrl of static method PhpMyAdmin\\Html\\Generator\:\:mysqlDie\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Sql/SqlController.php - - message: "#^Parameter \\#5 \\$sqlQueryForBookmark of method PhpMyAdmin\\\\Sql\\:\\:executeQueryAndSendQueryResponse\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#5 \$sqlQueryForBookmark of method PhpMyAdmin\\Sql\:\:executeQueryAndSendQueryResponse\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Sql/SqlController.php - - message: "#^Parameter \\#6 \\$messageToShow of method PhpMyAdmin\\\\Sql\\:\\:executeQueryAndSendQueryResponse\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#6 \$messageToShow of method PhpMyAdmin\\Sql\:\:executeQueryAndSendQueryResponse\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Sql/SqlController.php - - message: "#^Parameter \\#9 \\$dispQuery of method PhpMyAdmin\\\\Sql\\:\\:executeQueryAndSendQueryResponse\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#9 \$dispQuery of method PhpMyAdmin\\Sql\:\:executeQueryAndSendQueryResponse\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Sql/SqlController.php - - message: "#^Cannot access offset \\(int\\|string\\) on mixed\\.$#" + message: '#^Cannot access offset \(int\|string\) on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 5 path: src/Controllers/Table/AddFieldController.php - - message: "#^Parameter \\#1 \\$string of function strlen expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function strlen expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/AddFieldController.php - - message: "#^Parameter \\#2 \\$sqlQuery of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getMessage\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \$sqlQuery of static method PhpMyAdmin\\Html\\Generator\:\:getMessage\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/AddFieldController.php - - message: "#^Parameter \\#3 \\$errorUrl of method PhpMyAdmin\\\\CreateAddField\\:\\:tryColumnCreationQuery\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$errorUrl of method PhpMyAdmin\\CreateAddField\:\:tryColumnCreationQuery\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/AddFieldController.php - - message: "#^Parameter \\#3 \\$key of method PhpMyAdmin\\\\Transformations\\:\\:setMime\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$key of method PhpMyAdmin\\Transformations\:\:setMime\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/AddFieldController.php - - message: "#^Parameter \\#4 \\$backUrl of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:mysqlDie\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#4 \$backUrl of static method PhpMyAdmin\\Html\\Generator\:\:mysqlDie\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/AddFieldController.php - - message: "#^Parameter \\#4 \\$mimetype of method PhpMyAdmin\\\\Transformations\\:\\:setMime\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#4 \$mimetype of method PhpMyAdmin\\Transformations\:\:setMime\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/AddFieldController.php - - message: "#^Parameter \\#5 \\$transformation of method PhpMyAdmin\\\\Transformations\\:\\:setMime\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#5 \$transformation of method PhpMyAdmin\\Transformations\:\:setMime\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/AddFieldController.php - - message: "#^Parameter \\#6 \\$transformationOpts of method PhpMyAdmin\\\\Transformations\\:\\:setMime\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#6 \$transformationOpts of method PhpMyAdmin\\Transformations\:\:setMime\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/AddFieldController.php - - message: "#^Parameter \\#7 \\$inputTransform of method PhpMyAdmin\\\\Transformations\\:\\:setMime\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#7 \$inputTransform of method PhpMyAdmin\\Transformations\:\:setMime\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/AddFieldController.php - - message: "#^Parameter \\#8 \\$inputTransformOpts of method PhpMyAdmin\\\\Transformations\\:\\:setMime\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#8 \$inputTransformOpts of method PhpMyAdmin\\Transformations\:\:setMime\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/AddFieldController.php - - message: "#^Cannot access offset \\(int\\|string\\) on mixed\\.$#" + message: '#^Cannot access offset \(int\|string\) on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Controllers/Table/ChangeController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 2 path: src/Controllers/Table/ChangeController.php - - message: "#^Parameter \\#1 \\$files of method PhpMyAdmin\\\\ResponseRenderer\\:\\:addScriptFiles\\(\\) expects array\\, mixed given\\.$#" + message: '#^Parameter \#1 \$files of method PhpMyAdmin\\ResponseRenderer\:\:addScriptFiles\(\) expects list\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ChangeController.php - - message: "#^Parameter \\#1 \\$message of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getMessage\\(\\) expects PhpMyAdmin\\\\Message\\|string, mixed given\\.$#" + message: '#^Parameter \#1 \$message of static method PhpMyAdmin\\Html\\Generator\:\:getMessage\(\) expects PhpMyAdmin\\Message\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ChangeController.php - - message: "#^Parameter \\#1 \\$rowId of method PhpMyAdmin\\\\InsertEdit\\:\\:getHtmlForIgnoreOption\\(\\) expects int, \\(int\\<1, max\\>\\|string\\) given\\.$#" + message: '#^Parameter \#1 \$rowId of method PhpMyAdmin\\InsertEdit\:\:getHtmlForIgnoreOption\(\) expects int, \(int\<1, max\>\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ChangeController.php - - message: "#^Parameter \\#1 \\$sqlQuery of static method PhpMyAdmin\\\\Core\\:\\:checkSqlQuerySignature\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$sqlQuery of static method PhpMyAdmin\\Core\:\:checkSqlQuerySignature\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ChangeController.php - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Table/ChangeController.php - - message: "#^Parameter \\#1 \\$whereClause of method PhpMyAdmin\\\\InsertEdit\\:\\:determineInsertOrEdit\\(\\) expects array\\\\|string\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$whereClause of method PhpMyAdmin\\InsertEdit\:\:determineInsertOrEdit\(\) expects array\\|string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ChangeController.php - - message: "#^Parameter \\#1 \\$whereClause of static method PhpMyAdmin\\\\InsertEdit\\:\\:isWhereClauseNumeric\\(\\) expects array\\\\|string\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$whereClause of static method PhpMyAdmin\\InsertEdit\:\:isWhereClauseNumeric\(\) expects array\\|string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ChangeController.php - - message: "#^Parameter \\#11 \\$rowId of method PhpMyAdmin\\\\InsertEdit\\:\\:getHtmlForInsertEditRow\\(\\) expects int, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#11 \$rowId of method PhpMyAdmin\\InsertEdit\:\:getHtmlForInsertEditRow\(\) expects int, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ChangeController.php - - message: "#^Parameter \\#12 \\$repopulate of method PhpMyAdmin\\\\InsertEdit\\:\\:getHtmlForInsertEditRow\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#12 \$repopulate of method PhpMyAdmin\\InsertEdit\:\:getHtmlForInsertEditRow\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ChangeController.php - - message: "#^Parameter \\#2 \\$isUpload of method PhpMyAdmin\\\\InsertEdit\\:\\:getHtmlForInsertEditFormHeader\\(\\) expects bool, mixed given\\.$#" + message: '#^Parameter \#2 \$isUpload of method PhpMyAdmin\\InsertEdit\:\:getHtmlForInsertEditFormHeader\(\) expects bool, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ChangeController.php - - message: "#^Parameter \\#2 \\$signature of static method PhpMyAdmin\\\\Core\\:\\:checkSqlQuerySignature\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$signature of static method PhpMyAdmin\\Core\:\:checkSqlQuerySignature\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ChangeController.php - - message: "#^Parameter \\#4 \\$currentResult of method PhpMyAdmin\\\\InsertEdit\\:\\:getHtmlForInsertEditRow\\(\\) expects PhpMyAdmin\\\\Dbal\\\\ResultInterface, array\\\\|PhpMyAdmin\\\\Dbal\\\\ResultInterface given\\.$#" + message: '#^Parameter \#4 \$currentResult of method PhpMyAdmin\\InsertEdit\:\:getHtmlForInsertEditRow\(\) expects PhpMyAdmin\\Dbal\\ResultInterface, array\\|PhpMyAdmin\\Dbal\\ResultInterface given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ChangeController.php - - message: "#^Parameter \\#4 \\$errorUrl of method PhpMyAdmin\\\\InsertEdit\\:\\:getContinueInsertionForm\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#4 \$errorUrl of method PhpMyAdmin\\InsertEdit\:\:getContinueInsertionForm\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ChangeController.php - - message: "#^Parameter \\#7 \\$isUpload of method PhpMyAdmin\\\\InsertEdit\\:\\:getHtmlForInsertEditRow\\(\\) expects bool, mixed given\\.$#" + message: '#^Parameter \#7 \$isUpload of method PhpMyAdmin\\InsertEdit\:\:getHtmlForInsertEditRow\(\) expects bool, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ChangeController.php - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" + message: '#^Short ternary operator is not allowed\. Use null coalesce operator if applicable or consider using long ternary\.$#' + identifier: ternary.shortNotAllowed count: 1 path: src/Controllers/Table/ChangeController.php - - message: "#^Binary operation \"\\+\" between int\\|string and mixed results in an error\\.$#" + message: '#^Binary operation "\+" between int\|string and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Controllers/Table/ChartController.php - - message: "#^Binary operation \"\\-\" between int\\|string and mixed results in an error\\.$#" + message: '#^Binary operation "\-" between int\|string and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Controllers/Table/ChartController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: src/Controllers/Table/ChartController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Controllers/Table/ChartController.php - - message: "#^Parameter \\#1 \\$list of class PhpMyAdmin\\\\SqlParser\\\\Parser constructor expects PhpMyAdmin\\\\SqlParser\\\\TokensList\\|PhpMyAdmin\\\\SqlParser\\\\UtfString\\|string\\|null, mixed given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 1 path: src/Controllers/Table/ChartController.php - - message: "#^Parameter \\#1 \\$query of method PhpMyAdmin\\\\DatabaseInterface\\:\\:tryQuery\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$list of class PhpMyAdmin\\SqlParser\\Parser constructor expects PhpMyAdmin\\SqlParser\\TokensList\|PhpMyAdmin\\SqlParser\\UtfString\|string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ChartController.php - - message: "#^Parameter \\#1 \\$rowCount of class PhpMyAdmin\\\\SqlParser\\\\Components\\\\Limit constructor expects int\\|string, mixed given\\.$#" + message: '#^Parameter \#1 \$query of method PhpMyAdmin\\DatabaseInterface\:\:tryQuery\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Controllers/Table/ChartController.php + + - + message: '#^Parameter \#1 \$rowCount of class PhpMyAdmin\\SqlParser\\Components\\Limit constructor expects int\|string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Table/ChartController.php - - message: "#^Parameter \\#1 \\$sqlQuery of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getStartAndNumberOfRowsFieldsetData\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$sqlQuery of static method PhpMyAdmin\\Html\\Generator\:\:getStartAndNumberOfRowsFieldsetData\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ChartController.php - - message: "#^Parameter \\#2 \\$offset of class PhpMyAdmin\\\\SqlParser\\\\Components\\\\Limit constructor expects int\\|string, mixed given\\.$#" + message: '#^Parameter \#2 \$offset of class PhpMyAdmin\\SqlParser\\Components\\Limit constructor expects int\|string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Table/ChartController.php - - message: "#^Cannot access offset \\(int\\|string\\) on mixed\\.$#" + message: '#^Cannot access offset \(int\|string\) on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 5 path: src/Controllers/Table/CreateController.php - - message: "#^Parameter \\#1 \\$string of function strlen expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function strlen expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/CreateController.php - - message: "#^Parameter \\#3 \\$key of method PhpMyAdmin\\\\Transformations\\:\\:setMime\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$key of method PhpMyAdmin\\Transformations\:\:setMime\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/CreateController.php - - message: "#^Parameter \\#4 \\$mimetype of method PhpMyAdmin\\\\Transformations\\:\\:setMime\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#4 \$mimetype of method PhpMyAdmin\\Transformations\:\:setMime\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/CreateController.php - - message: "#^Parameter \\#5 \\$transformation of method PhpMyAdmin\\\\Transformations\\:\\:setMime\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#5 \$transformation of method PhpMyAdmin\\Transformations\:\:setMime\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/CreateController.php - - message: "#^Parameter \\#6 \\$transformationOpts of method PhpMyAdmin\\\\Transformations\\:\\:setMime\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#6 \$transformationOpts of method PhpMyAdmin\\Transformations\:\:setMime\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/CreateController.php - - message: "#^Parameter \\#7 \\$inputTransform of method PhpMyAdmin\\\\Transformations\\:\\:setMime\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#7 \$inputTransform of method PhpMyAdmin\\Transformations\:\:setMime\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/CreateController.php - - message: "#^Parameter \\#8 \\$inputTransformOpts of method PhpMyAdmin\\\\Transformations\\:\\:setMime\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#8 \$inputTransformOpts of method PhpMyAdmin\\Transformations\:\:setMime\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/CreateController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Table/DeleteConfirmController.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Controllers/Table/DeleteRowsController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Table/DeleteRowsController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Controllers/Table/DeleteRowsController.php - - message: "#^Parameter \\#10 \\$dispMessage of method PhpMyAdmin\\\\Sql\\:\\:executeQueryAndSendQueryResponse\\(\\) expects PhpMyAdmin\\\\Message\\|string\\|null, mixed given\\.$#" + message: '#^Parameter \#10 \$dispMessage of method PhpMyAdmin\\Sql\:\:executeQueryAndSendQueryResponse\(\) expects PhpMyAdmin\\Message\|string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/DeleteRowsController.php - - message: "#^Parameter \\#11 \\$sqlQuery of method PhpMyAdmin\\\\Sql\\:\\:executeQueryAndSendQueryResponse\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#11 \$sqlQuery of method PhpMyAdmin\\Sql\:\:executeQueryAndSendQueryResponse\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/DeleteRowsController.php - - message: "#^Parameter \\#3 \\$pos of method PhpMyAdmin\\\\Sql\\:\\:calculatePosForLastPage\\(\\) expects int\\|null, mixed given\\.$#" + message: '#^Parameter \#3 \$pos of method PhpMyAdmin\\Sql\:\:calculatePosForLastPage\(\) expects int\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/DeleteRowsController.php - - message: "#^Parameter \\#3 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + message: '#^Parameter \#3 \.\.\.\$values of function sprintf expects bool\|float\|int\|string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/DeleteRowsController.php - - message: "#^Parameter \\#9 \\$dispQuery of method PhpMyAdmin\\\\Sql\\:\\:executeQueryAndSendQueryResponse\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#9 \$dispQuery of method PhpMyAdmin\\Sql\:\:executeQueryAndSendQueryResponse\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/DeleteRowsController.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Controllers/Table/DropColumnController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Controllers/Table/DropColumnController.php - - message: "#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Controllers/Table/DropColumnController.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/DropColumnController.php - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/DropColumnController.php - - message: "#^Parameter \\#3 \\$column of method PhpMyAdmin\\\\ConfigStorage\\\\RelationCleanup\\:\\:column\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$column of method PhpMyAdmin\\ConfigStorage\\RelationCleanup\:\:column\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/DropColumnController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Table/ExportController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 3 path: src/Controllers/Table/ExportController.php - - message: "#^Parameter \\#1 \\$list of class PhpMyAdmin\\\\SqlParser\\\\Parser constructor expects PhpMyAdmin\\\\SqlParser\\\\TokensList\\|PhpMyAdmin\\\\SqlParser\\\\UtfString\\|string\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$list of class PhpMyAdmin\\SqlParser\\Parser constructor expects PhpMyAdmin\\SqlParser\\TokensList\|PhpMyAdmin\\SqlParser\\UtfString\|string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ExportController.php - - message: "#^Parameter \\#2 \\$list of static method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Query\\:\\:replaceClauses\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\TokensList, PhpMyAdmin\\\\SqlParser\\\\TokensList\\|null given\\.$#" + message: '#^Parameter \#2 \$list of static method PhpMyAdmin\\SqlParser\\Utils\\Query\:\:replaceClauses\(\) expects PhpMyAdmin\\SqlParser\\TokensList, PhpMyAdmin\\SqlParser\\TokensList\|null given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ExportController.php - - message: "#^Parameter \\#4 \\$sqlQuery of method PhpMyAdmin\\\\Export\\\\Options\\:\\:getOptions\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#4 \$sqlQuery of method PhpMyAdmin\\Export\\Options\:\:getOptions\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ExportController.php - - message: "#^Parameter \\#5 \\$numTables of method PhpMyAdmin\\\\Export\\\\Options\\:\\:getOptions\\(\\) expects int\\|string, mixed given\\.$#" + message: '#^Parameter \#5 \$numTables of method PhpMyAdmin\\Export\\Options\:\:getOptions\(\) expects int\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ExportController.php - - message: "#^Parameter \\#6 \\$unlimNumRows of method PhpMyAdmin\\\\Export\\\\Options\\:\\:getOptions\\(\\) expects int\\|string, mixed given\\.$#" + message: '#^Parameter \#6 \$unlimNumRows of method PhpMyAdmin\\Export\\Options\:\:getOptions\(\) expects int\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ExportController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: src/Controllers/Table/FindReplaceController.php - - message: "#^Cannot access offset 0 on mixed\\.$#" + message: '#^Cannot access offset 0 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Controllers/Table/FindReplaceController.php - - message: "#^Cannot access offset 1 on mixed\\.$#" + message: '#^Cannot access offset 1 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Controllers/Table/FindReplaceController.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, mixed given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 2 + path: src/Controllers/Table/FindReplaceController.php + + - + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#' + identifier: argument.type count: 16 path: src/Controllers/Table/FindReplaceController.php - - message: "#^Parameter \\#1 \\$str of method PhpMyAdmin\\\\DatabaseInterface\\:\\:quoteString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$str of method PhpMyAdmin\\DatabaseInterface\:\:quoteString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Table/FindReplaceController.php - - message: "#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, mixed given\\.$#" + message: '#^Parameter \#3 \$subject of function preg_replace expects array\\|string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Table/FindReplaceController.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 3 path: src/Controllers/Table/GetFieldController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 3 path: src/Controllers/Table/GisVisualizationController.php - - message: "#^Cannot access offset 'max_rows' on mixed\\.$#" + message: '#^Cannot access offset ''max_rows'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Controllers/Table/GisVisualizationController.php - - message: "#^Cannot access offset 'pos' on mixed\\.$#" + message: '#^Cannot access offset ''pos'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Controllers/Table/GisVisualizationController.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 3 path: src/Controllers/Table/GisVisualizationController.php - - message: "#^Parameter \\#2 \\$format of method PhpMyAdmin\\\\Gis\\\\GisVisualization\\:\\:toFile\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$format of method PhpMyAdmin\\Gis\\GisVisualization\:\:toFile\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/GisVisualizationController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Table/ImportController.php - - message: "#^Cannot access offset 'handler' on mixed\\.$#" + message: '#^Cannot access offset ''handler'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Controllers/Table/ImportController.php - - message: "#^Cannot call static method getIdKey\\(\\) on mixed\\.$#" + message: '#^Cannot call static method getIdKey\(\) on mixed\.$#' + identifier: staticMethod.nonObject count: 1 path: src/Controllers/Table/ImportController.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 1 path: src/Controllers/Table/ImportController.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 1 path: src/Controllers/Table/ImportController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Table/IndexRenameController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\+\=" between int and mixed results in an error\.$#' + identifier: assignOp.invalid + count: 1 + path: src/Controllers/Table/IndexesController.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: src/Controllers/Table/IndexesController.php - - message: "#^Cannot access offset 'Index_choice' on mixed\\.$#" + message: '#^Cannot access offset ''Index_choice'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Controllers/Table/IndexesController.php - - message: "#^Cannot access offset 'names' on mixed\\.$#" + message: '#^Cannot access offset ''names'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Controllers/Table/IndexesController.php - - message: "#^Parameter \\#1 \\$index of method PhpMyAdmin\\\\Table\\\\Table\\:\\:getIndex\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$index of method PhpMyAdmin\\Table\\Table\:\:getIndex\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/IndexesController.php - - message: "#^Parameter \\#1 \\$json of function json_decode expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$json of function json_decode expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/IndexesController.php - - message: "#^Parameter \\#1 \\$oldIndexName of method PhpMyAdmin\\\\Table\\\\Indexes\\:\\:getSqlQueryForIndexCreateOrEdit\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$oldIndexName of method PhpMyAdmin\\Table\\Indexes\:\:getSqlQueryForIndexCreateOrEdit\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/IndexesController.php - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Table/IndexesController.php - - message: "#^Only booleans are allowed in &&, mixed given on the left side\\.$#" + message: '#^Only booleans are allowed in &&, mixed given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 1 path: src/Controllers/Table/Maintenance/AnalyzeController.php - - message: "#^Only booleans are allowed in &&, mixed given on the left side\\.$#" + message: '#^Only booleans are allowed in &&, mixed given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 1 path: src/Controllers/Table/Maintenance/CheckController.php - - message: "#^Only booleans are allowed in &&, mixed given on the left side\\.$#" + message: '#^Only booleans are allowed in &&, mixed given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 1 path: src/Controllers/Table/Maintenance/ChecksumController.php - - message: "#^Only booleans are allowed in &&, mixed given on the left side\\.$#" + message: '#^Only booleans are allowed in &&, mixed given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 1 path: src/Controllers/Table/Maintenance/OptimizeController.php - - message: "#^Only booleans are allowed in &&, mixed given on the left side\\.$#" + message: '#^Only booleans are allowed in &&, mixed given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 1 path: src/Controllers/Table/Maintenance/RepairController.php - - message: "#^Parameter \\#2 \\$sqlQuery of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getMessage\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \$sqlQuery of static method PhpMyAdmin\\Html\\Generator\:\:getMessage\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/Partition/AnalyzeController.php - - message: "#^Parameter \\#2 \\$sqlQuery of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getMessage\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \$sqlQuery of static method PhpMyAdmin\\Html\\Generator\:\:getMessage\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/Partition/CheckController.php - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" + message: '#^Only booleans are allowed in an if condition, mixed given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Controllers/Table/Partition/DropController.php - - message: "#^Parameter \\#2 \\$sqlQuery of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getMessage\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \$sqlQuery of static method PhpMyAdmin\\Html\\Generator\:\:getMessage\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Table/Partition/DropController.php - - message: "#^Parameter \\#2 \\$sqlQuery of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getMessage\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \$sqlQuery of static method PhpMyAdmin\\Html\\Generator\:\:getMessage\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/Partition/OptimizeController.php - - message: "#^Parameter \\#2 \\$sqlQuery of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getMessage\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \$sqlQuery of static method PhpMyAdmin\\Html\\Generator\:\:getMessage\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/Partition/RepairController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Table/PrivilegesController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 3 path: src/Controllers/Table/RelationController.php - - message: "#^Parameter \\#1 \\$dbName of method PhpMyAdmin\\\\DatabaseInterface\\:\\:getTable\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$dbName of method PhpMyAdmin\\DatabaseInterface\:\:getTable\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/RelationController.php - - message: "#^Parameter \\#1 \\$destinationForeignDb of method PhpMyAdmin\\\\Table\\\\Table\\:\\:updateForeignKeys\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#1 \$destinationForeignDb of method PhpMyAdmin\\Table\\Table\:\:updateForeignKeys\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/RelationController.php - - message: "#^Parameter \\#1 \\$displayField of method PhpMyAdmin\\\\Table\\\\Table\\:\\:updateDisplayField\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$displayField of method PhpMyAdmin\\Table\\Table\:\:updateDisplayField\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/RelationController.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Table/RelationController.php - - message: "#^Parameter \\#1 \\$multiEditColumnsName of method PhpMyAdmin\\\\Table\\\\Table\\:\\:updateInternalRelations\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#1 \$multiEditColumnsName of method PhpMyAdmin\\Table\\Table\:\:updateInternalRelations\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/RelationController.php - - message: "#^Parameter \\#2 \\$callback of function usort expects callable\\(string\\|null, string\\|null\\)\\: int, Closure\\(string, string\\)\\: int\\<\\-1, 1\\> given\\.$#" + message: '#^Parameter \#2 \$callback of function usort expects callable\(string\|null, string\|null\)\: int, Closure\(string, string\)\: int\<\-1, 1\> given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/RelationController.php - - message: "#^Parameter \\#2 \\$destinationDb of method PhpMyAdmin\\\\Table\\\\Table\\:\\:updateInternalRelations\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#2 \$destinationDb of method PhpMyAdmin\\Table\\Table\:\:updateInternalRelations\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/RelationController.php - - message: "#^Parameter \\#2 \\$multiEditColumnsName of method PhpMyAdmin\\\\Table\\\\Table\\:\\:updateForeignKeys\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#2 \$multiEditColumnsName of method PhpMyAdmin\\Table\\Table\:\:updateForeignKeys\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/RelationController.php - - message: "#^Parameter \\#2 \\$table of static method PhpMyAdmin\\\\Index\\:\\:getPrimary\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$table of static method PhpMyAdmin\\Index\:\:getPrimary\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/RelationController.php - - message: "#^Parameter \\#2 \\$tableName of method PhpMyAdmin\\\\DatabaseInterface\\:\\:getTable\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$tableName of method PhpMyAdmin\\DatabaseInterface\:\:getTable\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/RelationController.php - - message: "#^Parameter \\#3 \\$destinationForeignTable of method PhpMyAdmin\\\\Table\\\\Table\\:\\:updateForeignKeys\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#3 \$destinationForeignTable of method PhpMyAdmin\\Table\\Table\:\:updateForeignKeys\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/RelationController.php - - message: "#^Parameter \\#3 \\$destinationTable of method PhpMyAdmin\\\\Table\\\\Table\\:\\:updateInternalRelations\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#3 \$destinationTable of method PhpMyAdmin\\Table\\Table\:\:updateInternalRelations\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/RelationController.php - - message: "#^Parameter \\#3 \\$schema of static method PhpMyAdmin\\\\Index\\:\\:getPrimary\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$schema of static method PhpMyAdmin\\Index\:\:getPrimary\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/RelationController.php - - message: "#^Parameter \\#4 \\$destinationColumn of method PhpMyAdmin\\\\Table\\\\Table\\:\\:updateInternalRelations\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#4 \$destinationColumn of method PhpMyAdmin\\Table\\Table\:\:updateInternalRelations\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/RelationController.php - - message: "#^Parameter \\#4 \\$destinationForeignColumn of method PhpMyAdmin\\\\Table\\\\Table\\:\\:updateForeignKeys\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#4 \$destinationForeignColumn of method PhpMyAdmin\\Table\\Table\:\:updateForeignKeys\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/RelationController.php - - message: "#^Argument of an invalid type array\\|string supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type array\\|string supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Controllers/Table/ReplaceController.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Controllers/Table/ReplaceController.php - - message: "#^Cannot access an offset on mixed\\.$#" + message: '#^Binary operation "\." between ''\=\\'''' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Controllers/Table/ReplaceController.php + + - + message: '#^Cannot access an offset on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Controllers/Table/ReplaceController.php - - message: "#^Cannot access offset 'multi_edit' on mixed\\.$#" + message: '#^Cannot access offset ''multi_edit'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 11 path: src/Controllers/Table/ReplaceController.php - - message: "#^Cannot access offset 'row_count' on mixed\\.$#" - count: 1 - path: src/Controllers/Table/ReplaceController.php - - - - message: "#^Cannot access offset 'sql_query' on mixed\\.$#" - count: 1 - path: src/Controllers/Table/ReplaceController.php - - - - message: "#^Cannot access offset \\(int\\|string\\) on mixed\\.$#" + message: '#^Cannot access offset \(int\|string\) on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 11 path: src/Controllers/Table/ReplaceController.php - - message: "#^Cannot access offset 0 on mixed\\.$#" + message: '#^Cannot access offset 0 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Controllers/Table/ReplaceController.php - - message: "#^Cannot access offset int\\|string on mixed\\.$#" + message: '#^Cannot access offset int\|string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 9 path: src/Controllers/Table/ReplaceController.php - - message: "#^Cannot call method addMessages\\(\\) on mixed\\.$#" + message: '#^Cannot call method addMessages\(\) on mixed\.$#' + identifier: method.nonObject count: 1 path: src/Controllers/Table/ReplaceController.php - - message: "#^Cannot call method addMessagesString\\(\\) on mixed\\.$#" + message: '#^Cannot call method addMessagesString\(\) on mixed\.$#' + identifier: method.nonObject count: 3 path: src/Controllers/Table/ReplaceController.php - - message: "#^Cannot call method isSuccess\\(\\) on mixed\\.$#" + message: '#^Cannot call method isSuccess\(\) on mixed\.$#' + identifier: method.nonObject count: 1 path: src/Controllers/Table/ReplaceController.php - - message: "#^Cannot call method setType\\(\\) on mixed\\.$#" + message: '#^Cannot call method setType\(\) on mixed\.$#' + identifier: method.nonObject count: 3 path: src/Controllers/Table/ReplaceController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 9 path: src/Controllers/Table/ReplaceController.php - - message: "#^Implicit array creation is not allowed \\- variable \\$extraData might not exist\\.$#" + message: '#^Implicit array creation is not allowed \- variable \$extraData might not exist\.$#' + identifier: variable.implicitArray count: 1 path: src/Controllers/Table/ReplaceController.php - - message: "#^Method PhpMyAdmin\\\\Controllers\\\\Table\\\\ReplaceController\\:\\:getParamsForUpdateOrInsert\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 1 path: src/Controllers/Table/ReplaceController.php - - message: "#^Only booleans are allowed in a ternary operator condition, mixed given\\.$#" + message: '#^Method PhpMyAdmin\\Controllers\\Table\\ReplaceController\:\:getParamsForUpdateOrInsert\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Controllers/Table/ReplaceController.php - - message: "#^PHPDoc tag @var for variable \\$relationFields has no value type specified in iterable type array\\.$#" + message: '#^Only booleans are allowed in a ternary operator condition, mixed given\.$#' + identifier: ternary.condNotBoolean count: 1 path: src/Controllers/Table/ReplaceController.php - - message: "#^Parameter \\#1 \\$array of function array_keys expects array, mixed given\\.$#" + message: '#^PHPDoc tag @var for variable \$relationFields has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Controllers/Table/ReplaceController.php - - message: "#^Parameter \\#1 \\$array of function array_values expects array\\, mixed given\\.$#" + message: '#^Parameter \#1 \$array of function array_keys expects array, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ReplaceController.php - - message: "#^Parameter \\#1 \\$columnName of class PhpMyAdmin\\\\EditField constructor expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$array of function array_values expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ReplaceController.php - - message: "#^Parameter \\#1 \\$json of method PhpMyAdmin\\\\ResponseRenderer\\:\\:addJSON\\(\\) expects array\\|int\\|string, mixed given\\.$#" + message: '#^Parameter \#1 \$columnName of class PhpMyAdmin\\EditField constructor expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ReplaceController.php - - message: "#^Parameter \\#1 \\$message of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getMessage\\(\\) expects PhpMyAdmin\\\\Message\\|string, mixed given\\.$#" + message: '#^Parameter \#1 \$message of static method PhpMyAdmin\\Html\\Generator\:\:getMessage\(\) expects PhpMyAdmin\\Message\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ReplaceController.php - - message: "#^Parameter \\#1 \\$query of method PhpMyAdmin\\\\InsertEdit\\:\\:executeSqlQuery\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#1 \$query of method PhpMyAdmin\\InsertEdit\:\:executeSqlQuery\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ReplaceController.php - - message: "#^Parameter \\#1 \\$queryData of static method PhpMyAdmin\\\\Core\\:\\:previewSQL\\(\\) expects array\\|string, mixed given\\.$#" + message: '#^Parameter \#1 \$queryData of static method PhpMyAdmin\\Core\:\:previewSQL\(\) expects array\\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ReplaceController.php - - message: "#^Parameter \\#1 \\$state of method PhpMyAdmin\\\\ResponseRenderer\\:\\:setRequestStatus\\(\\) expects bool, mixed given\\.$#" + message: '#^Parameter \#1 \$state of method PhpMyAdmin\\ResponseRenderer\:\:setRequestStatus\(\) expects bool, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ReplaceController.php - - message: "#^Parameter \\#2 \\$relationField of method PhpMyAdmin\\\\InsertEdit\\:\\:getLinkForRelationalDisplayField\\(\\) expects string, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#2 \$relationField of method PhpMyAdmin\\InsertEdit\:\:getLinkForRelationalDisplayField\(\) expects string, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ReplaceController.php - - message: "#^Parameter \\#2 \\$sqlQuery of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getMessage\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \$sqlQuery of static method PhpMyAdmin\\Html\\Generator\:\:getMessage\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ReplaceController.php - - message: "#^Parameter \\#3 \\$columnName of method PhpMyAdmin\\\\InsertEdit\\:\\:verifyWhetherValueCanBeTruncatedAndAppendExtraData\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$columnName of method PhpMyAdmin\\InsertEdit\:\:verifyWhetherValueCanBeTruncatedAndAppendExtraData\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ReplaceController.php - - message: "#^Parameter \\#3 \\$relationField of method PhpMyAdmin\\\\InsertEdit\\:\\:getDisplayValueForForeignTableColumn\\(\\) expects string, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#3 \$relationField of method PhpMyAdmin\\InsertEdit\:\:getDisplayValueForForeignTableColumn\(\) expects string, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ReplaceController.php - - message: "#^Parameter \\#3 \\$type of class PhpMyAdmin\\\\EditField constructor expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$type of class PhpMyAdmin\\EditField constructor expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ReplaceController.php - - message: "#^Parameter \\#3 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + message: '#^Parameter \#3 \.\.\.\$values of function sprintf expects bool\|float\|int\|string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ReplaceController.php - - message: "#^Parameter \\#5 \\$relationFieldValue of method PhpMyAdmin\\\\InsertEdit\\:\\:getLinkForRelationalDisplayField\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#5 \$relationFieldValue of method PhpMyAdmin\\InsertEdit\:\:getLinkForRelationalDisplayField\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ReplaceController.php - - message: "#^Parameter \\#7 \\$function of class PhpMyAdmin\\\\EditField constructor expects string, mixed given\\.$#" + message: '#^Parameter \#7 \$function of class PhpMyAdmin\\EditField constructor expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ReplaceController.php - - message: "#^Parameter \\#8 \\$salt of class PhpMyAdmin\\\\EditField constructor expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#8 \$salt of class PhpMyAdmin\\EditField constructor expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ReplaceController.php - - message: "#^Parameter \\#9 \\$previousValue of class PhpMyAdmin\\\\EditField constructor expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#9 \$previousValue of class PhpMyAdmin\\EditField constructor expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ReplaceController.php - - message: "#^Static property PhpMyAdmin\\\\UrlParams\\:\\:\\$params \\(array\\\\) does not accept array\\\\.$#" + message: '#^Static property PhpMyAdmin\\UrlParams\:\:\$params \(array\\) does not accept array\\.$#' + identifier: assign.propertyType count: 2 path: src/Controllers/Table/ReplaceController.php - - message: "#^Variable \\$extraData might not be defined\\.$#" + message: '#^Variable \$extraData might not be defined\.$#' + identifier: variable.undefined count: 1 path: src/Controllers/Table/ReplaceController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 4 path: src/Controllers/Table/SearchController.php - - message: "#^Cannot access offset int on mixed\\.$#" + message: '#^Cannot access offset int on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Controllers/Table/SearchController.php - - message: "#^Casting to int something that's already int\\<1, max\\>\\.$#" + message: '#^Casting to int something that''s already int\<1, max\>\.$#' + identifier: cast.useless count: 1 path: src/Controllers/Table/SearchController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Controllers/Table/SearchController.php - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 2 + path: src/Controllers/Table/SearchController.php + + - + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Controllers/Table/SearchController.php - - message: "#^Parameter \\#1 \\$column of method PhpMyAdmin\\\\Controllers\\\\Table\\\\SearchController\\:\\:getColumnMinMax\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$column of method PhpMyAdmin\\Controllers\\Table\\SearchController\:\:getColumnMinMax\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/SearchController.php - - message: "#^Parameter \\#1 \\$string of function strtoupper expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$string of function strtoupper expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/SearchController.php - - message: "#^Parameter \\#1 \\$type of method PhpMyAdmin\\\\Types\\:\\:getIntegerRange\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$type of method PhpMyAdmin\\Types\:\:getIntegerRange\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/SearchController.php - - message: "#^Parameter \\#1 \\$type of method PhpMyAdmin\\\\Types\\:\\:getTypeOperatorsHtml\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$type of method PhpMyAdmin\\Types\:\:getTypeOperatorsHtml\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/SearchController.php - - message: "#^Parameter \\#2 \\$foreignField of method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:foreignDropdown\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$foreignField of method PhpMyAdmin\\ConfigStorage\\Relation\:\:foreignDropdown\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/SearchController.php - - message: "#^Parameter \\#3 \\$selectedOperator of method PhpMyAdmin\\\\Types\\:\\:getTypeOperatorsHtml\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#3 \$selectedOperator of method PhpMyAdmin\\Types\:\:getTypeOperatorsHtml\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/SearchController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Table/SqlController.php - - message: "#^Parameter \\#3 \\$query of method PhpMyAdmin\\\\SqlQueryForm\\:\\:getHtml\\(\\) expects bool\\|string, mixed given\\.$#" + message: '#^Parameter \#3 \$query of method PhpMyAdmin\\SqlQueryForm\:\:getHtml\(\) expects bool\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/SqlController.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Controllers/Table/Structure/BrowseController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Controllers/Table/Structure/BrowseController.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/Structure/BrowseController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Controllers/Table/Structure/CentralColumnsAddController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Controllers/Table/Structure/CentralColumnsRemoveController.php - - message: "#^Parameter \\#1 \\$selected of method PhpMyAdmin\\\\Controllers\\\\Table\\\\Structure\\\\ChangeController\\:\\:displayHtmlForColumnChange\\(\\) expects array\\, array given\\.$#" + message: '#^Parameter \#1 \$selected of method PhpMyAdmin\\Controllers\\Table\\Structure\\ChangeController\:\:displayHtmlForColumnChange\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/Structure/ChangeController.php - - message: "#^Parameter \\#1 \\$selected of method PhpMyAdmin\\\\Controllers\\\\Table\\\\Structure\\\\ChangeController\\:\\:displayHtmlForColumnChange\\(\\) expects array\\, array\\ given\\.$#" + message: '#^Parameter \#1 \$selected of method PhpMyAdmin\\Controllers\\Table\\Structure\\ChangeController\:\:displayHtmlForColumnChange\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/Structure/ChangeController.php - - message: "#^Cannot call method get\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 1 + path: src/Controllers/Table/Structure/MoveColumnsController.php + + - + message: '#^PHPDoc tag @var with type int is not subtype of type int\<0, max\>\|false\.$#' + identifier: varTag.type + count: 1 + path: src/Controllers/Table/Structure/MoveColumnsController.php + + - + message: '#^Cannot call method get\(\) on PhpMyAdmin\\SqlParser\\Components\\OptionsArray\|null\.$#' + identifier: method.nonObject count: 16 path: src/Controllers/Table/Structure/PartitioningController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 2 path: src/Controllers/Table/Structure/PartitioningController.php - - message: "#^Method PhpMyAdmin\\\\Controllers\\\\Table\\\\Structure\\\\PartitioningController\\:\\:extractPartitionDetails\\(\\) should return array\\\\>\\|bool\\|int\\|string\\>\\|null but returns array\\\\.$#" + message: '#^Method PhpMyAdmin\\Controllers\\Table\\Structure\\PartitioningController\:\:extractPartitionDetails\(\) should return array\\>\|bool\|int\|string\>\|null but returns array\\.$#' + identifier: return.type count: 1 path: src/Controllers/Table/Structure/PartitioningController.php - - message: "#^Offset 'partition_by' on array\\{partition_by\\: string, partition_expr\\: string, partition_count\\: mixed, subpartition_by\\: string, subpartition_expr\\: string, subpartition_count\\: mixed, can_have_subpartitions\\: bool\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset ''partition_by'' on array\{partition_by\: string, partition_expr\: string, partition_count\: mixed, subpartition_by\: string, subpartition_expr\: string, subpartition_count\: mixed, can_have_subpartitions\: bool\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: src/Controllers/Table/Structure/PartitioningController.php - - message: "#^Offset 0 does not exist on array\\\\|null\\.$#" + message: '#^Offset 0 might not exist on array\\|null\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Controllers/Table/Structure/PartitioningController.php - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\\\|null given\\.$#" + message: '#^Parameter \#1 \$value of function count expects array\|Countable, array\\|null given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Table/Structure/PartitioningController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Table/Structure/PrimaryController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Controllers/Table/Structure/PrimaryController.php - - message: "#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Controllers/Table/Structure/PrimaryController.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Controllers/Table/Structure/ReservedWordCheckController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Table/Structure/ReservedWordCheckController.php - - message: "#^Only booleans are allowed in a negated boolean, int\\|null given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, int\|null given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Controllers/Table/Structure/ReservedWordCheckController.php - - message: "#^Only booleans are allowed in an if condition, int\\|null given\\.$#" + message: '#^Only booleans are allowed in an if condition, int\|null given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Controllers/Table/Structure/ReservedWordCheckController.php - - message: "#^Parameter \\#1 \\$string of function trim expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function trim expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Table/Structure/ReservedWordCheckController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between '' AS \('' and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" + message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Cannot access offset \\(int\\|string\\) on mixed\\.$#" + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 1 + path: src/Controllers/Table/Structure/SaveController.php + + - + message: '#^Call to function in_array\(\) requires parameter \#3 to be set\.$#' + identifier: function.strict + count: 1 + path: src/Controllers/Table/Structure/SaveController.php + + - + message: '#^Cannot access offset \(int\|string\) on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 7 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Cannot access offset int on mixed\\.$#" + message: '#^Cannot access offset int on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 9 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Cannot access offset int\\<0, max\\> on mixed\\.$#" + message: '#^Cannot access offset int\<0, max\> on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 26 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 1 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 2 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, mixed given\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 2 + path: src/Controllers/Table/Structure/SaveController.php + + - + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 2 + path: src/Controllers/Table/Structure/SaveController.php + + - + message: '#^Only booleans are allowed in an if condition, mixed given\.$#' + identifier: if.condNotBoolean + count: 1 + path: src/Controllers/Table/Structure/SaveController.php + + - + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#' + identifier: argument.type count: 3 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Parameter \\#1 \\$oldcol of static method PhpMyAdmin\\\\Table\\\\Table\\:\\:generateAlter\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$oldcol of static method PhpMyAdmin\\Table\\Table\:\:generateAlter\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Parameter \\#1 \\$string of function strlen expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function strlen expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Parameter \\#10 \\$extra of static method PhpMyAdmin\\\\Table\\\\Table\\:\\:generateAlter\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#10 \$extra of static method PhpMyAdmin\\Table\\Table\:\:generateAlter\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Parameter \\#11 \\$comment of static method PhpMyAdmin\\\\Table\\\\Table\\:\\:generateAlter\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#11 \$comment of static method PhpMyAdmin\\Table\\Table\:\:generateAlter\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Parameter \\#12 \\$virtuality of static method PhpMyAdmin\\\\Table\\\\Table\\:\\:generateAlter\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#12 \$virtuality of static method PhpMyAdmin\\Table\\Table\:\:generateAlter\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Parameter \\#13 \\$expression of static method PhpMyAdmin\\\\Table\\\\Table\\:\\:generateAlter\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#13 \$expression of static method PhpMyAdmin\\Table\\Table\:\:generateAlter\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Parameter \\#14 \\$moveTo of static method PhpMyAdmin\\\\Table\\\\Table\\:\\:generateAlter\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#14 \$moveTo of static method PhpMyAdmin\\Table\\Table\:\:generateAlter\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Parameter \\#2 \\$newcol of static method PhpMyAdmin\\\\Table\\\\Table\\:\\:generateAlter\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$newcol of static method PhpMyAdmin\\Table\\Table\:\:generateAlter\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Parameter \\#3 \\$field of method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:renameField\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$field of method PhpMyAdmin\\ConfigStorage\\Relation\:\:renameField\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Parameter \\#3 \\$key of method PhpMyAdmin\\\\Transformations\\:\\:setMime\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$key of method PhpMyAdmin\\Transformations\:\:setMime\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Parameter \\#3 \\$type of static method PhpMyAdmin\\\\Table\\\\Table\\:\\:generateAlter\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$type of static method PhpMyAdmin\\Table\\Table\:\:generateAlter\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Parameter \\#3 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + message: '#^Parameter \#3 \.\.\.\$values of function sprintf expects bool\|float\|int\|string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Parameter \\#4 \\$length of static method PhpMyAdmin\\\\Table\\\\Table\\:\\:generateAlter\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#4 \$length of static method PhpMyAdmin\\Table\\Table\:\:generateAlter\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Parameter \\#4 \\$mimetype of method PhpMyAdmin\\\\Transformations\\:\\:setMime\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#4 \$mimetype of method PhpMyAdmin\\Transformations\:\:setMime\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Parameter \\#4 \\$newName of method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:renameField\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#4 \$newName of method PhpMyAdmin\\ConfigStorage\\Relation\:\:renameField\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Parameter \\#5 \\$attribute of static method PhpMyAdmin\\\\Table\\\\Table\\:\\:generateAlter\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#5 \$attribute of static method PhpMyAdmin\\Table\\Table\:\:generateAlter\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Parameter \\#5 \\$transformation of method PhpMyAdmin\\\\Transformations\\:\\:setMime\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#5 \$transformation of method PhpMyAdmin\\Transformations\:\:setMime\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Parameter \\#6 \\$collation of static method PhpMyAdmin\\\\Table\\\\Table\\:\\:generateAlter\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#6 \$collation of static method PhpMyAdmin\\Table\\Table\:\:generateAlter\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Parameter \\#6 \\$transformationOpts of method PhpMyAdmin\\\\Transformations\\:\\:setMime\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#6 \$transformationOpts of method PhpMyAdmin\\Transformations\:\:setMime\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Parameter \\#7 \\$inputTransform of method PhpMyAdmin\\\\Transformations\\:\\:setMime\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#7 \$inputTransform of method PhpMyAdmin\\Transformations\:\:setMime\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Parameter \\#7 \\$null of static method PhpMyAdmin\\\\Table\\\\Table\\:\\:generateAlter\\(\\) expects bool\\|string, mixed given\\.$#" + message: '#^Parameter \#7 \$null of static method PhpMyAdmin\\Table\\Table\:\:generateAlter\(\) expects bool\|string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Parameter \\#8 \\$defaultType of static method PhpMyAdmin\\\\Table\\\\Table\\:\\:generateAlter\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#8 \$defaultType of static method PhpMyAdmin\\Table\\Table\:\:generateAlter\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Parameter \\#8 \\$inputTransformOpts of method PhpMyAdmin\\\\Transformations\\:\\:setMime\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#8 \$inputTransformOpts of method PhpMyAdmin\\Transformations\:\:setMime\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Parameter \\#9 \\$defaultValue of static method PhpMyAdmin\\\\Table\\\\Table\\:\\:generateAlter\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#9 \$defaultValue of static method PhpMyAdmin\\Table\\Table\:\:generateAlter\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Table/Structure/SaveController.php - - message: "#^Binary operation \"\\+\" between int\\|non\\-falsy\\-string and int\\|non\\-falsy\\-string results in an error\\.$#" + message: '#^Binary operation "\+" between int\|non\-falsy\-string and int\|non\-falsy\-string results in an error\.$#' + identifier: binaryOp.invalid count: 4 path: src/Controllers/Table/StructureController.php - - message: "#^Binary operation \"\\-\" between mixed and int\\|string results in an error\\.$#" + message: '#^Binary operation "\-" between mixed and int\|string results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Controllers/Table/StructureController.php - - message: "#^Binary operation \"/\" between mixed and int\\|string\\|null results in an error\\.$#" + message: '#^Binary operation "/" between mixed and int\|string\|null results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Controllers/Table/StructureController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 3 path: src/Controllers/Table/StructureController.php - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" + message: '#^Call to function in_array\(\) requires parameter \#3 to be set\.$#' + identifier: function.strict count: 1 path: src/Controllers/Table/StructureController.php - - message: "#^Cannot use array destructuring on array\\\\|null\\.$#" + message: '#^Cannot use array destructuring on list\\|null\.$#' + identifier: offsetAccess.nonArray count: 4 path: src/Controllers/Table/StructureController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 2 path: src/Controllers/Table/StructureController.php - - message: "#^Parameter \\#1 \\$datetime of class DateTimeImmutable constructor expects string, int\\|string given\\.$#" + message: '#^Parameter \#1 \$datetime of class DateTimeImmutable constructor expects string, int\|string given\.$#' + identifier: argument.type count: 3 path: src/Controllers/Table/StructureController.php - - message: "#^Parameter \\#1 \\$value of static method PhpMyAdmin\\\\Util\\:\\:formatByteDown\\(\\) expects float\\|int\\|string\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$value of static method PhpMyAdmin\\Util\:\:formatByteDown\(\) expects float\|int\|string\|null, mixed given\.$#' + identifier: argument.type count: 4 path: src/Controllers/Table/StructureController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Table/TrackingController.php - - message: "#^Parameter \\#2 \\$entries of method PhpMyAdmin\\\\Tracking\\\\Tracking\\:\\:getDownloadInfoForExport\\(\\) expects array\\\\>, array given\\.$#" + message: '#^Parameter \#2 \$entries of method PhpMyAdmin\\Tracking\\Tracking\:\:getDownloadInfoForExport\(\) expects array\\>, array\ given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/TrackingController.php - - message: "#^Parameter \\#3 \\$version of method PhpMyAdmin\\\\Tracking\\\\Tracking\\:\\:deleteTrackingVersion\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$version of method PhpMyAdmin\\Tracking\\Tracking\:\:deleteTrackingVersion\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/TrackingController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between '' LIMIT '' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Controllers/Table/ZoomSearchController.php + + - + message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Controllers/Table/ZoomSearchController.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 4 path: src/Controllers/Table/ZoomSearchController.php - - message: "#^Call to function array_search\\(\\) requires parameter \\#3 to be set\\.$#" + message: '#^Call to function array_search\(\) requires parameter \#3 to be set\.$#' + identifier: function.strict count: 2 path: src/Controllers/Table/ZoomSearchController.php - - message: "#^Cannot access offset 0 on mixed\\.$#" + message: '#^Cannot access offset 0 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Controllers/Table/ZoomSearchController.php - - message: "#^Cannot access offset 1 on mixed\\.$#" + message: '#^Cannot access offset 1 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Controllers/Table/ZoomSearchController.php - - message: "#^Cannot access offset int on mixed\\.$#" + message: '#^Cannot access offset int on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Controllers/Table/ZoomSearchController.php - - message: "#^Cannot access offset int\\<0, 3\\> on mixed\\.$#" + message: '#^Cannot access offset int\<0, 3\> on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Controllers/Table/ZoomSearchController.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 1 path: src/Controllers/Table/ZoomSearchController.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 1 path: src/Controllers/Table/ZoomSearchController.php - - message: "#^Casting to int something that's already int\\<1, max\\>\\.$#" + message: '#^Casting to int something that''s already int\<1, max\>\.$#' + identifier: cast.useless count: 1 path: src/Controllers/Table/ZoomSearchController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 2 path: src/Controllers/Table/ZoomSearchController.php - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 5 + path: src/Controllers/Table/ZoomSearchController.php + + - + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Controllers/Table/ZoomSearchController.php - - message: "#^Parameter \\#1 \\$dataLabel of method PhpMyAdmin\\\\Controllers\\\\Table\\\\ZoomSearchController\\:\\:displaySelectionFormAction\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$dataLabel of method PhpMyAdmin\\Controllers\\Table\\ZoomSearchController\:\:displaySelectionFormAction\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ZoomSearchController.php - - message: "#^Parameter \\#1 \\$dataLabel of method PhpMyAdmin\\\\Controllers\\\\Table\\\\ZoomSearchController\\:\\:zoomSubmitAction\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$dataLabel of method PhpMyAdmin\\Controllers\\Table\\ZoomSearchController\:\:zoomSubmitAction\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ZoomSearchController.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Table/ZoomSearchController.php - - message: "#^Parameter \\#1 \\$sqlQuery of static method PhpMyAdmin\\\\Core\\:\\:checkSqlQuerySignature\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$sqlQuery of static method PhpMyAdmin\\Core\:\:checkSqlQuerySignature\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ZoomSearchController.php - - message: "#^Parameter \\#1 \\$string of function htmlspecialchars expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function htmlspecialchars expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ZoomSearchController.php - - message: "#^Parameter \\#1 \\$string of function strtoupper expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$string of function strtoupper expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ZoomSearchController.php - - message: "#^Parameter \\#1 \\$type of method PhpMyAdmin\\\\Types\\:\\:getIntegerRange\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$type of method PhpMyAdmin\\Types\:\:getIntegerRange\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ZoomSearchController.php - - message: "#^Parameter \\#1 \\$type of method PhpMyAdmin\\\\Types\\:\\:getTypeOperatorsHtml\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$type of method PhpMyAdmin\\Types\:\:getTypeOperatorsHtml\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ZoomSearchController.php - - message: "#^Parameter \\#2 \\$columnIndex of method PhpMyAdmin\\\\Controllers\\\\Table\\\\ZoomSearchController\\:\\:getColumnProperties\\(\\) expects int, int\\|false given\\.$#" + message: '#^Parameter \#2 \$columnIndex of method PhpMyAdmin\\Controllers\\Table\\ZoomSearchController\:\:getColumnProperties\(\) expects int, int\<0, max\>\|false given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ZoomSearchController.php - - message: "#^Parameter \\#2 \\$foreignField of method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:foreignDropdown\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$foreignField of method PhpMyAdmin\\ConfigStorage\\Relation\:\:foreignDropdown\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ZoomSearchController.php - - message: "#^Parameter \\#2 \\$signature of static method PhpMyAdmin\\\\Core\\:\\:checkSqlQuerySignature\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$signature of static method PhpMyAdmin\\Core\:\:checkSqlQuerySignature\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ZoomSearchController.php - - message: "#^Parameter \\#3 \\$selectedOperator of method PhpMyAdmin\\\\Types\\:\\:getTypeOperatorsHtml\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#3 \$selectedOperator of method PhpMyAdmin\\Types\:\:getTypeOperatorsHtml\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Table/ZoomSearchController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/ThemeSetController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Controllers/Transformation/WrapperController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/Triggers/IndexController.php - - message: "#^Cannot call method isSuccess\\(\\) on mixed\\.$#" + message: '#^Cannot call method isSuccess\(\) on mixed\.$#' + identifier: method.nonObject count: 1 path: src/Controllers/Triggers/IndexController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 11 path: src/Controllers/Triggers/IndexController.php - - message: "#^Only booleans are allowed in \\|\\|, int\\<0, max\\> given on the left side\\.$#" + message: '#^Only booleans are allowed in \|\|, int\<0, max\> given on the left side\.$#' + identifier: booleanOr.leftNotBoolean count: 1 path: src/Controllers/Triggers/IndexController.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Triggers/IndexController.php - - message: "#^Parameter \\#1 \\$string of function mb_strtoupper expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function mb_strtoupper expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Triggers/IndexController.php - - message: "#^Parameter \\#1 \\$trigger of method PhpMyAdmin\\\\Controllers\\\\Triggers\\\\IndexController\\:\\:getDataFromTrigger\\(\\) expects PhpMyAdmin\\\\Triggers\\\\Trigger, PhpMyAdmin\\\\Triggers\\\\Trigger\\|null given\\.$#" + message: '#^Parameter \#1 \$trigger of method PhpMyAdmin\\Controllers\\Triggers\\IndexController\:\:getDataFromTrigger\(\) expects PhpMyAdmin\\Triggers\\Trigger, PhpMyAdmin\\Triggers\\Trigger\|null given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Triggers/IndexController.php - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/Triggers/IndexController.php - - message: "#^Parameter \\#3 \\$name of method PhpMyAdmin\\\\Triggers\\\\Triggers\\:\\:getTriggerByName\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$name of method PhpMyAdmin\\Triggers\\Triggers\:\:getTriggerByName\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/Triggers/IndexController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Controllers/UserPasswordController.php - - message: "#^Parameter \\#1 \\$username of method PhpMyAdmin\\\\UserPassword\\:\\:getFormForChangePassword\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$username of method PhpMyAdmin\\UserPassword\:\:getFormForChangePassword\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/UserPasswordController.php - - message: "#^Parameter \\#2 \\$hostname of method PhpMyAdmin\\\\UserPassword\\:\\:getFormForChangePassword\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \$hostname of method PhpMyAdmin\\UserPassword\:\:getFormForChangePassword\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/UserPasswordController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 1 + path: src/Controllers/VersionCheckController.php + + - + message: '#^Binary operation "\." between "\\r\\n \(" and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Controllers/View/CreateController.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Binary operation "\." between "\\r\\n AS " and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Controllers/View/CreateController.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 1 + path: src/Controllers/View/CreateController.php + + - + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 3 path: src/Controllers/View/CreateController.php - - message: "#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Controllers/View/CreateController.php - - message: "#^PHPDoc tag @var for variable \\$view has no value type specified in iterable type array\\.$#" + message: '#^PHPDoc tag @var for variable \$view has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Controllers/View/CreateController.php - - message: "#^Parameter \\#1 \\$dbName of method PhpMyAdmin\\\\DatabaseInterface\\:\\:getTable\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$dbName of method PhpMyAdmin\\DatabaseInterface\:\:getTable\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/View/CreateController.php - - message: "#^Parameter \\#1 \\$haystack of function str_contains expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$haystack of function str_contains expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/View/CreateController.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/View/CreateController.php - - message: "#^Parameter \\#1 \\$sqlQuery of method PhpMyAdmin\\\\SystemDatabase\\:\\:getColumnMapFromSql\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$sqlQuery of method PhpMyAdmin\\SystemDatabase\:\:getColumnMapFromSql\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/View/CreateController.php - - message: "#^Parameter \\#1 \\$str of method PhpMyAdmin\\\\DatabaseInterface\\:\\:quoteString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$str of method PhpMyAdmin\\DatabaseInterface\:\:quoteString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/View/CreateController.php - - message: "#^Parameter \\#2 \\$sqlQuery of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getMessage\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \$sqlQuery of static method PhpMyAdmin\\Html\\Generator\:\:getMessage\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/View/CreateController.php - - message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$string of function explode expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Controllers/View/CreateController.php - - message: "#^Parameter \\#2 \\$tableName of method PhpMyAdmin\\\\DatabaseInterface\\:\\:getTable\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$tableName of method PhpMyAdmin\\DatabaseInterface\:\:getTable\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/View/CreateController.php - - message: "#^Parameter \\#3 \\$viewName of method PhpMyAdmin\\\\SystemDatabase\\:\\:getNewTransformationDataSql\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$viewName of method PhpMyAdmin\\SystemDatabase\:\:getNewTransformationDataSql\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Controllers/View/CreateController.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between mixed and string results in an error\.$#' + identifier: binaryOp.invalid + count: 2 + path: src/Core.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 4 path: src/Core.php - - message: "#^Cannot access offset string on mixed\\.$#" + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 8 path: src/Core.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 3 path: src/Core.php - - message: "#^Method PhpMyAdmin\\\\Core\\:\\:getIp\\(\\) should return bool\\|string but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\Core\:\:getIp\(\) should return bool\|string but returns mixed\.$#' + identifier: return.type count: 1 path: src/Core.php - - message: "#^Only booleans are allowed in a negated boolean, int\\|string given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, int\|string given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Core.php - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" + message: '#^Only booleans are allowed in an if condition, mixed given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Core.php - - message: "#^Parameter \\#1 \\$sqlQuery of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:formatSql\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$sqlQuery of static method PhpMyAdmin\\Html\\Generator\:\:formatSql\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Core.php - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#' + identifier: argument.type count: 1 path: src/Core.php - - message: "#^Parameter \\#1 \\$variableName of static method PhpMyAdmin\\\\Core\\:\\:getEnv\\(\\) expects non\\-empty\\-string, string given\\.$#" + message: '#^Parameter \#1 \$variableName of static method PhpMyAdmin\\Core\:\:getEnv\(\) expects non\-empty\-string, string given\.$#' + identifier: argument.type count: 1 path: src/Core.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 3 path: src/CreateAddField.php - - message: "#^Cannot access offset 'col_index' on mixed\\.$#" + message: '#^Binary operation "\." between '' \('' and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/CreateAddField.php - - message: "#^Cannot access offset 'size' on mixed\\.$#" + message: '#^Binary operation "\." between '' COMMENT \= \\'''' and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/CreateAddField.php - - message: "#^Cannot access offset int\\<0, max\\> on mixed\\.$#" + message: '#^Binary operation "\." between '' DATA DIRECTORY \= \\'''' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/CreateAddField.php + + - + message: '#^Binary operation "\." between '' ENGINE \= '' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 2 + path: src/CreateAddField.php + + - + message: '#^Binary operation "\." between '' INDEX_DIRECTORY \= \\'''' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/CreateAddField.php + + - + message: '#^Binary operation "\." between '' MAX_ROWS \= '' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/CreateAddField.php + + - + message: '#^Binary operation "\." between '' MIN_ROWS \= '' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/CreateAddField.php + + - + message: '#^Binary operation "\." between '' NODEGROUP \= '' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/CreateAddField.php + + - + message: '#^Binary operation "\." between '' PARTITION BY '' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/CreateAddField.php + + - + message: '#^Binary operation "\." between '' SUBPARTITION BY '' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/CreateAddField.php + + - + message: '#^Binary operation "\." between '' TABLESPACE \= '' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/CreateAddField.php + + - + message: '#^Binary operation "\." between '' VALUES '' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/CreateAddField.php + + - + message: '#^Binary operation "\." between '' WITH PARSER '' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/CreateAddField.php + + - + message: '#^Binary operation "\." between ''\('' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/CreateAddField.php + + - + message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 4 + path: src/CreateAddField.php + + - + message: '#^Binary operation "\.\=" between '' PARTITION ''\|'' SUBPARTITION '' and mixed results in an error\.$#' + identifier: assignOp.invalid + count: 1 + path: src/CreateAddField.php + + - + message: '#^Cannot access offset ''col_index'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/CreateAddField.php + + - + message: '#^Cannot access offset ''size'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/CreateAddField.php + + - + message: '#^Cannot access offset int\<0, max\> on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 12 path: src/CreateAddField.php - - message: "#^Cannot access offset int\\\\|int\\<0, max\\> on mixed\\.$#" + message: '#^Cannot access offset int\\|int\<0, max\> on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/CreateAddField.php - - message: "#^Cannot access offset mixed on mixed\\.$#" + message: '#^Cannot access offset mixed on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/CreateAddField.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 1 path: src/CreateAddField.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 2 path: src/CreateAddField.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 24 path: src/CreateAddField.php - - message: "#^Method PhpMyAdmin\\\\CreateAddField\\:\\:getIndexedColumns\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method PhpMyAdmin\\CreateAddField\:\:getIndexedColumns\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/CreateAddField.php - - message: "#^Method PhpMyAdmin\\\\CreateAddField\\:\\:getIndexedColumns\\(\\) should return array\\{int, array, array, array, array, array\\} but returns array\\{int\\<0, max\\>, mixed, mixed, mixed, mixed, mixed\\}\\.$#" + message: '#^Method PhpMyAdmin\\CreateAddField\:\:getIndexedColumns\(\) should return array\{int, array, array, array, array, array\} but returns array\{int\<0, max\>, mixed, mixed, mixed, mixed, mixed\}\.$#' + identifier: return.type count: 1 path: src/CreateAddField.php - - message: "#^Parameter \\#1 \\$collation of static method PhpMyAdmin\\\\Util\\:\\:getCharsetQueryPart\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$collation of static method PhpMyAdmin\\Util\:\:getCharsetQueryPart\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/CreateAddField.php - - message: "#^Parameter \\#1 \\$engine of static method PhpMyAdmin\\\\StorageEngine\\:\\:isValid\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$engine of static method PhpMyAdmin\\StorageEngine\:\:isValid\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/CreateAddField.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#' + identifier: argument.type count: 3 path: src/CreateAddField.php - - message: "#^Parameter \\#1 \\$index of method PhpMyAdmin\\\\CreateAddField\\:\\:buildIndexStatement\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#1 \$index of method PhpMyAdmin\\CreateAddField\:\:buildIndexStatement\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 5 path: src/CreateAddField.php - - message: "#^Parameter \\#1 \\$json of function json_decode expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$json of function json_decode expects string, mixed given\.$#' + identifier: argument.type count: 5 path: src/CreateAddField.php - - message: "#^Parameter \\#1 \\$partition of method PhpMyAdmin\\\\CreateAddField\\:\\:getPartitionDefinition\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#1 \$partition of method PhpMyAdmin\\CreateAddField\:\:getPartitionDefinition\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 2 path: src/CreateAddField.php - - message: "#^Parameter \\#1 \\$str of method PhpMyAdmin\\\\DatabaseInterface\\:\\:quoteString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$str of method PhpMyAdmin\\DatabaseInterface\:\:quoteString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 3 path: src/CreateAddField.php - - message: "#^Parameter \\#1 \\$string of function rtrim expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function rtrim expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/CreateAddField.php - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#' + identifier: argument.type count: 1 path: src/CreateAddField.php - - message: "#^Parameter \\#10 \\$comment of static method PhpMyAdmin\\\\Table\\\\Table\\:\\:generateFieldSpec\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#10 \$comment of static method PhpMyAdmin\\Table\\Table\:\:generateFieldSpec\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/CreateAddField.php - - message: "#^Parameter \\#11 \\$virtuality of static method PhpMyAdmin\\\\Table\\\\Table\\:\\:generateFieldSpec\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#11 \$virtuality of static method PhpMyAdmin\\Table\\Table\:\:generateFieldSpec\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/CreateAddField.php - - message: "#^Parameter \\#12 \\$expression of static method PhpMyAdmin\\\\Table\\\\Table\\:\\:generateFieldSpec\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#12 \$expression of static method PhpMyAdmin\\Table\\Table\:\:generateFieldSpec\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/CreateAddField.php - - message: "#^Parameter \\#2 \\$type of static method PhpMyAdmin\\\\Table\\\\Table\\:\\:generateFieldSpec\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$type of static method PhpMyAdmin\\Table\\Table\:\:generateFieldSpec\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/CreateAddField.php - - message: "#^Parameter \\#3 \\$length of static method PhpMyAdmin\\\\Table\\\\Table\\:\\:generateFieldSpec\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$length of static method PhpMyAdmin\\Table\\Table\:\:generateFieldSpec\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/CreateAddField.php - - message: "#^Parameter \\#4 \\$attribute of static method PhpMyAdmin\\\\Table\\\\Table\\:\\:generateFieldSpec\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#4 \$attribute of static method PhpMyAdmin\\Table\\Table\:\:generateFieldSpec\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/CreateAddField.php - - message: "#^Parameter \\#5 \\$collation of static method PhpMyAdmin\\\\Table\\\\Table\\:\\:generateFieldSpec\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#5 \$collation of static method PhpMyAdmin\\Table\\Table\:\:generateFieldSpec\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/CreateAddField.php - - message: "#^Parameter \\#6 \\$null of static method PhpMyAdmin\\\\Table\\\\Table\\:\\:generateFieldSpec\\(\\) expects bool\\|string, mixed given\\.$#" + message: '#^Parameter \#6 \$null of static method PhpMyAdmin\\Table\\Table\:\:generateFieldSpec\(\) expects bool\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/CreateAddField.php - - message: "#^Parameter \\#7 \\$defaultType of static method PhpMyAdmin\\\\Table\\\\Table\\:\\:generateFieldSpec\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#7 \$defaultType of static method PhpMyAdmin\\Table\\Table\:\:generateFieldSpec\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/CreateAddField.php - - message: "#^Parameter \\#8 \\$defaultValue of static method PhpMyAdmin\\\\Table\\\\Table\\:\\:generateFieldSpec\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#8 \$defaultValue of static method PhpMyAdmin\\Table\\Table\:\:generateFieldSpec\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/CreateAddField.php - - message: "#^Parameter \\#9 \\$extra of static method PhpMyAdmin\\\\Table\\\\Table\\:\\:generateFieldSpec\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#9 \$extra of static method PhpMyAdmin\\Table\\Table\:\:generateFieldSpec\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/CreateAddField.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Crypto/Crypto.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Database/CentralColumns.php - - message: "#^Cannot access offset 'col_attribute' on mixed\\.$#" + message: '#^Cannot access offset ''col_attribute'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 5 path: src/Database/CentralColumns.php - - message: "#^Cannot access offset 'col_default' on mixed\\.$#" + message: '#^Cannot access offset ''col_default'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Database/CentralColumns.php - - message: "#^Cannot access offset 'col_extra' on mixed\\.$#" + message: '#^Cannot access offset ''col_extra'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Database/CentralColumns.php - - message: "#^Cannot access offset 'col_type' on mixed\\.$#" + message: '#^Cannot access offset ''col_type'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Database/CentralColumns.php - - message: "#^Cannot access offset int\\<0, max\\> on mixed\\.$#" + message: '#^Cannot access offset int\<0, max\> on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 11 path: src/Database/CentralColumns.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 2 path: src/Database/CentralColumns.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 2 path: src/Database/CentralColumns.php - - message: "#^Method PhpMyAdmin\\\\Database\\\\CentralColumns\\:\\:findExistingColNames\\(\\) should return array\\ but returns array\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 2 + path: src/Database/CentralColumns.php + + - + message: '#^Method PhpMyAdmin\\Database\\CentralColumns\:\:findExistingColNames\(\) should return array\ but returns array\\.$#' + identifier: return.type count: 1 path: src/Database/CentralColumns.php - - message: "#^Method PhpMyAdmin\\\\Database\\\\CentralColumns\\:\\:findExistingColumns\\(\\) should return array\\\\> but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\Database\\CentralColumns\:\:findExistingColumns\(\) should return array\\> but returns array\\.$#' + identifier: return.type count: 1 path: src/Database/CentralColumns.php - - message: "#^Method PhpMyAdmin\\\\Database\\\\CentralColumns\\:\\:getColumnsList\\(\\) should return array but returns mixed\\.$#" - count: 1 - path: src/Database/CentralColumns.php - - - - message: "#^Method PhpMyAdmin\\\\Database\\\\CentralColumns\\:\\:getListRaw\\(\\) should return array but returns mixed\\.$#" - count: 1 - path: src/Database/CentralColumns.php - - - - message: "#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: booleanNot.exprNotBoolean count: 3 path: src/Database/CentralColumns.php - - message: "#^Only booleans are allowed in an if condition, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Only booleans are allowed in an if condition, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Database/CentralColumns.php - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" + message: '#^Only booleans are allowed in an if condition, string\|null given\.$#' + identifier: if.condNotBoolean count: 3 path: src/Database/CentralColumns.php - - message: "#^Parameter \\#1 \\$bitDefaultValue of static method PhpMyAdmin\\\\Util\\:\\:convertBitDefaultValue\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$bitDefaultValue of static method PhpMyAdmin\\Util\:\:convertBitDefaultValue\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/CentralColumns.php - - message: "#^Parameter \\#1 \\$db of method PhpMyAdmin\\\\Database\\\\CentralColumns\\:\\:updateOneColumn\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$db of method PhpMyAdmin\\Database\\CentralColumns\:\:updateOneColumn\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/CentralColumns.php - - message: "#^Parameter \\#1 \\$def of method PhpMyAdmin\\\\Database\\\\CentralColumns\\:\\:getInsertQuery\\(\\) expects PhpMyAdmin\\\\ColumnFull, PhpMyAdmin\\\\ColumnFull\\|null given\\.$#" + message: '#^Parameter \#1 \$def of method PhpMyAdmin\\Database\\CentralColumns\:\:getInsertQuery\(\) expects PhpMyAdmin\\ColumnFull, PhpMyAdmin\\ColumnFull\|null given\.$#' + identifier: argument.type count: 1 path: src/Database/CentralColumns.php - - message: "#^Parameter \\#1 \\$str of method PhpMyAdmin\\\\DatabaseInterface\\:\\:quoteString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$str of method PhpMyAdmin\\DatabaseInterface\:\:quoteString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/CentralColumns.php - - message: "#^Parameter \\#1 \\$string of function bin2hex expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function bin2hex expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/CentralColumns.php - - message: "#^Parameter \\#1 \\$string of function trim expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function trim expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/CentralColumns.php - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/CentralColumns.php - - message: "#^Parameter \\#10 \\$colDefault of method PhpMyAdmin\\\\Database\\\\CentralColumns\\:\\:updateOneColumn\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#10 \$colDefault of method PhpMyAdmin\\Database\\CentralColumns\:\:updateOneColumn\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/CentralColumns.php - - message: "#^Parameter \\#2 \\$origColName of method PhpMyAdmin\\\\Database\\\\CentralColumns\\:\\:updateOneColumn\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$origColName of method PhpMyAdmin\\Database\\CentralColumns\:\:updateOneColumn\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/CentralColumns.php - - message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$string of function explode expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/CentralColumns.php - - message: "#^Parameter \\#3 \\$colName of method PhpMyAdmin\\\\Database\\\\CentralColumns\\:\\:updateOneColumn\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$colName of method PhpMyAdmin\\Database\\CentralColumns\:\:updateOneColumn\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/CentralColumns.php - - message: "#^Parameter \\#3 \\$column of method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:checkChildForeignReferences\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#3 \$column of method PhpMyAdmin\\ConfigStorage\\Relation\:\:checkChildForeignReferences\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Database/CentralColumns.php - - message: "#^Parameter \\#3 \\$pageNow of static method PhpMyAdmin\\\\Util\\:\\:pageselector\\(\\) expects int, \\(float\\|int\\) given\\.$#" + message: '#^Parameter \#3 \$pageNow of static method PhpMyAdmin\\Util\:\:pageselector\(\) expects int, \(float\|int\) given\.$#' + identifier: argument.type count: 1 path: src/Database/CentralColumns.php - - message: "#^Parameter \\#4 \\$colType of method PhpMyAdmin\\\\Database\\\\CentralColumns\\:\\:updateOneColumn\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#4 \$colType of method PhpMyAdmin\\Database\\CentralColumns\:\:updateOneColumn\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/CentralColumns.php - - message: "#^Parameter \\#5 \\$colAttribute of method PhpMyAdmin\\\\Database\\\\CentralColumns\\:\\:updateOneColumn\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#5 \$colAttribute of method PhpMyAdmin\\Database\\CentralColumns\:\:updateOneColumn\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/CentralColumns.php - - message: "#^Parameter \\#6 \\$colLength of method PhpMyAdmin\\\\Database\\\\CentralColumns\\:\\:updateOneColumn\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#6 \$colLength of method PhpMyAdmin\\Database\\CentralColumns\:\:updateOneColumn\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/CentralColumns.php - - message: "#^Parameter \\#8 \\$collation of method PhpMyAdmin\\\\Database\\\\CentralColumns\\:\\:updateOneColumn\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#8 \$collation of method PhpMyAdmin\\Database\\CentralColumns\:\:updateOneColumn\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/CentralColumns.php - - message: "#^Parameter \\#9 \\$colExtra of method PhpMyAdmin\\\\Database\\\\CentralColumns\\:\\:updateOneColumn\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#9 \$colExtra of method PhpMyAdmin\\Database\\CentralColumns\:\:updateOneColumn\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/CentralColumns.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Database/Designer.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 1 path: src/Database/Designer.php - - message: "#^Method PhpMyAdmin\\\\Database\\\\Designer\\:\\:getSideMenuParamsArray\\(\\) should return array but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\Database\\Designer\:\:getSideMenuParamsArray\(\) should return array\ but returns mixed\.$#' + identifier: return.type count: 1 path: src/Database/Designer.php - - message: "#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Database/Designer.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Database/Designer/Common.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between mixed and ''\.'' results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Database/Designer/Common.php - - message: "#^Cannot access offset mixed on mixed\\.$#" + message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Database/Designer/Common.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 1 + path: src/Database/Designer/Common.php + + - + message: '#^Cannot access offset mixed on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: src/Database/Designer/Common.php - - message: "#^Cannot access offset string on mixed\\.$#" + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Database/Designer/Common.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 2 path: src/Database/Designer/Common.php - - message: "#^For loop initial assignment overwrites variable \\$i\\.$#" + message: '#^For loop initial assignment overwrites variable \$i\.$#' + identifier: for.variableOverwrite count: 1 path: src/Database/Designer/Common.php - - message: "#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed count: 1 path: src/Database/Designer/Common.php - - message: "#^Only booleans are allowed in an if condition, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: booleanNot.exprNotBoolean + count: 1 + path: src/Database/Designer/Common.php + + - + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean + count: 1 + path: src/Database/Designer/Common.php + + - + message: '#^Only booleans are allowed in an if condition, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: if.condNotBoolean count: 2 path: src/Database/Designer/Common.php - - message: "#^Parameter \\#1 \\$json of function json_decode expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$json of function json_decode expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Database/Designer/Common.php - - message: "#^Parameter \\#1 \\$str of method PhpMyAdmin\\\\DatabaseInterface\\:\\:quoteString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$str of method PhpMyAdmin\\DatabaseInterface\:\:quoteString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 4 path: src/Database/Designer/Common.php - - message: "#^Parameter \\#1 \\$str of method PhpMyAdmin\\\\DatabaseInterface\\:\\:quoteString\\(\\) expects string, string\\|false given\\.$#" + message: '#^Parameter \#1 \$str of method PhpMyAdmin\\DatabaseInterface\:\:quoteString\(\) expects string, string\|false given\.$#' + identifier: argument.type count: 2 path: src/Database/Designer/Common.php - - message: "#^Parameter \\#1 \\$string of function rawurlencode expects string, int\\|string given\\.$#" + message: '#^Parameter \#1 \$string of function rawurlencode expects string, int\|string given\.$#' + identifier: argument.type count: 1 path: src/Database/Designer/Common.php - - message: "#^Parameter \\#1 \\$string of function rawurlencode expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function rawurlencode expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/Designer/Common.php - - message: "#^Parameter \\#1 \\$string of function rawurlencode expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$string of function rawurlencode expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Database/Designer/Common.php - - message: "#^Parameter \\#2 \\$table of method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:getDisplayField\\(\\) expects string, int\\|string\\|null given\\.$#" + message: '#^Parameter \#2 \$table of method PhpMyAdmin\\ConfigStorage\\Relation\:\:getDisplayField\(\) expects string, int\|string\|null given\.$#' + identifier: argument.type count: 1 path: src/Database/Designer/Common.php - - message: "#^Parameter \\#2 \\$tableName of class PhpMyAdmin\\\\Database\\\\Designer\\\\DesignerTable constructor expects string, int\\|string\\|null given\\.$#" + message: '#^Parameter \#2 \$tableName of class PhpMyAdmin\\Database\\Designer\\DesignerTable constructor expects string, int\|string\|null given\.$#' + identifier: argument.type count: 1 path: src/Database/Designer/Common.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Database/Events.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between ''\'' and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Database/Events.php - - message: "#^Cannot access an offset on mixed\\.$#" + message: '#^Binary operation "\.\=" between non\-falsy\-string and mixed results in an error\.$#' + identifier: assignOp.invalid + count: 1 + path: src/Database/Events.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 1 + path: src/Database/Events.php + + - + message: '#^Cannot access an offset on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 7 path: src/Database/Events.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 1 path: src/Database/Events.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 13 path: src/Database/Events.php - - message: "#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 1 + path: src/Database/Events.php + + - + message: '#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: booleanNot.exprNotBoolean count: 4 path: src/Database/Events.php - - message: "#^Parameter \\#1 \\$haystack of function str_contains expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$haystack of function str_contains expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/Events.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#' + identifier: argument.type count: 4 path: src/Database/Events.php - - message: "#^Parameter \\#1 \\$message of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getMessage\\(\\) expects PhpMyAdmin\\\\Message\\|string, mixed given\\.$#" + message: '#^Parameter \#1 \$message of static method PhpMyAdmin\\Html\\Generator\:\:getMessage\(\) expects PhpMyAdmin\\Message\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/Events.php - - message: "#^Parameter \\#1 \\$query of method PhpMyAdmin\\\\DatabaseInterface\\:\\:tryQuery\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$query of method PhpMyAdmin\\DatabaseInterface\:\:tryQuery\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Database/Events.php - - message: "#^Parameter \\#1 \\$str of method PhpMyAdmin\\\\DatabaseInterface\\:\\:quoteString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$str of method PhpMyAdmin\\DatabaseInterface\:\:quoteString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 4 path: src/Database/Events.php - - message: "#^Parameter \\#1 \\$string of function htmlspecialchars expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$string of function htmlspecialchars expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Database/Events.php - - message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$string of function explode expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/Events.php - - message: "#^Parameter \\#3 \\$name of static method PhpMyAdmin\\\\Database\\\\Events\\:\\:getDefinition\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$name of static method PhpMyAdmin\\Database\\Events\:\:getDefinition\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/Events.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Database/MultiTableQuery.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Database/MultiTableQuery.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 3 path: src/Database/Routines.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between ''\('' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 2 + path: src/Database/Routines.php + + - + message: '#^Binary operation "\." between ''\'' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Database/Routines.php + + - + message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 2 + path: src/Database/Routines.php + + - + message: '#^Binary operation "\.\=" between non\-falsy\-string and mixed results in an error\.$#' + identifier: assignOp.invalid + count: 1 + path: src/Database/Routines.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 3 path: src/Database/Routines.php - - message: "#^Cannot access an offset on mixed\\.$#" + message: '#^Cannot access an offset on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 9 path: src/Database/Routines.php - - message: "#^Cannot access offset int\\<0, max\\> on mixed\\.$#" + message: '#^Cannot access offset int\<0, max\> on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 16 path: src/Database/Routines.php - - message: "#^Cannot access offset mixed on mixed\\.$#" + message: '#^Cannot access offset mixed on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 9 path: src/Database/Routines.php - - message: "#^Cannot access property \\$name on PhpMyAdmin\\\\SqlParser\\\\Components\\\\DataType\\|null\\.$#" + message: '#^Cannot access property \$name on PhpMyAdmin\\SqlParser\\Components\\DataType\|null\.$#' + identifier: property.nonObject count: 2 path: src/Database/Routines.php - - message: "#^Cannot access property \\$options on PhpMyAdmin\\\\SqlParser\\\\Components\\\\DataType\\|null\\.$#" + message: '#^Cannot access property \$options on PhpMyAdmin\\SqlParser\\Components\\DataType\|null\.$#' + identifier: property.nonObject count: 2 path: src/Database/Routines.php - - message: "#^Cannot access property \\$options on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" + message: '#^Cannot access property \$options on PhpMyAdmin\\SqlParser\\Components\\OptionsArray\|null\.$#' + identifier: property.nonObject count: 2 path: src/Database/Routines.php - - message: "#^Cannot access property \\$parameters on PhpMyAdmin\\\\SqlParser\\\\Components\\\\DataType\\|null\\.$#" + message: '#^Cannot access property \$parameters on PhpMyAdmin\\SqlParser\\Components\\DataType\|null\.$#' + identifier: property.nonObject count: 3 path: src/Database/Routines.php - - message: "#^Cannot assign new offset to array\\\\|string\\|null\\.$#" + message: '#^Cannot assign new offset to list\\|string\|null\.$#' + identifier: offsetAssign.dimType count: 1 path: src/Database/Routines.php - - message: "#^Cannot assign new offset to array\\, string\\|null\\>\\|string\\.$#" + message: '#^Cannot assign new offset to list\\|string\.$#' + identifier: offsetAssign.dimType count: 1 path: src/Database/Routines.php - - message: "#^Cannot call method get\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" + message: '#^Cannot call method get\(\) on PhpMyAdmin\\SqlParser\\Components\\OptionsArray\|null\.$#' + identifier: method.nonObject count: 1 path: src/Database/Routines.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 22 path: src/Database/Routines.php - - message: "#^Method PhpMyAdmin\\\\Database\\\\Routines\\:\\:backupPrivileges\\(\\) should return array\\\\> but returns array\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed count: 1 path: src/Database/Routines.php - - message: "#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 3 + path: src/Database/Routines.php + + - + message: '#^Method PhpMyAdmin\\Database\\Routines\:\:backupPrivileges\(\) should return array\\> but returns array\\.$#' + identifier: return.type + count: 1 + path: src/Database/Routines.php + + - + message: '#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: booleanNot.exprNotBoolean count: 4 path: src/Database/Routines.php - - message: "#^Parameter \\#1 \\$alias of method PhpMyAdmin\\\\Types\\:\\:mapAliasToMysqlType\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$alias of method PhpMyAdmin\\Types\:\:mapAliasToMysqlType\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/Routines.php - - message: "#^Parameter \\#1 \\$haystack of function str_contains expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$haystack of function str_contains expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/Routines.php - - message: "#^Parameter \\#1 \\$haystack of function stripos expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$haystack of function stripos expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Database/Routines.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#' + identifier: argument.type count: 9 path: src/Database/Routines.php - - message: "#^Parameter \\#1 \\$itemParamName of method PhpMyAdmin\\\\Database\\\\Routines\\:\\:processParamsAndBuild\\(\\) expects array\\, array given\\.$#" + message: '#^Parameter \#1 \$itemParamName of method PhpMyAdmin\\Database\\Routines\:\:processParamsAndBuild\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: src/Database/Routines.php - - message: "#^Parameter \\#1 \\$message of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getMessage\\(\\) expects PhpMyAdmin\\\\Message\\|string, mixed given\\.$#" + message: '#^Parameter \#1 \$message of static method PhpMyAdmin\\Html\\Generator\:\:getMessage\(\) expects PhpMyAdmin\\Message\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/Routines.php - - message: "#^Parameter \\#1 \\$quotedString of static method PhpMyAdmin\\\\Util\\:\\:unQuote\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$quotedString of static method PhpMyAdmin\\Util\:\:unQuote\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/Routines.php - - message: "#^Parameter \\#1 \\$str of method PhpMyAdmin\\\\DatabaseInterface\\:\\:quoteString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$str of method PhpMyAdmin\\DatabaseInterface\:\:quoteString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 7 path: src/Database/Routines.php - - message: "#^Parameter \\#1 \\$string of function htmlentities expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function htmlentities expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Database/Routines.php - - message: "#^Parameter \\#1 \\$string of function htmlspecialchars expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function htmlspecialchars expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Database/Routines.php - - message: "#^Parameter \\#1 \\$string of function mb_strtolower expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function mb_strtolower expects string, mixed given\.$#' + identifier: argument.type count: 7 path: src/Database/Routines.php - - message: "#^Parameter \\#1 \\$string of function mb_strtoupper expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function mb_strtoupper expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Database/Routines.php - - message: "#^Parameter \\#1 \\$type of method PhpMyAdmin\\\\Types\\:\\:getTypeClass\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$type of method PhpMyAdmin\\Types\:\:getTypeClass\(\) expects string, mixed given\.$#' + identifier: argument.type count: 4 path: src/Database/Routines.php - - message: "#^Parameter \\#1 \\.\\.\\.\\$arrays of function array_merge expects array, mixed given\\.$#" + message: '#^Parameter \#1 \.\.\.\$arrays of function array_merge expects array, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/Routines.php - - message: "#^Parameter \\#2 \\$array of function implode expects array\\|null, array\\, string\\|null\\>\\|string given\\.$#" + message: '#^Parameter \#2 \$array of function implode expects array\|null, list\\|string given\.$#' + identifier: argument.type count: 1 path: src/Database/Routines.php - - message: "#^Parameter \\#2 \\$itemParamDir of method PhpMyAdmin\\\\Database\\\\Routines\\:\\:processParamsAndBuild\\(\\) expects array\\, array given\\.$#" + message: '#^Parameter \#2 \$itemParamDir of method PhpMyAdmin\\Database\\Routines\:\:processParamsAndBuild\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: src/Database/Routines.php - - message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$string of function explode expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/Routines.php - - message: "#^Parameter \\#2 \\$subject of function preg_match expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$subject of function preg_match expects string, mixed given\.$#' + identifier: argument.type count: 4 path: src/Database/Routines.php - - message: "#^Parameter \\#2 \\$warnedAboutLength of method PhpMyAdmin\\\\Database\\\\Routines\\:\\:processFunctionSpecificParameters\\(\\) expects bool, mixed given\\.$#" + message: '#^Parameter \#3 \$createRoutine of method PhpMyAdmin\\Database\\Routines\:\:create\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Database/Routines.php - - message: "#^Parameter \\#3 \\$createRoutine of method PhpMyAdmin\\\\Database\\\\Routines\\:\\:create\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#3 \$name of static method PhpMyAdmin\\Database\\Routines\:\:getFunctionDefinition\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/Routines.php - - message: "#^Parameter \\#3 \\$name of static method PhpMyAdmin\\\\Database\\\\Routines\\:\\:getFunctionDefinition\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$name of static method PhpMyAdmin\\Database\\Routines\:\:getFunctionDefinition\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Database/Routines.php - - message: "#^Parameter \\#3 \\$name of static method PhpMyAdmin\\\\Database\\\\Routines\\:\\:getFunctionDefinition\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#3 \$name of static method PhpMyAdmin\\Database\\Routines\:\:getProcedureDefinition\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/Routines.php - - message: "#^Parameter \\#3 \\$name of static method PhpMyAdmin\\\\Database\\\\Routines\\:\\:getProcedureDefinition\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$name of static method PhpMyAdmin\\Database\\Routines\:\:getProcedureDefinition\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Database/Routines.php - - message: "#^Parameter \\#3 \\$name of static method PhpMyAdmin\\\\Database\\\\Routines\\:\\:getProcedureDefinition\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#7 \$itemType of method PhpMyAdmin\\Database\\Routines\:\:processParamsAndBuild\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Database/Routines.php - - message: "#^Parameter \\#7 \\$itemType of method PhpMyAdmin\\\\Database\\\\Routines\\:\\:processParamsAndBuild\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Database/Routines.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 4 path: src/Database/Search.php - - message: "#^Property PhpMyAdmin\\\\Database\\\\Search\\:\\:\\$criteriaTables \\(array\\\\) does not accept array\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed count: 1 path: src/Database/Search.php - - message: "#^Property PhpMyAdmin\\\\Database\\\\Search\\:\\:\\$searchTypeDescription \\(string\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Database\\Search\:\:\$criteriaTables \(array\\) does not accept array\\.$#' + identifier: assign.propertyType count: 1 path: src/Database/Search.php - - message: """ - #^Access to deprecated static property \\$route of class PhpMyAdmin\\\\Routing\\\\Routing\\: - Use \\{@see ServerRequest\\:\\:getRoute\\(\\)\\} instead\\.$# - """ + message: '#^Property PhpMyAdmin\\Database\\Search\:\:\$searchTypeDescription \(string\) does not accept mixed\.$#' + identifier: assign.propertyType + count: 1 + path: src/Database/Search.php + + - + message: ''' + #^Access to deprecated static property \$route of class PhpMyAdmin\\Routing\\Routing\: + Use \{@see ServerRequest\:\:getRoute\(\)\} instead\.$# + ''' + identifier: staticProperty.deprecated count: 1 path: src/DatabaseInterface.php - - message: "#^Binary operation \"\\+\" between int\\|string\\|null and int\\|string\\|null results in an error\\.$#" + message: '#^Binary operation "\+" between int\|string\|null and int\|string\|null results in an error\.$#' + identifier: binaryOp.invalid count: 3 path: src/DatabaseInterface.php - - message: "#^Binary operation \"\\+\" between string\\|null and string\\|null results in an error\\.$#" + message: '#^Binary operation "\+" between string\|null and string\|null results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/DatabaseInterface.php - - message: "#^Binary operation \"\\+\\=\" between mixed and string\\|null results in an error\\.$#" + message: '#^Binary operation "\+\=" between \(float\|int\) and mixed results in an error\.$#' + identifier: assignOp.invalid + count: 1 + path: src/DatabaseInterface.php + + - + message: '#^Binary operation "\+\=" between mixed and string\|null results in an error\.$#' + identifier: assignOp.invalid count: 5 path: src/DatabaseInterface.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/DatabaseInterface.php - - message: "#^Cannot access an offset on mixed\\.$#" + message: '#^Cannot access an offset on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/DatabaseInterface.php - - message: "#^Cannot access offset string\\|null on mixed\\.$#" + message: '#^Cannot access offset string\|null on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/DatabaseInterface.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 1 path: src/DatabaseInterface.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/DatabaseInterface.php - - message: "#^Foreach overwrites \\$database with its value variable\\.$#" + message: '#^Foreach overwrites \$database with its value variable\.$#' + identifier: foreach.valueOverwrite count: 1 path: src/DatabaseInterface.php - - message: "#^Foreach overwrites \\$table with its value variable\\.$#" + message: '#^Foreach overwrites \$table with its value variable\.$#' + identifier: foreach.valueOverwrite count: 1 path: src/DatabaseInterface.php - - message: "#^Method PhpMyAdmin\\\\DatabaseInterface\\:\\:affectedRows\\(\\) should return int\\|numeric\\-string but returns mixed\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 1 path: src/DatabaseInterface.php - - message: "#^Method PhpMyAdmin\\\\DatabaseInterface\\:\\:getColumnNames\\(\\) should return array\\ but returns array\\.$#" + message: '#^Method PhpMyAdmin\\DatabaseInterface\:\:affectedRows\(\) should return int\|numeric\-string but returns mixed\.$#' + identifier: return.type count: 1 path: src/DatabaseInterface.php - - message: "#^Method PhpMyAdmin\\\\DatabaseInterface\\:\\:getColumnsFull\\(\\) should return array but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\DatabaseInterface\:\:getColumnNames\(\) should return array\ but returns array\\.$#' + identifier: return.type count: 1 path: src/DatabaseInterface.php - - message: "#^Method PhpMyAdmin\\\\DatabaseInterface\\:\\:getCurrentRoles\\(\\) should return array\\ but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\DatabaseInterface\:\:getColumnsFull\(\) should return array\ but returns mixed\.$#' + identifier: return.type count: 1 path: src/DatabaseInterface.php - - message: "#^Method PhpMyAdmin\\\\DatabaseInterface\\:\\:getCurrentUser\\(\\) should return string but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\DatabaseInterface\:\:getCurrentRoles\(\) should return list\ but returns mixed\.$#' + identifier: return.type count: 1 path: src/DatabaseInterface.php - - message: "#^Method PhpMyAdmin\\\\DatabaseInterface\\:\\:getCurrentUser\\(\\) should return string but returns string\\|null\\.$#" + message: '#^Method PhpMyAdmin\\DatabaseInterface\:\:getCurrentUser\(\) should return string but returns mixed\.$#' + identifier: return.type count: 1 path: src/DatabaseInterface.php - - message: "#^Method PhpMyAdmin\\\\DatabaseInterface\\:\\:getTableIndexes\\(\\) should return array\\ but returns array\\.$#" + message: '#^Method PhpMyAdmin\\DatabaseInterface\:\:getCurrentUser\(\) should return string but returns string\|null\.$#' + identifier: return.type count: 1 path: src/DatabaseInterface.php - - message: "#^Only booleans are allowed in &&, int\\|false given on the left side\\.$#" + message: '#^Method PhpMyAdmin\\DatabaseInterface\:\:getTableIndexes\(\) should return array\ but returns array\\.$#' + identifier: return.type + count: 1 + path: src/DatabaseInterface.php + + - + message: '#^Only booleans are allowed in &&, int\|false given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 3 path: src/DatabaseInterface.php - - message: "#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: booleanNot.exprNotBoolean count: 3 path: src/DatabaseInterface.php - - message: "#^Only booleans are allowed in a ternary operator condition, bool\\|string given\\.$#" + message: '#^Only booleans are allowed in a ternary operator condition, bool\|string given\.$#' + identifier: ternary.condNotBoolean count: 1 path: src/DatabaseInterface.php - - message: "#^Only booleans are allowed in an if condition, int\\|false given\\.$#" + message: '#^Only booleans are allowed in an if condition, int\|false given\.$#' + identifier: if.condNotBoolean count: 2 path: src/DatabaseInterface.php - - message: "#^Parameter \\#1 \\$a of static method PhpMyAdmin\\\\Query\\\\Utilities\\:\\:usortComparisonCallback\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#1 \$a of static method PhpMyAdmin\\Query\\Utilities\:\:usortComparisonCallback\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/DatabaseInterface.php - - message: "#^Parameter \\#1 \\$callback of function array_map expects \\(callable\\(mixed\\)\\: mixed\\)\\|null, Closure\\(string\\)\\: non\\-empty\\-string given\\.$#" + message: '#^Parameter \#1 \$callback of function array_map expects \(callable\(mixed\)\: mixed\)\|null, Closure\(string\)\: non\-empty\-string given\.$#' + identifier: argument.type count: 1 path: src/DatabaseInterface.php - - message: "#^Parameter \\#1 \\$callback of function array_map expects \\(callable\\(mixed\\)\\: mixed\\)\\|null, Closure\\(string, PhpMyAdmin\\\\Dbal\\\\ConnectionType\\=\\)\\: non\\-empty\\-string given\\.$#" + message: '#^Parameter \#1 \$callback of function array_map expects \(callable\(mixed\)\: mixed\)\|null, Closure\(string, PhpMyAdmin\\Dbal\\ConnectionType\=\)\: non\-empty\-string given\.$#' + identifier: argument.type count: 1 path: src/DatabaseInterface.php - - message: "#^Parameter \\#1 \\$haystack of function stripos expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$haystack of function stripos expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/DatabaseInterface.php - - message: "#^Parameter \\#1 \\$path of function basename expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$path of function basename expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/DatabaseInterface.php - - message: "#^Parameter \\#1 \\$string of function strtolower expects string, int\\|string given\\.$#" + message: '#^Parameter \#1 \$string of function strtolower expects string, int\|string given\.$#' + identifier: argument.type count: 1 path: src/DatabaseInterface.php - - message: "#^Parameter \\#1 \\$version of static method PhpMyAdmin\\\\Query\\\\Utilities\\:\\:versionToInt\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$version of static method PhpMyAdmin\\Query\\Utilities\:\:versionToInt\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/DatabaseInterface.php - - message: "#^Parameter \\#2 \\$b of static method PhpMyAdmin\\\\Query\\\\Utilities\\:\\:usortComparisonCallback\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#2 \$arrays of function array_diff expects an array of values castable to string, array\ given\.$#' + identifier: argument.type count: 1 path: src/DatabaseInterface.php - - message: "#^Property PhpMyAdmin\\\\DatabaseInterface\\:\\:\\$versionComment \\(string\\) does not accept mixed\\.$#" + message: '#^Parameter \#2 \$b of static method PhpMyAdmin\\Query\\Utilities\:\:usortComparisonCallback\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/DatabaseInterface.php - - message: "#^Property PhpMyAdmin\\\\DatabaseInterface\\:\\:\\$versionString \\(string\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\DatabaseInterface\:\:\$versionComment \(string\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/DatabaseInterface.php - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" + message: '#^Property PhpMyAdmin\\DatabaseInterface\:\:\$versionString \(string\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/DatabaseInterface.php - - message: "#^Variable \\$roleHost on left side of \\?\\? always exists and is not nullable\\.$#" + message: '#^Short ternary operator is not allowed\. Use null coalesce operator if applicable or consider using long ternary\.$#' + identifier: ternary.shortNotAllowed + count: 1 + path: src/DatabaseInterface.php + + - + message: '#^Variable \$roleHost on left side of \?\? always exists and is not nullable\.$#' + identifier: nullCoalesce.variable count: 2 path: src/DatabaseInterface.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Dbal/DbiMysqli.php - - message: "#^Method PhpMyAdmin\\\\Dbal\\\\MysqliResult\\:\\:fetchAllAssoc\\(\\) should return array\\\\> but returns array\\.$#" + message: '#^Method PhpMyAdmin\\Dbal\\MysqliResult\:\:fetchAllAssoc\(\) should return list\\> but returns array\.$#' + identifier: return.type count: 1 path: src/Dbal/MysqliResult.php - - message: "#^Method PhpMyAdmin\\\\Dbal\\\\MysqliResult\\:\\:fetchAllColumn\\(\\) should return array\\ but returns array\\\\.$#" + message: '#^Method PhpMyAdmin\\Dbal\\MysqliResult\:\:fetchAllColumn\(\) should return list\ but returns list\.$#' + identifier: return.type count: 1 path: src/Dbal/MysqliResult.php - - message: "#^Method PhpMyAdmin\\\\Dbal\\\\MysqliResult\\:\\:fetchAllKeyPair\\(\\) should return array\\ but returns array\\\\.$#" + message: '#^Method PhpMyAdmin\\Dbal\\MysqliResult\:\:fetchAllKeyPair\(\) should return array\ but returns array\\.$#' + identifier: return.type count: 1 path: src/Dbal/MysqliResult.php - - message: "#^Method PhpMyAdmin\\\\Dbal\\\\MysqliResult\\:\\:fetchAssoc\\(\\) should return array\\ but returns array\\\\.$#" + message: '#^Method PhpMyAdmin\\Dbal\\MysqliResult\:\:fetchAssoc\(\) should return array\ but returns array\\.$#' + identifier: return.type count: 1 path: src/Dbal/MysqliResult.php - - message: "#^Method PhpMyAdmin\\\\Dbal\\\\MysqliResult\\:\\:fetchRow\\(\\) should return array\\ but returns array\\.$#" + message: '#^Method PhpMyAdmin\\Dbal\\MysqliResult\:\:fetchRow\(\) should return list\ but returns array\.$#' + identifier: return.type count: 1 path: src/Dbal/MysqliResult.php - - message: "#^Parameter \\#1 \\$field of class PhpMyAdmin\\\\FieldMetadata constructor expects object\\{name\\: string, orgname\\: string, table\\: string, orgtable\\: string, max_length\\: int, length\\: int, charsetnr\\: int, flags\\: int, type\\: int, decimals\\: int, db\\: string, def\\: string, catalog\\: string\\}, object\\{name\\: string, orgname\\: string, table\\: string, orgtable\\: string, def\\: string, db\\: string, catalog\\: string, max_length\\: int, length\\: int, charsetnr\\: string, flags\\: int, type\\: int, decimals\\: int\\}&stdClass given\\.$#" + message: '#^Parameter \#1 \$field of class PhpMyAdmin\\FieldMetadata constructor expects object\{name\: string, orgname\: string, table\: string, orgtable\: string, max_length\: int, length\: int, charsetnr\: int, flags\: int, type\: int, decimals\: int, db\: string, def\: string, catalog\: string\}, object\{name\: string, orgname\: string, table\: string, orgtable\: string, def\: string, db\: string, catalog\: string, max_length\: int, length\: int, charsetnr\: string, flags\: int, type\: int, decimals\: int\}&stdClass given\.$#' + identifier: argument.type count: 1 path: src/Dbal/MysqliResult.php - - message: "#^Access to an undefined property PhpMyAdmin\\\\SqlParser\\\\Statement\\:\\:\\$expr\\.$#" + message: '#^Access to an undefined property PhpMyAdmin\\SqlParser\\Statement\:\:\$expr\.$#' + identifier: property.notFound count: 1 path: src/Display/Results.php - - message: "#^Access to an undefined property PhpMyAdmin\\\\SqlParser\\\\Statement\\:\\:\\$from\\.$#" + message: '#^Access to an undefined property PhpMyAdmin\\SqlParser\\Statement\:\:\$from\.$#' + identifier: property.notFound count: 2 path: src/Display/Results.php - - message: "#^Access to an undefined property PhpMyAdmin\\\\SqlParser\\\\Statement\\:\\:\\$limit\\.$#" + message: '#^Access to an undefined property PhpMyAdmin\\SqlParser\\Statement\:\:\$limit\.$#' + identifier: property.notFound count: 1 path: src/Display/Results.php - - message: "#^Access to an undefined property PhpMyAdmin\\\\SqlParser\\\\Statement\\:\\:\\$where\\.$#" + message: '#^Access to an undefined property PhpMyAdmin\\SqlParser\\Statement\:\:\$where\.$#' + identifier: property.notFound count: 1 path: src/Display/Results.php - - message: "#^Access to an undefined property object\\:\\:\\$column\\.$#" + message: '#^Access to an undefined property object\:\:\$column\.$#' + identifier: property.notFound count: 1 path: src/Display/Results.php - - message: "#^Access to an undefined property object\\:\\:\\$database\\.$#" + message: '#^Access to an undefined property object\:\:\$database\.$#' + identifier: property.notFound count: 1 path: src/Display/Results.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 4 path: src/Display/Results.php - - message: "#^Cannot access offset 'display_binary' on mixed\\.$#" + message: '#^Binary operation "%%" between int\<1, max\> and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Display/Results.php + + - + message: '#^Binary operation "\+" between mixed and int results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Display/Results.php + + - + message: '#^Binary operation "\+" between mixed and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Display/Results.php + + - + message: '#^Binary operation "\-" between \(array\|float\|int\) and 1 results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Display/Results.php + + - + message: '#^Binary operation "\." between non\-empty\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Display/Results.php + + - + message: '#^Binary operation "\." between string and \(list\\|string\) results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Display/Results.php + + - + message: '#^Binary operation "/" between int and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Display/Results.php + + - + message: '#^Binary operation "/" between mixed and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Display/Results.php + + - + message: '#^Call to function array_filter\(\) requires parameter \#2 to be passed to avoid loose comparison semantics\.$#' + identifier: arrayFilter.strict + count: 3 + path: src/Display/Results.php + + - + message: '#^Cannot access offset ''display_binary'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 8 path: src/Display/Results.php - - message: "#^Cannot access offset 'display_blob' on mixed\\.$#" + message: '#^Cannot access offset ''display_blob'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 6 path: src/Display/Results.php - - message: "#^Cannot access offset 'geoOption' on mixed\\.$#" + message: '#^Cannot access offset ''geoOption'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 8 path: src/Display/Results.php - - message: "#^Cannot access offset 'hide_transformation' on mixed\\.$#" + message: '#^Cannot access offset ''hide_transformation'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 8 path: src/Display/Results.php - - message: "#^Cannot access offset 'max_rows' on mixed\\.$#" + message: '#^Cannot access offset ''max_rows'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 18 path: src/Display/Results.php - - message: "#^Cannot access offset 'pftext' on mixed\\.$#" + message: '#^Cannot access offset ''pftext'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 9 path: src/Display/Results.php - - message: "#^Cannot access offset 'pos' on mixed\\.$#" + message: '#^Cannot access offset ''pos'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 11 path: src/Display/Results.php - - message: "#^Cannot access offset 'possible_as_geometry' on mixed\\.$#" + message: '#^Cannot access offset ''possible_as_geometry'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Display/Results.php - - message: "#^Cannot access offset 'query' on mixed\\.$#" + message: '#^Cannot access offset ''query'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 6 path: src/Display/Results.php - - message: "#^Cannot access offset 'relational_display' on mixed\\.$#" + message: '#^Cannot access offset ''relational_display'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 7 path: src/Display/Results.php - - message: "#^Cannot access offset 'repeat_cells' on mixed\\.$#" + message: '#^Cannot access offset ''repeat_cells'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 5 path: src/Display/Results.php - - message: "#^Cannot access offset 'sql' on mixed\\.$#" + message: '#^Cannot access offset ''sql'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Display/Results.php - - message: "#^Cannot access offset 0 on mixed\\.$#" + message: '#^Cannot access offset 0 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Display/Results.php - - message: "#^Cannot access offset int\\<0, max\\> on mixed\\.$#" + message: '#^Cannot access offset int\<0, max\> on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Display/Results.php - - message: "#^Cannot access offset non\\-falsy\\-string on mixed\\.$#" + message: '#^Cannot access offset non\-falsy\-string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: src/Display/Results.php - - message: "#^Cannot access property \\$alias on mixed\\.$#" + message: '#^Cannot access property \$alias on mixed\.$#' + identifier: property.nonObject count: 1 path: src/Display/Results.php - - message: "#^Cannot access property \\$column on PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" + message: '#^Cannot access property \$column on PhpMyAdmin\\SqlParser\\Components\\Expression\|null\.$#' + identifier: property.nonObject count: 1 path: src/Display/Results.php - - message: "#^Cannot access property \\$expr on PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" + message: '#^Cannot access property \$expr on PhpMyAdmin\\SqlParser\\Components\\Expression\|null\.$#' + identifier: property.nonObject count: 2 path: src/Display/Results.php - - message: "#^Cannot access property \\$identifiers on mixed\\.$#" + message: '#^Cannot access property \$identifiers on mixed\.$#' + identifier: property.nonObject count: 1 path: src/Display/Results.php - - message: "#^Cannot access property \\$offset on mixed\\.$#" + message: '#^Cannot access property \$offset on mixed\.$#' + identifier: property.nonObject count: 1 path: src/Display/Results.php - - message: "#^Cannot access property \\$rowCount on mixed\\.$#" + message: '#^Cannot access property \$rowCount on mixed\.$#' + identifier: property.nonObject count: 1 path: src/Display/Results.php - - message: "#^Cannot access property \\$table on mixed\\.$#" + message: '#^Cannot access property \$table on mixed\.$#' + identifier: property.nonObject count: 2 path: src/Display/Results.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 6 path: src/Display/Results.php - - message: "#^Casting to int something that's already int\\<1, max\\>\\.$#" + message: '#^Casting to int something that''s already int\<1, max\>\.$#' + identifier: cast.useless count: 1 path: src/Display/Results.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 24 path: src/Display/Results.php - - message: "#^Method PhpMyAdmin\\\\Display\\\\Results\\:\\:getSortByKeyDropDown\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 6 + path: src/Display/Results.php + + - + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 8 + path: src/Display/Results.php + + - + message: '#^Method PhpMyAdmin\\Display\\Results\:\:getSortByKeyDropDown\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 2 path: src/Display/Results.php - - message: "#^Method PhpMyAdmin\\\\Display\\\\Results\\:\\:getTableHeaders\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method PhpMyAdmin\\Display\\Results\:\:getTableHeaders\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 2 path: src/Display/Results.php - - message: "#^Offset 3 does not exist on array\\{string\\|null, string\\|null, string\\|null\\}\\.$#" + message: '#^Offset 3 does not exist on array\{string\|null, string\|null, string\|null\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Display/Results.php - - message: "#^Only booleans are allowed in &&, array\\|bool given on the left side\\.$#" + message: '#^Only booleans are allowed in &&, array\\|bool given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 1 path: src/Display/Results.php - - message: "#^Only booleans are allowed in &&, mixed given on the left side\\.$#" - count: 1 - path: src/Display/Results.php - - - - message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#" + message: '#^Only booleans are allowed in &&, mixed given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 3 path: src/Display/Results.php - - message: "#^Only booleans are allowed in a negated boolean, int\\|string\\|null given\\.$#" - count: 1 - path: src/Display/Results.php - - - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" - count: 1 - path: src/Display/Results.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, int\\<0, max\\>\\|false given\\.$#" - count: 1 - path: src/Display/Results.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, mixed given\\.$#" - count: 1 - path: src/Display/Results.php - - - - message: "#^Only booleans are allowed in \\|\\|, int\\<0, max\\>\\|false given on the left side\\.$#" - count: 1 - path: src/Display/Results.php - - - - message: "#^Parameter \\#1 \\$array of function array_shift expects array, mixed given\\.$#" - count: 1 - path: src/Display/Results.php - - - - message: "#^Parameter \\#1 \\$db of method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:getComments\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Display/Results.php - - - - message: "#^Parameter \\#1 \\$db of method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:getDisplayField\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Display/Results.php - - - - message: "#^Parameter \\#1 \\$haystack of function str_contains expects string, mixed given\\.$#" + message: '#^Only booleans are allowed in &&, string\|null given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 3 path: src/Display/Results.php - - message: "#^Parameter \\#1 \\$offset of method PhpMyAdmin\\\\Dbal\\\\ResultInterface\\:\\:seek\\(\\) expects int, float\\|int given\\.$#" - count: 2 - path: src/Display/Results.php - - - - message: "#^Parameter \\#1 \\$params of static method PhpMyAdmin\\\\Url\\:\\:getCommonRaw\\(\\) expects array\\, array\\ given\\.$#" - count: 2 - path: src/Display/Results.php - - - - message: "#^Parameter \\#1 \\$sqlQuery of static method PhpMyAdmin\\\\Core\\:\\:signSqlQuery\\(\\) expects string, mixed given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, int\|string\|null given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Display/Results.php - - message: "#^Parameter \\#1 \\$statement of static method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Query\\:\\:replaceClause\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\Statement, PhpMyAdmin\\\\SqlParser\\\\Statement\\|null given\\.$#" - count: 2 + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean + count: 5 path: src/Display/Results.php - - message: "#^Parameter \\#1 \\$table of class PhpMyAdmin\\\\Display\\\\ForeignKeyRelatedTable constructor expects string, mixed given\\.$#" + message: '#^Only booleans are allowed in a ternary operator condition, int\<0, max\>\|false given\.$#' + identifier: ternary.condNotBoolean count: 1 path: src/Display/Results.php - - message: "#^Parameter \\#1 \\$table of class PhpMyAdmin\\\\Display\\\\ForeignKeyRelatedTable constructor expects string, string\\|null given\\.$#" + message: '#^Only booleans are allowed in a ternary operator condition, mixed given\.$#' + identifier: ternary.condNotBoolean count: 1 path: src/Display/Results.php - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" - count: 2 - path: src/Display/Results.php - - - - message: "#^Parameter \\#1 \\$value of static method PhpMyAdmin\\\\Util\\:\\:formatNumber\\(\\) expects float\\|int\\|string, int\\|string\\|false given\\.$#" + message: '#^Only booleans are allowed in an if condition, mixed given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Display/Results.php - - message: "#^Parameter \\#2 \\$field of class PhpMyAdmin\\\\Display\\\\ForeignKeyRelatedTable constructor expects string, mixed given\\.$#" + message: '#^Only booleans are allowed in \|\|, int\<0, max\>\|false given on the left side\.$#' + identifier: booleanOr.leftNotBoolean count: 1 path: src/Display/Results.php - - message: "#^Parameter \\#2 \\$list of static method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Query\\:\\:getClause\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\TokensList, PhpMyAdmin\\\\SqlParser\\\\TokensList\\|null given\\.$#" - count: 2 + message: '#^Only booleans are allowed in \|\|, mixed given on the right side\.$#' + identifier: booleanOr.rightNotBoolean + count: 1 path: src/Display/Results.php - - message: "#^Parameter \\#2 \\$list of static method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Query\\:\\:replaceClause\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\TokensList, PhpMyAdmin\\\\SqlParser\\\\TokensList\\|null given\\.$#" + message: '#^Only numeric types are allowed in \-, \(array\|float\|int\) given on the left side\.$#' + identifier: minus.leftNonNumeric + count: 1 + path: src/Display/Results.php + + - + message: '#^Parameter \#1 \$array of function array_shift expects array, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Display/Results.php + + - + message: '#^Parameter \#1 \$db of method PhpMyAdmin\\ConfigStorage\\Relation\:\:getComments\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Display/Results.php + + - + message: '#^Parameter \#1 \$db of method PhpMyAdmin\\ConfigStorage\\Relation\:\:getDisplayField\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Display/Results.php + + - + message: '#^Parameter \#1 \$haystack of function str_contains expects string, mixed given\.$#' + identifier: argument.type count: 3 path: src/Display/Results.php - - message: "#^Parameter \\#2 \\$rows of static method PhpMyAdmin\\\\Util\\:\\:pageselector\\(\\) expects int, mixed given\\.$#" - count: 1 - path: src/Display/Results.php - - - - message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#" - count: 1 - path: src/Display/Results.php - - - - message: "#^Parameter \\#2 \\$string2 of function strcasecmp expects string, mixed given\\.$#" - count: 1 - path: src/Display/Results.php - - - - message: "#^Parameter \\#2 \\$table of method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:getComments\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Display/Results.php - - - - message: "#^Parameter \\#2 \\$table of method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:getDisplayField\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Display/Results.php - - - - message: "#^Parameter \\#2 \\$table of method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:getDisplayField\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: src/Display/Results.php - - - - message: "#^Parameter \\#3 \\$colOrder of method PhpMyAdmin\\\\Display\\\\Results\\:\\:getRowValues\\(\\) expects array\\|false, mixed given\\.$#" - count: 1 - path: src/Display/Results.php - - - - message: "#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, mixed given\\.$#" - count: 3 - path: src/Display/Results.php - - - - message: "#^Parameter \\#4 \\$database of class PhpMyAdmin\\\\Display\\\\ForeignKeyRelatedTable constructor expects string, mixed given\\.$#" - count: 1 - path: src/Display/Results.php - - - - message: "#^Parameter \\#4 \\$sortExpressionNoDirection of method PhpMyAdmin\\\\Display\\\\Results\\:\\:getTableHeaders\\(\\) expects array\\, array\\ given\\.$#" - count: 1 - path: src/Display/Results.php - - - - message: "#^Parameter \\#5 \\$expressions of class PhpMyAdmin\\\\UniqueCondition constructor expects array\\, array\\ given\\.$#" + message: '#^Parameter \#1 \$offset of method PhpMyAdmin\\Dbal\\ResultInterface\:\:seek\(\) expects int, float\|int given\.$#' + identifier: argument.type count: 2 path: src/Display/Results.php - - message: "#^Parameter \\#5 \\$isFieldTruncated of method PhpMyAdmin\\\\Display\\\\Results\\:\\:addClass\\(\\) expects bool, mixed given\\.$#" + message: '#^Parameter \#1 \$params of static method PhpMyAdmin\\Url\:\:getCommonRaw\(\) expects array\, array\ given\.$#' + identifier: argument.type + count: 2 + path: src/Display/Results.php + + - + message: '#^Parameter \#1 \$sqlQuery of static method PhpMyAdmin\\Core\:\:signSqlQuery\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Display/Results.php - - message: "#^Parameter \\#5 \\$sortDirection of method PhpMyAdmin\\\\Display\\\\Results\\:\\:getSingleAndMultiSortUrls\\(\\) expects array\\, array given\\.$#" + message: '#^Parameter \#1 \$statement of static method PhpMyAdmin\\SqlParser\\Utils\\Query\:\:replaceClause\(\) expects PhpMyAdmin\\SqlParser\\Statement, PhpMyAdmin\\SqlParser\\Statement\|null given\.$#' + identifier: argument.type + count: 2 + path: src/Display/Results.php + + - + message: '#^Parameter \#1 \$table of class PhpMyAdmin\\Display\\ForeignKeyRelatedTable constructor expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Display/Results.php - - message: "#^Parameter \\#6 \\$colVisib of method PhpMyAdmin\\\\Display\\\\Results\\:\\:getRowValues\\(\\) expects array\\|bool\\|string, mixed given\\.$#" + message: '#^Parameter \#1 \$table of class PhpMyAdmin\\Display\\ForeignKeyRelatedTable constructor expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Display/Results.php - - message: "#^Parameter \\#8 \\$colVisib of method PhpMyAdmin\\\\Display\\\\Results\\:\\:getOrderLinkAndSortedHeaderHtml\\(\\) expects array\\|bool, mixed given\\.$#" + message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Display/Results.php + + - + message: '#^Parameter \#1 \$value of static method PhpMyAdmin\\Util\:\:formatNumber\(\) expects float\|int\|string, int\|string\|false given\.$#' + identifier: argument.type count: 1 path: src/Display/Results.php - - message: "#^Parameter \\#9 \\$colVisibElement of method PhpMyAdmin\\\\Display\\\\Results\\:\\:getOrderLinkAndSortedHeaderHtml\\(\\) expects int\\|string\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \$field of class PhpMyAdmin\\Display\\ForeignKeyRelatedTable constructor expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Display/Results.php - - message: "#^Parameter \\$expressions of class PhpMyAdmin\\\\UniqueCondition constructor expects array\\, array\\ given\\.$#" + message: '#^Parameter \#2 \$list of static method PhpMyAdmin\\SqlParser\\Utils\\Query\:\:getClause\(\) expects PhpMyAdmin\\SqlParser\\TokensList, PhpMyAdmin\\SqlParser\\TokensList\|null given\.$#' + identifier: argument.type + count: 2 + path: src/Display/Results.php + + - + message: '#^Parameter \#2 \$list of static method PhpMyAdmin\\SqlParser\\Utils\\Query\:\:replaceClause\(\) expects PhpMyAdmin\\SqlParser\\TokensList, PhpMyAdmin\\SqlParser\\TokensList\|null given\.$#' + identifier: argument.type + count: 3 + path: src/Display/Results.php + + - + message: '#^Parameter \#2 \$rows of static method PhpMyAdmin\\Util\:\:pageselector\(\) expects int, mixed given\.$#' + identifier: argument.type count: 1 path: src/Display/Results.php - - message: "#^Property PhpMyAdmin\\\\FieldMetadata\\:\\:\\$name \\(string\\) does not accept mixed\\.$#" + message: '#^Parameter \#2 \$string of function explode expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Display/Results.php - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" + message: '#^Parameter \#2 \$string2 of function strcasecmp expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Display/Results.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Parameter \#2 \$table of method PhpMyAdmin\\ConfigStorage\\Relation\:\:getComments\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Display/Results.php + + - + message: '#^Parameter \#2 \$table of method PhpMyAdmin\\ConfigStorage\\Relation\:\:getDisplayField\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Display/Results.php + + - + message: '#^Parameter \#2 \$table of method PhpMyAdmin\\ConfigStorage\\Relation\:\:getDisplayField\(\) expects string, string\|null given\.$#' + identifier: argument.type + count: 1 + path: src/Display/Results.php + + - + message: '#^Parameter \#3 \$colOrder of method PhpMyAdmin\\Display\\Results\:\:getRowValues\(\) expects array\\|false, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Display/Results.php + + - + message: '#^Parameter \#3 \$subject of function str_replace expects array\\|string, mixed given\.$#' + identifier: argument.type + count: 3 + path: src/Display/Results.php + + - + message: '#^Parameter \#4 \$database of class PhpMyAdmin\\Display\\ForeignKeyRelatedTable constructor expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Display/Results.php + + - + message: '#^Parameter \#4 \$sortExpressionNoDirection of method PhpMyAdmin\\Display\\Results\:\:getTableHeaders\(\) expects array\, list\ given\.$#' + identifier: argument.type + count: 1 + path: src/Display/Results.php + + - + message: '#^Parameter \#5 \$expressions of class PhpMyAdmin\\UniqueCondition constructor expects array\, array\ given\.$#' + identifier: argument.type + count: 2 + path: src/Display/Results.php + + - + message: '#^Parameter \#5 \$sortDirection of method PhpMyAdmin\\Display\\Results\:\:getSingleAndMultiSortUrls\(\) expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Display/Results.php + + - + message: '#^Parameter \#6 \$colVisib of method PhpMyAdmin\\Display\\Results\:\:getRowValues\(\) expects array\\|bool\|string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Display/Results.php + + - + message: '#^Parameter \#8 \$colVisib of method PhpMyAdmin\\Display\\Results\:\:getOrderLinkAndSortedHeaderHtml\(\) expects array\\|bool, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Display/Results.php + + - + message: '#^Parameter \#9 \$colVisibElement of method PhpMyAdmin\\Display\\Results\:\:getOrderLinkAndSortedHeaderHtml\(\) expects int\|string\|null, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Display/Results.php + + - + message: '#^Parameter \$expressions of class PhpMyAdmin\\UniqueCondition constructor expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Display/Results.php + + - + message: '#^Property PhpMyAdmin\\Display\\Results\:\:\$unlimNumRows \(int\|numeric\-string\|false\) is never assigned false so it can be removed from the property type\.$#' + identifier: property.unusedType + count: 1 + path: src/Display/Results.php + + - + message: '#^Property PhpMyAdmin\\FieldMetadata\:\:\$name \(string\) does not accept mixed\.$#' + identifier: assign.propertyType + count: 1 + path: src/Display/Results.php + + - + message: '#^Short ternary operator is not allowed\. Use null coalesce operator if applicable or consider using long ternary\.$#' + identifier: ternary.shortNotAllowed + count: 1 + path: src/Display/Results.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 4 path: src/Encoding.php - - message: "#^Cannot access offset 0 on mixed\\.$#" + message: '#^Cannot access offset 0 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Encoding.php - - message: "#^Cannot access offset 1 on mixed\\.$#" + message: '#^Cannot access offset 1 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Encoding.php - - message: "#^Cannot access offset 2 on mixed\\.$#" + message: '#^Cannot access offset 2 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Encoding.php - - message: "#^Foreach overwrites \\$engine with its value variable\\.$#" + message: '#^Foreach overwrites \$engine with its value variable\.$#' + identifier: foreach.valueOverwrite count: 1 path: src/Encoding.php - - message: "#^Method PhpMyAdmin\\\\Encoding\\:\\:convertString\\(\\) should return string but returns string\\|false\\.$#" - count: 1 - path: src/Encoding.php - - - - message: "#^Parameter \\#1 \\$directory of function tempnam expects string, string\\|null given\\.$#" - count: 1 - path: src/Encoding.php - - - - message: "#^Parameter \\#1 \\$extension of static method PhpMyAdmin\\\\Core\\:\\:warnMissingExtension\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Encoding.php - - - - message: "#^Parameter \\#1 \\$function of function function_exists expects string, mixed given\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed count: 2 path: src/Encoding.php - - message: "#^Static property PhpMyAdmin\\\\Encoding\\:\\:\\$engine \\(int\\|null\\) does not accept mixed\\.$#" + message: '#^Method PhpMyAdmin\\Encoding\:\:convertString\(\) should return string but returns string\|false\.$#' + identifier: return.type + count: 1 + path: src/Encoding.php + + - + message: '#^Parameter \#1 \$directory of function tempnam expects string, string\|null given\.$#' + identifier: argument.type + count: 1 + path: src/Encoding.php + + - + message: '#^Parameter \#1 \$extension of static method PhpMyAdmin\\Core\:\:warnMissingExtension\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Encoding.php + + - + message: '#^Parameter \#1 \$function of function function_exists expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Encoding.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: '#^Static property PhpMyAdmin\\Encoding\:\:\$engine \(int\|null\) does not accept mixed\.$#' + identifier: assign.propertyType + count: 2 + path: src/Encoding.php + + - + message: '#^Binary operation "\*" between mixed and 100 results in an error\.$#' + identifier: binaryOp.invalid + count: 2 + path: src/Engines/Innodb.php + + - + message: '#^Binary operation "\*" between mixed and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Engines/Innodb.php + + - + message: '#^Binary operation "/" between \(float\|int\) and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 2 + path: src/Engines/Innodb.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 5 path: src/Engines/Innodb.php - - message: "#^Parameter \\#1 \\$value of static method PhpMyAdmin\\\\Util\\:\\:formatNumber\\(\\) expects float\\|int\\|string, mixed given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 2 + path: src/Engines/Innodb.php + + - + message: '#^Parameter \#1 \$value of static method PhpMyAdmin\\Util\:\:formatNumber\(\) expects float\|int\|string, mixed given\.$#' + identifier: argument.type count: 11 path: src/Engines/Innodb.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 3 path: src/Error/Error.php - - message: "#^Cannot access offset 'args' on mixed\\.$#" + message: '#^Binary operation "\." between mixed and ''\('' results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Error/Error.php - - message: "#^Cannot access offset 'class' on mixed\\.$#" + message: '#^Binary operation "\." between mixed and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Error/Error.php - - message: "#^Cannot access offset 'class'\\|'function'\\|'line'\\|'type' on mixed\\.$#" + message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Error/Error.php - - message: "#^Cannot access offset 'file' on mixed\\.$#" + message: '#^Binary operation "\.\=" between non\-falsy\-string and mixed results in an error\.$#' + identifier: assignOp.invalid count: 2 path: src/Error/Error.php - - message: "#^Cannot access offset 'function' on mixed\\.$#" + message: '#^Cannot access offset ''args'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Error/Error.php - - message: "#^Cannot access offset 'line' on mixed\\.$#" + message: '#^Cannot access offset ''class'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Error/Error.php - - message: "#^Cannot access offset 'type' on mixed\\.$#" + message: '#^Cannot access offset ''class''\|''function''\|''line''\|''type'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Error/Error.php - - message: "#^Cannot access offset mixed on mixed\\.$#" - count: 1 - path: src/Error/Error.php - - - - message: "#^Only booleans are allowed in \\|\\|, int\\<0, 18176\\> given on the right side\\.$#" - count: 1 - path: src/Error/Error.php - - - - message: "#^Parameter \\#1 \\$path of static method PhpMyAdmin\\\\Error\\\\Error\\:\\:relPath\\(\\) expects string, mixed given\\.$#" + message: '#^Cannot access offset ''file'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Error/Error.php - - message: "#^Parameter \\#1 \\$step of static method PhpMyAdmin\\\\Error\\\\Error\\:\\:getFunctionCall\\(\\) expects array, mixed given\\.$#" + message: '#^Cannot access offset ''function'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Error/Error.php - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + message: '#^Cannot access offset ''line'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Error/Error.php + + - + message: '#^Cannot access offset ''type'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Error/Error.php + + - + message: '#^Cannot access offset mixed on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Error/Error.php + + - + message: '#^Only booleans are allowed in \|\|, int\<0, 18176\> given on the right side\.$#' + identifier: booleanOr.rightNotBoolean + count: 1 + path: src/Error/Error.php + + - + message: '#^Parameter \#1 \$path of static method PhpMyAdmin\\Error\\Error\:\:relPath\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Error/Error.php - - message: "#^Parameter \\#2 \\$function of static method PhpMyAdmin\\\\Error\\\\Error\\:\\:getArg\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$step of static method PhpMyAdmin\\Error\\Error\:\:getFunctionCall\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Error/Error.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Error/Error.php + + - + message: '#^Parameter \#2 \$function of static method PhpMyAdmin\\Error\\Error\:\:getArg\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Error/Error.php + + - + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Error/ErrorHandler.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 6 path: src/Error/ErrorHandler.php - - message: "#^Cannot access offset \\(int\\|string\\) on mixed\\.$#" + message: '#^Cannot access offset \(int\|string\) on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Error/ErrorHandler.php - - message: "#^Cannot access offset string on mixed\\.$#" + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Error/ErrorHandler.php - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed count: 1 path: src/Error/ErrorHandler.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Error/ErrorHandler.php + + - + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 2 path: src/Error/ErrorReport.php - - message: "#^Cannot access offset 'context' on mixed\\.$#" + message: '#^Cannot access offset ''context'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Error/ErrorReport.php - - message: "#^Cannot access offset 'scriptname' on mixed\\.$#" + message: '#^Cannot access offset ''scriptname'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Error/ErrorReport.php - - message: "#^Cannot access offset 'stack' on mixed\\.$#" + message: '#^Cannot access offset ''stack'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Error/ErrorReport.php - - message: "#^Cannot access offset 'uri' on mixed\\.$#" + message: '#^Cannot access offset ''uri'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Error/ErrorReport.php - - message: "#^Cannot access offset 'url' on mixed\\.$#" + message: '#^Cannot access offset ''url'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: src/Error/ErrorReport.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 2 path: src/Error/ErrorReport.php - - message: "#^Only booleans are allowed in a negated boolean, int given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 1 path: src/Error/ErrorReport.php - - message: "#^Only booleans are allowed in a negated boolean, string given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, int given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Error/ErrorReport.php - - message: "#^Parameter \\#1 \\$stack of method PhpMyAdmin\\\\Error\\\\ErrorReport\\:\\:translateStacktrace\\(\\) expects array, mixed given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, string given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Error/ErrorReport.php - - message: "#^Parameter \\#1 \\$string of function mb_strlen expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$stack of method PhpMyAdmin\\Error\\ErrorReport\:\:translateStacktrace\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Error/ErrorReport.php - - message: "#^Parameter \\#1 \\$string of function mb_substr expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function mb_strlen expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Error/ErrorReport.php - - message: "#^Parameter \\#1 \\$url of method PhpMyAdmin\\\\Error\\\\ErrorReport\\:\\:sanitizeUrl\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function mb_substr expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Error/ErrorReport.php + + - + message: '#^Parameter \#1 \$url of method PhpMyAdmin\\Error\\ErrorReport\:\:sanitizeUrl\(\) expects string, mixed given\.$#' + identifier: argument.type count: 3 path: src/Error/ErrorReport.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 2 path: src/Export/Export.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ - count: 3 - path: src/Export/Export.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" + message: '#^Binary operation "\.\=" between mixed and non\-empty\-string results in an error\.$#' + identifier: assignOp.invalid count: 1 path: src/Export/Export.php - - message: "#^Cannot access offset 'alias' on mixed\\.$#" + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 3 + path: src/Export/Export.php + + - + message: '#^Call to function in_array\(\) requires parameter \#3 to be set\.$#' + identifier: function.strict + count: 1 + path: src/Export/Export.php + + - + message: '#^Cannot access offset ''alias'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 6 path: src/Export/Export.php - - message: "#^Cannot access offset 'columns' on mixed\\.$#" + message: '#^Cannot access offset ''columns'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Export/Export.php - - message: "#^Cannot access offset 'tables' on mixed\\.$#" + message: '#^Cannot access offset ''tables'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Export/Export.php - - message: "#^Cannot access offset mixed on mixed\\.$#" + message: '#^Cannot access offset mixed on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Export/Export.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 2 path: src/Export/Export.php - - message: "#^Casting to string something that's already string\\.$#" + message: '#^Casting to string something that''s already string\.$#' + identifier: cast.useless count: 1 path: src/Export/Export.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 4 path: src/Export/Export.php - - message: "#^Method PhpMyAdmin\\\\Export\\\\Export\\:\\:compress\\(\\) return type has no value type specified in iterable type array\\.$#" - count: 1 - path: src/Export/Export.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|false given\\.$#" - count: 1 - path: src/Export/Export.php - - - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, mixed given\\.$#" - count: 1 - path: src/Export/Export.php - - - - message: "#^Parameter \\#1 \\$stream of function fwrite expects resource, mixed given\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed count: 2 path: src/Export/Export.php - - message: "#^Parameter \\#2 \\$dbAlias of method PhpMyAdmin\\\\Plugins\\\\ExportPlugin\\:\\:exportDBHeader\\(\\) expects string, mixed given\\.$#" + message: '#^Method PhpMyAdmin\\Export\\Export\:\:compress\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: src/Export/Export.php + + - + message: '#^Only booleans are allowed in &&, mixed given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean + count: 1 + path: src/Export/Export.php + + - + message: '#^Only booleans are allowed in a negated boolean, string\|false given\.$#' + identifier: booleanNot.exprNotBoolean + count: 1 + path: src/Export/Export.php + + - + message: '#^Only booleans are allowed in an elseif condition, mixed given\.$#' + identifier: elseif.condNotBoolean + count: 1 + path: src/Export/Export.php + + - + message: '#^Only booleans are allowed in an if condition, mixed given\.$#' + identifier: if.condNotBoolean + count: 6 + path: src/Export/Export.php + + - + message: '#^Only booleans are allowed in \|\|, mixed given on the right side\.$#' + identifier: booleanOr.rightNotBoolean + count: 1 + path: src/Export/Export.php + + - + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Export/Export.php + + - + message: '#^Parameter \#1 \$stream of function fwrite expects resource, mixed given\.$#' + identifier: argument.type count: 2 path: src/Export/Export.php - - message: "#^Parameter \\#2 \\$destCharset of static method PhpMyAdmin\\\\Encoding\\:\\:convertString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$dbAlias of method PhpMyAdmin\\Plugins\\ExportPlugin\:\:exportDBHeader\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Export/Export.php - - message: "#^Parameter \\#2 \\$enc of static method PhpMyAdmin\\\\Encoding\\:\\:kanjiStrConv\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$destCharset of static method PhpMyAdmin\\Encoding\:\:convertString\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Export/Export.php + + - + message: '#^Parameter \#2 \$enc of static method PhpMyAdmin\\Encoding\:\:kanjiStrConv\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Export/Export.php - - message: "#^Parameter \\#3 \\$dbAlias of method PhpMyAdmin\\\\Plugins\\\\ExportPlugin\\:\\:exportDBCreate\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$dbAlias of method PhpMyAdmin\\Plugins\\ExportPlugin\:\:exportDBCreate\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Export/Export.php - - message: "#^Parameter \\#3 \\$kana of static method PhpMyAdmin\\\\Encoding\\:\\:kanjiStrConv\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$kana of static method PhpMyAdmin\\Encoding\:\:kanjiStrConv\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Export/Export.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 3 path: src/Export/Options.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: src/Export/Options.php - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" + message: '#^Call to function in_array\(\) requires parameter \#3 to be set\.$#' + identifier: function.strict count: 1 path: src/Export/Options.php - - message: "#^Cannot access offset 'aliases' on mixed\\.$#" + message: '#^Cannot access offset ''aliases'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Export/Options.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 4 path: src/Export/Options.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 2 path: src/Export/Options.php - - message: "#^Only booleans are allowed in &&, bool\\|int\\<0, max\\>\\|string given on the right side\\.$#" + message: '#^Only booleans are allowed in &&, bool\|int\<0, max\>\|string given on the right side\.$#' + identifier: booleanAnd.rightNotBoolean count: 1 path: src/Export/Options.php - - message: "#^PHPDoc tag @var for variable \\$dbSelect has no value type specified in iterable type array\\.$#" + message: '#^PHPDoc tag @var for variable \$dbSelect has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Export/Options.php - - message: "#^Parameter \\#2 \\$filename of method PhpMyAdmin\\\\Export\\\\Options\\:\\:getFileNameTemplate\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \$filename of method PhpMyAdmin\\Export\\Options\:\:getFileNameTemplate\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Export/Options.php - - message: "#^Parameter \\#1 \\$id of class PhpMyAdmin\\\\Export\\\\Template constructor expects int, mixed given\\.$#" + message: '#^Parameter \#1 \$id of class PhpMyAdmin\\Export\\Template constructor expects int, mixed given\.$#' + identifier: argument.type count: 1 path: src/Export/Template.php - - message: "#^Parameter \\#2 \\$username of class PhpMyAdmin\\\\Export\\\\Template constructor expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$username of class PhpMyAdmin\\Export\\Template constructor expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Export/Template.php - - message: "#^Parameter \\#3 \\$exportType of class PhpMyAdmin\\\\Export\\\\Template constructor expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$exportType of class PhpMyAdmin\\Export\\Template constructor expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Export/Template.php - - message: "#^Parameter \\#4 \\$name of class PhpMyAdmin\\\\Export\\\\Template constructor expects string, mixed given\\.$#" + message: '#^Parameter \#4 \$name of class PhpMyAdmin\\Export\\Template constructor expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Export/Template.php - - message: "#^Parameter \\#5 \\$data of class PhpMyAdmin\\\\Export\\\\Template constructor expects string, mixed given\\.$#" + message: '#^Parameter \#5 \$data of class PhpMyAdmin\\Export\\Template constructor expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Export/Template.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Favorites/RecentFavoriteTables.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 3 path: src/Favorites/RecentFavoriteTables.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Favorites/RecentFavoriteTables.php - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be true\\.$#" + message: '#^Call to function in_array\(\) requires parameter \#3 to be true\.$#' + identifier: function.strict count: 1 path: src/Favorites/RecentFavoriteTables.php - - message: "#^Cannot access an offset on mixed\\.$#" + message: '#^Cannot access an offset on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Favorites/RecentFavoriteTables.php - - message: "#^Cannot access offset 'favoriteTables'\\|'recentTables' on mixed\\.$#" + message: '#^Cannot access offset ''favoriteTables''\|''recentTables'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 5 path: src/Favorites/RecentFavoriteTables.php - - message: "#^Cannot access offset 'favorites_synced' on mixed\\.$#" + message: '#^Cannot access offset ''favorites_synced'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Favorites/RecentFavoriteTables.php - - message: "#^Cannot access offset int\\<0, max\\> on mixed\\.$#" + message: '#^Cannot access offset int\<0, max\> on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 5 path: src/Favorites/RecentFavoriteTables.php - - message: "#^Cannot access offset int\\<1, max\\> on mixed\\.$#" + message: '#^Cannot access offset int\<1, max\> on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Favorites/RecentFavoriteTables.php - - message: "#^Method PhpMyAdmin\\\\Favorites\\\\RecentFavoriteTables\\:\\:getFromDb\\(\\) should return array\\ but returns mixed\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed count: 1 path: src/Favorites/RecentFavoriteTables.php - - message: "#^Parameter \\#1 \\$array of static method PhpMyAdmin\\\\Favorites\\\\RecentFavoriteTable\\:\\:fromArray\\(\\) expects array\\{db\\: string, table\\: string\\}, mixed given\\.$#" + message: '#^Method PhpMyAdmin\\Favorites\\RecentFavoriteTables\:\:getFromDb\(\) should return array\ but returns mixed\.$#' + identifier: return.type count: 1 path: src/Favorites/RecentFavoriteTables.php - - message: "#^Parameter \\#1 \\$str of method PhpMyAdmin\\\\DatabaseInterface\\:\\:quoteString\\(\\) expects string, string\\|false given\\.$#" + message: '#^Parameter \#1 \$array of static method PhpMyAdmin\\Favorites\\RecentFavoriteTable\:\:fromArray\(\) expects array\{db\: string, table\: string\}, mixed given\.$#' + identifier: argument.type count: 1 path: src/Favorites/RecentFavoriteTables.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Parameter \#1 \$str of method PhpMyAdmin\\DatabaseInterface\:\:quoteString\(\) expects string, string\|false given\.$#' + identifier: argument.type + count: 1 + path: src/Favorites/RecentFavoriteTables.php + + - + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 1 + path: src/FieldMetadata.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/File.php - - message: "#^Cannot access offset 'multi_edit' on mixed\\.$#" + message: '#^Cannot access offset ''multi_edit'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 7 path: src/File.php - - message: "#^Cannot access offset 'name' on mixed\\.$#" + message: '#^Cannot access offset ''name'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/File.php - - message: "#^Cannot access offset string on mixed\\.$#" + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 13 path: src/File.php - - message: "#^Cannot access offset string\\|null on mixed\\.$#" + message: '#^Cannot access offset string\|null on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/File.php - - message: "#^Class PhpMyAdmin\\\\File has an uninitialized property \\$zipExtension\\. Give it default value or assign it in the constructor\\.$#" + message: '#^Class PhpMyAdmin\\File has an uninitialized property \$zipExtension\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized count: 1 path: src/File.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 2 path: src/File.php - - message: "#^Method PhpMyAdmin\\\\File\\:\\:getCompression\\(\\) should return string but returns string\\|false\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 1 path: src/File.php - - message: "#^Only booleans are allowed in &&, bool\\|string given on the left side\\.$#" + message: '#^Method PhpMyAdmin\\File\:\:getCompression\(\) should return string but returns string\|false\.$#' + identifier: return.type count: 1 path: src/File.php - - message: "#^Only booleans are allowed in a negated boolean, resource\\|false given\\.$#" + message: '#^Only booleans are allowed in &&, bool\|string given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 1 path: src/File.php - - message: "#^Parameter \\#1 \\$file of function bzopen expects resource\\|string, string\\|null given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, resource\|false given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/File.php - - message: "#^Parameter \\#1 \\$file of method PhpMyAdmin\\\\File\\:\\:fetchUploadedFromTblChangeRequestMultiple\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#1 \$file of function bzopen expects resource\|string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/File.php - - message: "#^Parameter \\#1 \\$file of method PhpMyAdmin\\\\ZipExtension\\:\\:getContents\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$file of method PhpMyAdmin\\File\:\:fetchUploadedFromTblChangeRequestMultiple\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/File.php - - message: "#^Parameter \\#1 \\$name of method PhpMyAdmin\\\\File\\:\\:setUploadedFile\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$file of method PhpMyAdmin\\ZipExtension\:\:getContents\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/File.php - - message: "#^Parameter \\#2 \\$length of function fread expects int\\<1, max\\>, int given\\.$#" + message: '#^Parameter \#1 \$name of method PhpMyAdmin\\File\:\:setUploadedFile\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/File.php - - message: "#^Property PhpMyAdmin\\\\File\\:\\:\\$content \\(string\\|null\\) does not accept string\\|false\\.$#" + message: '#^Parameter \#2 \$length of function fread expects int\<1, max\>, int given\.$#' + identifier: argument.type count: 1 path: src/File.php - - message: "#^Property PhpMyAdmin\\\\File\\:\\:\\$handle \\(resource\\|null\\) does not accept resource\\|false\\.$#" + message: '#^Property PhpMyAdmin\\File\:\:\$content \(string\|null\) does not accept string\|false\.$#' + identifier: assign.propertyType + count: 1 + path: src/File.php + + - + message: '#^Property PhpMyAdmin\\File\:\:\$handle \(resource\|null\) does not accept resource\|false\.$#' + identifier: assign.propertyType count: 4 path: src/File.php - - message: "#^Switch condition type \\(string\\) does not match case condition false \\(false\\)\\.$#" + message: '#^Switch condition type \(string\) does not match case condition false \(false\)\.$#' + identifier: switch.type count: 1 path: src/File.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/FileListing.php - - message: "#^Cannot access an offset on mixed\\.$#" + message: '#^Cannot access an offset on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/FlashMessenger.php - - message: "#^Method PhpMyAdmin\\\\FlashMessenger\\:\\:getCurrentMessages\\(\\) should return array\\ but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\FlashMessenger\:\:getCurrentMessages\(\) should return list\ but returns mixed\.$#' + identifier: return.type count: 1 path: src/FlashMessenger.php - - message: "#^Property PhpMyAdmin\\\\FlashMessenger\\:\\:\\$previousMessages \\(array\\\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\FlashMessenger\:\:\$previousMessages \(list\\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/FlashMessenger.php - - message: "#^Cannot access offset 'chars' on mixed\\.$#" - count: 2 - path: src/Font.php - - - - message: "#^Cannot access offset 'modifier' on mixed\\.$#" - count: 2 - path: src/Font.php - - - - message: "#^Parameter \\#1 \\$search of function str_replace expects array\\|string, mixed given\\.$#" + message: '#^Binary operation "\*" between int and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Font.php - - message: """ - #^Access to deprecated static property \\$route of class PhpMyAdmin\\\\Routing\\\\Routing\\: - Use \\{@see ServerRequest\\:\\:getRoute\\(\\)\\} instead\\.$# - """ + message: '#^Cannot access offset ''chars'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 2 + path: src/Font.php + + - + message: '#^Cannot access offset ''modifier'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 2 + path: src/Font.php + + - + message: '#^Parameter \#1 \$search of function str_replace expects array\\|string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Font.php + + - + message: ''' + #^Access to deprecated static property \$route of class PhpMyAdmin\\Routing\\Routing\: + Use \{@see ServerRequest\:\:getRoute\(\)\} instead\.$# + ''' + identifier: staticProperty.deprecated count: 1 path: src/Footer.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 2 path: src/Footer.php - - message: "#^Method PhpMyAdmin\\\\Footer\\:\\:getGitRevisionInfo\\(\\) should return array\\ but returns array\\.$#" + message: '#^Method PhpMyAdmin\\Footer\:\:getGitRevisionInfo\(\) should return array\ but returns array\\.$#' + identifier: return.type count: 1 path: src/Footer.php - - message: "#^Only booleans are allowed in &&, array\\|object given on the right side\\.$#" + message: '#^Only booleans are allowed in &&, array\\|object given on the right side\.$#' + identifier: booleanAnd.rightNotBoolean count: 1 path: src/Footer.php - - message: "#^Parameter \\#1 \\$params of static method PhpMyAdmin\\\\Url\\:\\:getCommonRaw\\(\\) expects array\\, array\\ given\\.$#" + message: '#^Parameter \#1 \$params of static method PhpMyAdmin\\Url\:\:getCommonRaw\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: src/Footer.php - - message: "#^Only numeric types are allowed in \\+, int\\<0, max\\>\\|false given on the left side\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 1 + path: src/Gis/Ds/Point.php + + - + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 2 + path: src/Gis/Ds/Point.php + + - + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 2 + path: src/Gis/Ds/Polygon.php + + - + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 2 + path: src/Gis/GisGeometry.php + + - + message: '#^Only numeric types are allowed in \+, int\<0, max\>\|false given on the left side\.$#' + identifier: plus.leftNonNumeric count: 1 path: src/Gis/GisGeometry.php - - message: "#^Only numeric types are allowed in \\-, int\\<0, max\\>\\|false given on the left side\\.$#" + message: '#^Only numeric types are allowed in \-, int\<0, max\>\|false given on the left side\.$#' + identifier: minus.leftNonNumeric count: 1 path: src/Gis/GisGeometry.php - - message: "#^Cannot access offset 'data_length' on mixed\\.$#" + message: '#^Cannot access offset ''data_length'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Gis/GisGeometryCollection.php - - message: "#^Cannot access offset 'gis_type' on mixed\\.$#" + message: '#^Cannot access offset ''gis_type'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Gis/GisGeometryCollection.php - - message: "#^Parameter \\#1 \\$type of static method PhpMyAdmin\\\\Gis\\\\GisFactory\\:\\:fromType\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$type of static method PhpMyAdmin\\Gis\\GisFactory\:\:fromType\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Gis/GisGeometryCollection.php - - message: "#^Cannot access offset 'LINESTRING' on mixed\\.$#" + message: '#^Cannot access offset ''LINESTRING'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Gis/GisLineString.php - - message: "#^Cannot access offset 'data_length' on mixed\\.$#" + message: '#^Cannot access offset ''data_length'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Gis/GisLineString.php - - message: "#^Cannot access offset int\\<0, max\\> on mixed\\.$#" + message: '#^Cannot access offset int\<0, max\> on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Gis/GisLineString.php - - message: "#^Parameter \\#1 \\$point of method PhpMyAdmin\\\\Gis\\\\GisGeometry\\:\\:getWktCoord\\(\\) expects array\\{x\\: float\\|int\\|string, y\\: float\\|int\\|string\\}\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$point of method PhpMyAdmin\\Gis\\GisGeometry\:\:getWktCoord\(\) expects array\{x\: float\|int\|string, y\: float\|int\|string\}\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Gis/GisLineString.php - - message: "#^Parameter \\#5 \\$color of method PhpMyAdmin\\\\Image\\\\ImageWrapper\\:\\:line\\(\\) expects int, int\\|false given\\.$#" + message: '#^Parameter \#5 \$color of method PhpMyAdmin\\Image\\ImageWrapper\:\:line\(\) expects int, int\|false given\.$#' + identifier: argument.type count: 1 path: src/Gis/GisLineString.php - - message: "#^Parameter \\#5 \\$color of method PhpMyAdmin\\\\Image\\\\ImageWrapper\\:\\:string\\(\\) expects int, int\\|false given\\.$#" + message: '#^Parameter \#5 \$color of method PhpMyAdmin\\Image\\ImageWrapper\:\:string\(\) expects int, int\|false given\.$#' + identifier: argument.type count: 1 path: src/Gis/GisLineString.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Gis/GisMultiLineString.php - - message: "#^Cannot access offset 'MULTILINESTRING' on mixed\\.$#" + message: '#^Binary operation "\." between mixed and '' '' results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Gis/GisMultiLineString.php - - message: "#^Cannot access offset 'data_length' on mixed\\.$#" + message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Gis/GisMultiLineString.php + + - + message: '#^Cannot access offset ''MULTILINESTRING'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Gis/GisMultiLineString.php + + - + message: '#^Cannot access offset ''data_length'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Gis/GisMultiLineString.php - - message: "#^Cannot access offset 'points' on mixed\\.$#" + message: '#^Cannot access offset ''points'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Gis/GisMultiLineString.php - - message: "#^Cannot access offset 'x' on mixed\\.$#" + message: '#^Cannot access offset ''x'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Gis/GisMultiLineString.php - - message: "#^Cannot access offset 'y' on mixed\\.$#" + message: '#^Cannot access offset ''y'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Gis/GisMultiLineString.php - - message: "#^Cannot access offset int\\<0, max\\> on mixed\\.$#" + message: '#^Cannot access offset int\<0, max\> on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: src/Gis/GisMultiLineString.php - - message: "#^Cannot access offset int\\<0, max\\> on non\\-empty\\-array\\<'data_length'\\|int\\<0, max\\>, array\\{x\\: float, y\\: float\\}\\|int\\<0, max\\>\\>\\|int\\<1, max\\>\\.$#" + message: '#^Cannot access offset int\<0, max\> on non\-empty\-array\<''data_length''\|int\<0, max\>, array\{x\: float, y\: float\}\|int\<0, max\>\>\|int\<1, max\>\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Gis/GisMultiLineString.php - - message: "#^Parameter \\#1 \\$point of method PhpMyAdmin\\\\Gis\\\\GisGeometry\\:\\:getWktCoord\\(\\) expects array\\{x\\: float\\|int\\|string, y\\: float\\|int\\|string\\}\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$point of method PhpMyAdmin\\Gis\\GisGeometry\:\:getWktCoord\(\) expects array\{x\: float\|int\|string, y\: float\|int\|string\}\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Gis/GisMultiLineString.php - - message: "#^Parameter \\#5 \\$color of method PhpMyAdmin\\\\Image\\\\ImageWrapper\\:\\:line\\(\\) expects int, int\\|false given\\.$#" + message: '#^Parameter \#5 \$color of method PhpMyAdmin\\Image\\ImageWrapper\:\:line\(\) expects int, int\|false given\.$#' + identifier: argument.type count: 1 path: src/Gis/GisMultiLineString.php - - message: "#^Parameter \\#5 \\$color of method PhpMyAdmin\\\\Image\\\\ImageWrapper\\:\\:string\\(\\) expects int, int\\|false given\\.$#" + message: '#^Parameter \#5 \$color of method PhpMyAdmin\\Image\\ImageWrapper\:\:string\(\) expects int, int\|false given\.$#' + identifier: argument.type count: 1 path: src/Gis/GisMultiLineString.php - - message: "#^Cannot access offset 'MULTIPOINT' on mixed\\.$#" + message: '#^Binary operation "\." between mixed and '' '' results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Gis/GisMultiPoint.php - - message: "#^Cannot access offset 'data_length' on mixed\\.$#" + message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Gis/GisMultiPoint.php - - message: "#^Cannot access offset 'x' on mixed\\.$#" + message: '#^Cannot access offset ''MULTIPOINT'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Gis/GisMultiPoint.php - - message: "#^Cannot access offset 'y' on mixed\\.$#" + message: '#^Cannot access offset ''data_length'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Gis/GisMultiPoint.php - - message: "#^Cannot access offset int\\<0, max\\> on mixed\\.$#" + message: '#^Cannot access offset ''x'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Gis/GisMultiPoint.php + + - + message: '#^Cannot access offset ''y'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Gis/GisMultiPoint.php + + - + message: '#^Cannot access offset int\<0, max\> on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Gis/GisMultiPoint.php - - message: "#^Parameter \\#1 \\$point of method PhpMyAdmin\\\\Gis\\\\GisGeometry\\:\\:getWktCoord\\(\\) expects array\\{x\\: float\\|int\\|string, y\\: float\\|int\\|string\\}\\|null, mixed given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 8 + path: src/Gis/GisMultiPoint.php + + - + message: '#^Parameter \#1 \$point of method PhpMyAdmin\\Gis\\GisGeometry\:\:getWktCoord\(\) expects array\{x\: float\|int\|string, y\: float\|int\|string\}\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Gis/GisMultiPoint.php - - message: "#^Parameter \\#5 \\$color of method PhpMyAdmin\\\\Image\\\\ImageWrapper\\:\\:string\\(\\) expects int, int\\|false given\\.$#" + message: '#^Parameter \#5 \$color of method PhpMyAdmin\\Image\\ImageWrapper\:\:string\(\) expects int, int\|false given\.$#' + identifier: argument.type count: 1 path: src/Gis/GisMultiPoint.php - - message: "#^Parameter \\#7 \\$color of method PhpMyAdmin\\\\Image\\\\ImageWrapper\\:\\:arc\\(\\) expects int, int\\|false given\\.$#" + message: '#^Parameter \#7 \$color of method PhpMyAdmin\\Image\\ImageWrapper\:\:arc\(\) expects int, int\|false given\.$#' + identifier: argument.type count: 1 path: src/Gis/GisMultiPoint.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 7 path: src/Gis/GisMultiPolygon.php - - message: "#^Cannot access an offset on mixed\\.$#" + message: '#^Binary operation "\." between mixed and '' '' results in an error\.$#' + identifier: binaryOp.invalid + count: 2 + path: src/Gis/GisMultiPolygon.php + + - + message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 2 + path: src/Gis/GisMultiPolygon.php + + - + message: '#^Cannot access an offset on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Gis/GisMultiPolygon.php - - message: "#^Cannot access offset 'MULTIPOLYGON' on mixed\\.$#" + message: '#^Cannot access offset ''MULTIPOLYGON'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Gis/GisMultiPolygon.php - - message: "#^Cannot access offset 'data_length' on mixed\\.$#" + message: '#^Cannot access offset ''data_length'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Gis/GisMultiPolygon.php - - message: "#^Cannot access offset 'inner' on mixed\\.$#" + message: '#^Cannot access offset ''inner'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: src/Gis/GisMultiPolygon.php - - message: "#^Cannot access offset 'isOuter' on mixed\\.$#" + message: '#^Cannot access offset ''isOuter'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: src/Gis/GisMultiPolygon.php - - message: "#^Cannot access offset 'pointOnSurface' on mixed\\.$#" + message: '#^Cannot access offset ''pointOnSurface'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Gis/GisMultiPolygon.php - - message: "#^Cannot access offset 'points' on mixed\\.$#" + message: '#^Cannot access offset ''points'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Gis/GisMultiPolygon.php - - message: "#^Cannot access offset 'x' on mixed\\.$#" + message: '#^Cannot access offset ''x'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Gis/GisMultiPolygon.php - - message: "#^Cannot access offset 'y' on mixed\\.$#" + message: '#^Cannot access offset ''y'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Gis/GisMultiPolygon.php - - message: "#^Cannot access offset int on non\\-empty\\-array\\<'data_length'\\|int, array\\{data_length\\: int\\<0, max\\>, 0\\?\\: array\\{x\\: float, y\\: float\\}\\}\\|int\\<1, max\\>\\>\\|int\\<1, max\\>\\.$#" - count: 1 - path: src/Gis/GisMultiPolygon.php - - - - message: "#^Cannot access offset int\\<0, max\\> on mixed\\.$#" + message: '#^Cannot access offset int\<0, max\> on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 6 path: src/Gis/GisMultiPolygon.php - - message: "#^Cannot access offset int\\<0, max\\> on non\\-empty\\-array\\<'data_length'\\|int\\<0, max\\>, array\\{x\\: float, y\\: float\\}\\|int\\<0, max\\>\\>\\|int\\<1, max\\>\\.$#" + message: '#^Cannot access offset int\<0, max\> on non\-empty\-array\<''data_length''\|int\<0, max\>, array\{data_length\: int\<0, max\>, 0\?\: array\{x\: float, y\: float\}\}\|int\<1, max\>\>\|int\<1, max\>\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Gis/GisMultiPolygon.php - - message: "#^Cannot access offset mixed on mixed\\.$#" + message: '#^Cannot access offset int\<0, max\> on non\-empty\-array\<''data_length''\|int\<0, max\>, array\{x\: float, y\: float\}\|int\<0, max\>\>\|int\<1, max\>\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Gis/GisMultiPolygon.php + + - + message: '#^Cannot access offset mixed on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 6 path: src/Gis/GisMultiPolygon.php - - message: "#^Cannot call method isInsidePolygon\\(\\) on mixed\\.$#" + message: '#^Cannot call method isInsidePolygon\(\) on mixed\.$#' + identifier: method.nonObject count: 1 path: src/Gis/GisMultiPolygon.php - - message: "#^Parameter \\#1 \\$point of method PhpMyAdmin\\\\Gis\\\\GisGeometry\\:\\:getWktCoord\\(\\) expects array\\{x\\: float\\|int\\|string, y\\: float\\|int\\|string\\}\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$point of method PhpMyAdmin\\Gis\\GisGeometry\:\:getWktCoord\(\) expects array\{x\: float\|int\|string, y\: float\|int\|string\}\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Gis/GisMultiPolygon.php - - message: "#^Parameter \\#1 \\$points of method PhpMyAdmin\\\\Image\\\\ImageWrapper\\:\\:filledPolygon\\(\\) expects array\\, array\\ given\\.$#" + message: '#^Parameter \#1 \$points of method PhpMyAdmin\\Image\\ImageWrapper\:\:filledPolygon\(\) expects list\, array\ given\.$#' + identifier: argument.type count: 1 path: src/Gis/GisMultiPolygon.php - - message: "#^Parameter \\#1 \\$points of static method PhpMyAdmin\\\\Gis\\\\Ds\\\\Polygon\\:\\:fromXYArray\\(\\) expects non\\-empty\\-array\\, mixed given\\.$#" + message: '#^Parameter \#1 \$points of static method PhpMyAdmin\\Gis\\Ds\\Polygon\:\:fromXYArray\(\) expects non\-empty\-list\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Gis/GisMultiPolygon.php - - message: "#^Parameter \\#2 \\$color of method PhpMyAdmin\\\\Image\\\\ImageWrapper\\:\\:filledPolygon\\(\\) expects int, int\\|false given\\.$#" + message: '#^Parameter \#2 \$color of method PhpMyAdmin\\Image\\ImageWrapper\:\:filledPolygon\(\) expects int, int\|false given\.$#' + identifier: argument.type count: 1 path: src/Gis/GisMultiPolygon.php - - message: "#^Parameter \\#5 \\$color of method PhpMyAdmin\\\\Image\\\\ImageWrapper\\:\\:string\\(\\) expects int, int\\|false given\\.$#" + message: '#^Parameter \#5 \$color of method PhpMyAdmin\\Image\\ImageWrapper\:\:string\(\) expects int, int\|false given\.$#' + identifier: argument.type count: 1 path: src/Gis/GisMultiPolygon.php - - message: "#^Cannot access offset 'POINT' on mixed\\.$#" + message: '#^Binary operation "\." between ''POINT\('' and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Gis/GisPoint.php - - message: "#^Parameter \\#1 \\$point of method PhpMyAdmin\\\\Gis\\\\GisGeometry\\:\\:getWktCoord\\(\\) expects array\\{x\\: float\\|int\\|string, y\\: float\\|int\\|string\\}\\|null, mixed given\\.$#" + message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Gis/GisPoint.php - - message: "#^Parameter \\#5 \\$color of method PhpMyAdmin\\\\Image\\\\ImageWrapper\\:\\:string\\(\\) expects int, int\\|false given\\.$#" + message: '#^Cannot access offset ''POINT'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Gis/GisPoint.php - - message: "#^Parameter \\#7 \\$color of method PhpMyAdmin\\\\Image\\\\ImageWrapper\\:\\:arc\\(\\) expects int, int\\|false given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 4 + path: src/Gis/GisPoint.php + + - + message: '#^Parameter \#1 \$point of method PhpMyAdmin\\Gis\\GisGeometry\:\:getWktCoord\(\) expects array\{x\: float\|int\|string, y\: float\|int\|string\}\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Gis/GisPoint.php - - message: "#^Cannot access offset 'POLYGON' on mixed\\.$#" + message: '#^Parameter \#5 \$color of method PhpMyAdmin\\Image\\ImageWrapper\:\:string\(\) expects int, int\|false given\.$#' + identifier: argument.type + count: 1 + path: src/Gis/GisPoint.php + + - + message: '#^Parameter \#7 \$color of method PhpMyAdmin\\Image\\ImageWrapper\:\:arc\(\) expects int, int\|false given\.$#' + identifier: argument.type + count: 1 + path: src/Gis/GisPoint.php + + - + message: '#^Cannot access offset ''POLYGON'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Gis/GisPolygon.php - - message: "#^Cannot access offset 'data_length' on mixed\\.$#" + message: '#^Cannot access offset ''data_length'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Gis/GisPolygon.php - - message: "#^Cannot access offset int\\<0, max\\> on mixed\\.$#" + message: '#^Cannot access offset int\<0, max\> on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Gis/GisPolygon.php - - message: "#^Cannot access offset int\\<0, max\\> on non\\-empty\\-array\\<'data_length'\\|int\\<0, max\\>, array\\{x\\: float, y\\: float\\}\\|int\\<0, max\\>\\>\\|int\\<1, max\\>\\.$#" + message: '#^Cannot access offset int\<0, max\> on non\-empty\-array\<''data_length''\|int\<0, max\>, array\{x\: float, y\: float\}\|int\<0, max\>\>\|int\<1, max\>\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Gis/GisPolygon.php - - message: "#^Parameter \\#1 \\$point of method PhpMyAdmin\\\\Gis\\\\GisGeometry\\:\\:getWktCoord\\(\\) expects array\\{x\\: float\\|int\\|string, y\\: float\\|int\\|string\\}\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$point of method PhpMyAdmin\\Gis\\GisGeometry\:\:getWktCoord\(\) expects array\{x\: float\|int\|string, y\: float\|int\|string\}\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Gis/GisPolygon.php - - message: "#^Parameter \\#1 \\$points of method PhpMyAdmin\\\\Image\\\\ImageWrapper\\:\\:filledPolygon\\(\\) expects array\\, array\\ given\\.$#" + message: '#^Parameter \#1 \$points of method PhpMyAdmin\\Image\\ImageWrapper\:\:filledPolygon\(\) expects list\, array\ given\.$#' + identifier: argument.type count: 1 path: src/Gis/GisPolygon.php - - message: "#^Parameter \\#2 \\$color of method PhpMyAdmin\\\\Image\\\\ImageWrapper\\:\\:filledPolygon\\(\\) expects int, int\\|false given\\.$#" + message: '#^Parameter \#2 \$color of method PhpMyAdmin\\Image\\ImageWrapper\:\:filledPolygon\(\) expects int, int\|false given\.$#' + identifier: argument.type count: 1 path: src/Gis/GisPolygon.php - - message: "#^Parameter \\#5 \\$color of method PhpMyAdmin\\\\Image\\\\ImageWrapper\\:\\:string\\(\\) expects int, int\\|false given\\.$#" + message: '#^Parameter \#5 \$color of method PhpMyAdmin\\Image\\ImageWrapper\:\:string\(\) expects int, int\|false given\.$#' + identifier: argument.type count: 1 path: src/Gis/GisPolygon.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Gis/GisVisualization.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: src/Gis/GisVisualization.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 1 path: src/Gis/GisVisualization.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 1 path: src/Gis/GisVisualization.php - - message: "#^Cannot access offset 1 on array\\|false\\.$#" - count: 2 - path: src/Git.php + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 1 + path: src/Gis/GisVisualization.php - - message: "#^Cannot access offset 256 on array\\|false\\.$#" + message: '#^Binary operation "\*" between 24 and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Git.php - - message: "#^Cannot access offset int on array\\|false\\.$#" + message: '#^Binary operation "\*" between mixed and 20 results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Git.php - - message: "#^Cannot access offset int\\\\|int\\<1, max\\> on array\\|false\\.$#" + message: '#^Binary operation "\*" between mixed and 4 results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Git.php - - message: "#^Cannot access property \\$date on mixed\\.$#" + message: '#^Cannot access offset 1 on array\|false\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Git.php - - message: "#^Cannot access property \\$email on mixed\\.$#" + message: '#^Cannot access offset 256 on array\|false\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Git.php + + - + message: '#^Cannot access offset int on array\|false\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Git.php + + - + message: '#^Cannot access offset int\\|int\<1, max\> on array\|false\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Git.php + + - + message: '#^Cannot access property \$date on mixed\.$#' + identifier: property.nonObject count: 2 path: src/Git.php - - message: "#^Cannot access property \\$name on mixed\\.$#" + message: '#^Cannot access property \$email on mixed\.$#' + identifier: property.nonObject count: 2 path: src/Git.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot access property \$name on mixed\.$#' + identifier: property.nonObject + count: 2 + path: src/Git.php + + - + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 6 path: src/Git.php - - message: "#^Method PhpMyAdmin\\\\Git\\:\\:checkGitRevision\\(\\) should return array\\{hash\\: string, branch\\: string\\|false, message\\: string, author\\: array\\{name\\: string, email\\: string, date\\: string\\}, committer\\: array\\{name\\: string, email\\: string, date\\: string\\}, is_remote_commit\\: bool, is_remote_branch\\: bool\\}\\|null but returns array\\{hash\\: string, branch\\: string\\|false, message\\: string, author\\: array\\{name\\: string, email\\: string, date\\: string\\}, committer\\: array\\{name\\: string, email\\: string, date\\: string\\}, is_remote_commit\\: mixed, is_remote_branch\\: bool\\}\\.$#" + message: '#^Cannot use \+\+ on mixed\.$#' + identifier: postInc.type count: 1 path: src/Git.php - - message: "#^Method PhpMyAdmin\\\\Git\\:\\:getPackOffset\\(\\) should return int\\|null but returns mixed\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 3 + path: src/Git.php + + - + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 1 path: src/Git.php - - message: "#^Method PhpMyAdmin\\\\Git\\:\\:isRemoteCommit\\(\\) should return stdClass\\|null but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\Git\:\:getPackOffset\(\) should return int\|null but returns mixed\.$#' + identifier: return.type count: 1 path: src/Git.php - - message: "#^Method PhpMyAdmin\\\\Git\\:\\:unPackGz\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method PhpMyAdmin\\Git\:\:isRemoteCommit\(\) should return stdClass\|null but returns mixed\.$#' + identifier: return.type count: 1 path: src/Git.php - - message: "#^Offset 1 does not exist on array\\{0\\?\\: string, 1\\?\\: non\\-empty\\-string, 2\\?\\: non\\-empty\\-string, 3\\?\\: numeric\\-string, 4\\?\\: non\\-falsy\\-string\\}\\.$#" + message: '#^Method PhpMyAdmin\\Git\:\:unPackGz\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Git.php - - message: "#^Offset 2 does not exist on array\\{0\\?\\: string, 1\\?\\: non\\-empty\\-string, 2\\?\\: non\\-empty\\-string, 3\\?\\: numeric\\-string, 4\\?\\: non\\-falsy\\-string\\}\\.$#" + message: '#^Offset 1 might not exist on array\{0\?\: string, 1\?\: non\-empty\-string, 2\?\: non\-empty\-string, 3\?\: numeric\-string, 4\?\: non\-falsy\-string\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Git.php - - message: "#^Offset 3 does not exist on array\\{0\\?\\: string, 1\\?\\: non\\-empty\\-string, 2\\?\\: non\\-empty\\-string, 3\\?\\: numeric\\-string, 4\\?\\: non\\-falsy\\-string\\}\\.$#" + message: '#^Offset 2 might not exist on array\{0\?\: string, 1\?\: non\-empty\-string, 2\?\: non\-empty\-string, 3\?\: numeric\-string, 4\?\: non\-falsy\-string\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Git.php - - message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" + message: '#^Offset 3 might not exist on array\{0\?\: string, 1\?\: non\-empty\-string, 2\?\: non\-empty\-string, 3\?\: numeric\-string, 4\?\: non\-falsy\-string\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Git.php - - message: "#^Parameter \\#1 \\$commit of method PhpMyAdmin\\\\Git\\:\\:extractDataFormTextBody\\(\\) expects array, mixed given\\.$#" + message: '#^Only booleans are allowed in an if condition, string\|false given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Git.php - - message: "#^Parameter \\#1 \\$gitFolder of method PhpMyAdmin\\\\Git\\:\\:getCommonDirContents\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$commit of method PhpMyAdmin\\Git\:\:extractDataFormTextBody\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Git.php - - message: "#^Parameter \\#1 \\$gitFolder of method PhpMyAdmin\\\\Git\\:\\:getHashFromHeadRef\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$gitFolder of method PhpMyAdmin\\Git\:\:getCommonDirContents\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Git.php - - message: "#^Parameter \\#1 \\$gitFolder of method PhpMyAdmin\\\\Git\\:\\:unPackGz\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$gitFolder of method PhpMyAdmin\\Git\:\:getHashFromHeadRef\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Git.php - - message: "#^Parameter \\#1 \\$string of function trim expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$gitFolder of method PhpMyAdmin\\Git\:\:unPackGz\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Git.php - - message: "#^Parameter \\#2 \\$length of function fread expects int\\<1, max\\>, int given\\.$#" + message: '#^Parameter \#1 \$string of function trim expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Git.php - - message: "#^Parameter \\#2 \\$offset of function substr expects int, \\(float\\|int\\) given\\.$#" + message: '#^Parameter \#2 \$length of function fread expects int\<1, max\>, int given\.$#' + identifier: argument.type + count: 1 + path: src/Git.php + + - + message: '#^Parameter \#2 \$offset of function substr expects int, \(float\|int\) given\.$#' + identifier: argument.type count: 2 path: src/Git.php - - message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$string of function explode expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Git.php - - message: "#^Variable \\$position might not be defined\\.$#" + message: '#^Parameter &\$gitLocation by\-ref type of method PhpMyAdmin\\Git\:\:isGitRevision\(\) expects string\|null, mixed given\.$#' + identifier: parameterByRef.type count: 1 path: src/Git.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: '#^Variable \$position might not be defined\.$#' + identifier: variable.undefined + count: 1 + path: src/Git.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 3 path: src/Header.php - - message: "#^Cannot access offset 'pftext' on mixed\\.$#" + message: '#^Cannot access offset ''pftext'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Header.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 7 path: src/Header.php - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Header.php - - message: "#^Parameter \\#1 \\$message of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getMessage\\(\\) expects PhpMyAdmin\\\\Message\\|string, mixed given\\.$#" + message: '#^Parameter \#1 \$message of static method PhpMyAdmin\\Html\\Generator\:\:getMessage\(\) expects PhpMyAdmin\\Message\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Header.php - - message: "#^Parameter \\#2 \\$params of method PhpMyAdmin\\\\Scripts\\:\\:addFile\\(\\) expects array\\, array\\ given\\.$#" + message: '#^Parameter \#2 \$params of method PhpMyAdmin\\Scripts\:\:addFile\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: src/Header.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 2 + path: src/Html/Generator.php + + - + message: '#^Binary operation "\.\=" between '''' and mixed results in an error\.$#' + identifier: assignOp.invalid + count: 1 + path: src/Html/Generator.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 8 path: src/Html/Generator.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 5 path: src/Html/Generator.php - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" + message: '#^Call to function in_array\(\) requires parameter \#3 to be set\.$#' + identifier: function.strict count: 1 path: src/Html/Generator.php - - message: "#^Cannot access offset 'go_back_url' on mixed\\.$#" + message: '#^Cannot access offset ''go_back_url'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Html/Generator.php - - message: "#^Cannot access offset 'max_rows' on mixed\\.$#" + message: '#^Cannot access offset ''max_rows'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Html/Generator.php - - message: "#^Cannot access offset 'message' on mixed\\.$#" + message: '#^Cannot access offset ''message'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Html/Generator.php - - message: "#^Cannot access offset 'pos' on mixed\\.$#" + message: '#^Cannot access offset ''pos'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Html/Generator.php - - message: "#^Cannot call method getDisplay\\(\\) on mixed\\.$#" + message: '#^Cannot call method getDisplay\(\) on mixed\.$#' + identifier: method.nonObject count: 1 path: src/Html/Generator.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 5 path: src/Html/Generator.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 2 path: src/Html/Generator.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 14 path: src/Html/Generator.php - - message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 1 path: src/Html/Generator.php - - message: "#^Parameter \\#1 \\$message of method PhpMyAdmin\\\\Message\\:\\:addText\\(\\) expects string, mixed given\\.$#" + message: '#^Only booleans are allowed in an if condition, string\|false given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Html/Generator.php - - message: "#^Parameter \\#1 \\$params of static method PhpMyAdmin\\\\Url\\:\\:getCommon\\(\\) expects array\\, array\\ given\\.$#" + message: '#^Parameter \#1 \$message of method PhpMyAdmin\\Message\:\:addText\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Html/Generator.php + + - + message: '#^Parameter \#1 \$params of static method PhpMyAdmin\\Url\:\:getCommon\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 2 path: src/Html/Generator.php - - message: "#^Parameter \\#1 \\$string of function htmlspecialchars expects string, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#1 \$string of function htmlspecialchars expects string, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Html/Generator.php - - message: "#^Parameter \\#1 \\$string of function trim expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function trim expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Html/Generator.php - - message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \.\.\.\$values of function sprintf expects bool\|float\|int\|string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Html/Generator.php - - message: "#^Parameter \\#3 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + message: '#^Parameter \#3 \.\.\.\$values of function sprintf expects bool\|float\|int\|string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Html/Generator.php - - message: "#^Parameter \\#1 \\$method of method PhpMyAdmin\\\\Http\\\\Factory\\\\ServerRequestFactory\\:\\:createServerRequest\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$method of method PhpMyAdmin\\Http\\Factory\\ServerRequestFactory\:\:createServerRequest\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Http/Factory/ServerRequestFactory.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Http/Middleware/Authentication.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Http/Middleware/Authentication.php - - message: "#^Parameter \\#1 \\$source of method PhpMyAdmin\\\\Config\\:\\:loadAndCheck\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$source of method PhpMyAdmin\\Config\:\:loadAndCheck\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Http/Middleware/ConfigLoading.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Http/Middleware/DatabaseServerVersionChecking.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 1 path: src/Http/Middleware/LanguageAndThemeCookieSaving.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Http/Middleware/ProfilingChecking.php - - message: """ - #^Access to deprecated static property \\$route of class PhpMyAdmin\\\\Routing\\\\Routing\\: - Use \\{@see ServerRequest\\:\\:getRoute\\(\\)\\} instead\\.$# - """ + message: ''' + #^Access to deprecated static property \$route of class PhpMyAdmin\\Routing\\Routing\: + Use \{@see ServerRequest\:\:getRoute\(\)\} instead\.$# + ''' + identifier: staticProperty.deprecated count: 1 path: src/Http/Middleware/RouteParsing.php - - message: "#^Parameter \\#2 \\$value of method PhpMyAdmin\\\\Config\\:\\:setCookie\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$value of method PhpMyAdmin\\Config\:\:setCookie\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Http/Middleware/SetupPageRedirection.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Http/Middleware/StatementHistory.php - - message: "#^Parameter \\#4 \\$sqlquery of method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:setHistory\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#4 \$sqlquery of method PhpMyAdmin\\ConfigStorage\\Relation\:\:setHistory\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Http/Middleware/StatementHistory.php - - message: "#^Parameter \\#1 \\$known_string of function hash_equals expects string, mixed given\\.$#" + message: '#^Only booleans are allowed in &&, mixed given on the right side\.$#' + identifier: booleanAnd.rightNotBoolean + count: 1 + path: src/Http/Middleware/TokenMismatchChecking.php + + - + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Http/Middleware/TokenRequestParamChecking.php - - message: "#^Method PhpMyAdmin\\\\Http\\\\ServerRequest\\:\\:getAttributes\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Parameter \#1 \$known_string of function hash_equals expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Http/Middleware/TokenRequestParamChecking.php + + - + message: '#^Method PhpMyAdmin\\Http\\ServerRequest\:\:getAttributes\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Http/ServerRequest.php - - message: "#^Method PhpMyAdmin\\\\Http\\\\ServerRequest\\:\\:getCookieParams\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method PhpMyAdmin\\Http\\ServerRequest\:\:getCookieParams\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Http/ServerRequest.php - - message: "#^Method PhpMyAdmin\\\\Http\\\\ServerRequest\\:\\:getParsedBody\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method PhpMyAdmin\\Http\\ServerRequest\:\:getParsedBody\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Http/ServerRequest.php - - message: "#^Method PhpMyAdmin\\\\Http\\\\ServerRequest\\:\\:getQueryParams\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method PhpMyAdmin\\Http\\ServerRequest\:\:getQueryParams\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Http/ServerRequest.php - - message: "#^Method PhpMyAdmin\\\\Http\\\\ServerRequest\\:\\:getServerParams\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method PhpMyAdmin\\Http\\ServerRequest\:\:getServerParams\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Http/ServerRequest.php - - message: "#^Method PhpMyAdmin\\\\Http\\\\ServerRequest\\:\\:getUploadedFiles\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method PhpMyAdmin\\Http\\ServerRequest\:\:getUploadedFiles\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Http/ServerRequest.php - - message: "#^Method PhpMyAdmin\\\\Http\\\\ServerRequest\\:\\:withCookieParams\\(\\) has parameter \\$cookies with no value type specified in iterable type array\\.$#" + message: '#^Method PhpMyAdmin\\Http\\ServerRequest\:\:withCookieParams\(\) has parameter \$cookies with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Http/ServerRequest.php - - message: "#^Method PhpMyAdmin\\\\Http\\\\ServerRequest\\:\\:withParsedBody\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" + message: '#^Method PhpMyAdmin\\Http\\ServerRequest\:\:withParsedBody\(\) has parameter \$data with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Http/ServerRequest.php - - message: "#^Method PhpMyAdmin\\\\Http\\\\ServerRequest\\:\\:withQueryParams\\(\\) has parameter \\$query with no value type specified in iterable type array\\.$#" + message: '#^Method PhpMyAdmin\\Http\\ServerRequest\:\:withQueryParams\(\) has parameter \$query with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Http/ServerRequest.php - - message: "#^Method PhpMyAdmin\\\\Http\\\\ServerRequest\\:\\:withUploadedFiles\\(\\) has parameter \\$uploadedFiles with no value type specified in iterable type array\\.$#" + message: '#^Method PhpMyAdmin\\Http\\ServerRequest\:\:withUploadedFiles\(\) has parameter \$uploadedFiles with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Http/ServerRequest.php - - message: "#^Variable property access on object\\.$#" + message: '#^Variable property access on object\.$#' + identifier: property.dynamicName count: 2 path: src/Http/ServerRequest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 1 + path: src/I18n/Language.php + + - + message: '#^Binary operation "\." between mixed and ''/'' results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/I18n/LanguageManager.php - - message: "#^Method PhpMyAdmin\\\\I18n\\\\LanguageManager\\:\\:availableLocales\\(\\) should return array\\ but returns array\\.$#" + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/I18n/LanguageManager.php - - message: "#^Parameter \\#1 \\$directory of function opendir expects string, mixed given\\.$#" + message: '#^Method PhpMyAdmin\\I18n\\LanguageManager\:\:availableLocales\(\) should return array\ but returns array\.$#' + identifier: return.type count: 1 path: src/I18n/LanguageManager.php - - message: "#^Parameter \\#1 \\$filename of function is_dir expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$directory of function opendir expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/I18n/LanguageManager.php - - message: "#^Parameter \\#1 \\$string of function strtolower expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$filename of function is_dir expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/I18n/LanguageManager.php - - message: "#^Parameter \\#2 \\$path of function _bindtextdomain expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function strtolower expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/I18n/LanguageManager.php - - message: "#^Property PhpMyAdmin\\\\I18n\\\\LanguageManager\\:\\:\\$availableLocales \\(array\\\\) does not accept array\\.$#" + message: '#^Parameter \#2 \$path of function _bindtextdomain expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/I18n/LanguageManager.php - - message: "#^Cannot access offset 'handler' on mixed\\.$#" + message: '#^Property PhpMyAdmin\\I18n\\LanguageManager\:\:\$availableLocales \(array\\) does not accept array\.$#' + identifier: assign.propertyType + count: 1 + path: src/I18n/LanguageManager.php + + - + message: '#^Parameter \#1 \$width of function imagecreatetruecolor expects int\<1, max\>, int given\.$#' + identifier: argument.type + count: 1 + path: src/Image/ImageWrapper.php + + - + message: '#^Parameter \#2 \$height of function imagecreatetruecolor expects int\<1, max\>, int given\.$#' + identifier: argument.type + count: 1 + path: src/Image/ImageWrapper.php + + - + message: '#^Parameter \#2 \$red of function imagecolorallocate expects int\<0, 255\>, int given\.$#' + identifier: argument.type + count: 2 + path: src/Image/ImageWrapper.php + + - + message: '#^Parameter \#3 \$green of function imagecolorallocate expects int\<0, 255\>, int given\.$#' + identifier: argument.type + count: 2 + path: src/Image/ImageWrapper.php + + - + message: '#^Parameter \#4 \$blue of function imagecolorallocate expects int\<0, 255\>, int given\.$#' + identifier: argument.type + count: 2 + path: src/Image/ImageWrapper.php + + - + message: '#^Cannot access offset ''handler'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Import/Ajax.php - - message: "#^Cannot call static method getUploadStatus\\(\\) on mixed\\.$#" + message: '#^Cannot call static method getUploadStatus\(\) on mixed\.$#' + identifier: staticMethod.nonObject count: 1 path: src/Import/Ajax.php - - message: "#^Variable static method call on PhpMyAdmin\\\\Import\\\\Ajax\\.$#" + message: '#^Variable static method call on PhpMyAdmin\\Import\\Ajax\.$#' + identifier: staticMethod.dynamicName count: 1 path: src/Import/Ajax.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\.\=" between mixed and non\-falsy\-string results in an error\.$#' + identifier: assignOp.invalid + count: 1 + path: src/Import/Import.php + + - + message: '#^Binary operation "\.\=" between mixed and string results in an error\.$#' + identifier: assignOp.invalid + count: 1 + path: src/Import/Import.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 4 path: src/Import/Import.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 5 path: src/Import/Import.php - - message: "#^Cannot access property \\$precision on int\\|PhpMyAdmin\\\\Import\\\\DecimalSize\\.$#" + message: '#^Cannot access property \$precision on int\|PhpMyAdmin\\Import\\DecimalSize\.$#' + identifier: property.nonObject count: 5 path: src/Import/Import.php - - message: "#^Cannot access property \\$scale on int\\|PhpMyAdmin\\\\Import\\\\DecimalSize\\.$#" + message: '#^Cannot access property \$scale on int\|PhpMyAdmin\\Import\\DecimalSize\.$#' + identifier: property.nonObject count: 5 path: src/Import/Import.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 6 path: src/Import/Import.php - - message: "#^Casting to int something that's already int\\.$#" + message: '#^Casting to int something that''s already int\.$#' + identifier: cast.useless count: 1 path: src/Import/Import.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 2 path: src/Import/Import.php - - message: "#^Foreach overwrites \\$sqlQuery with its value variable\\.$#" + message: '#^Foreach overwrites \$sqlQuery with its value variable\.$#' + identifier: foreach.valueOverwrite count: 1 path: src/Import/Import.php - - message: "#^Method PhpMyAdmin\\\\Import\\\\Import\\:\\:createDatabase\\(\\) should return array\\ but returns mixed\\.$#" - count: 1 - path: src/Import/Import.php - - - - message: "#^Method PhpMyAdmin\\\\Import\\\\Import\\:\\:getNextChunk\\(\\) should return bool\\|string but returns mixed\\.$#" - count: 1 - path: src/Import/Import.php - - - - message: "#^Only booleans are allowed in &&, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given on the left side\\.$#" - count: 1 - path: src/Import/Import.php - - - - message: "#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" - count: 1 - path: src/Import/Import.php - - - - message: "#^Parameter \\#1 \\$precision of static method PhpMyAdmin\\\\Import\\\\DecimalSize\\:\\:fromPrecisionAndScale\\(\\) expects int, int\\|PhpMyAdmin\\\\Import\\\\DecimalSize given\\.$#" - count: 1 - path: src/Import/Import.php - - - - message: "#^Parameter \\#1 \\$separator of function explode expects non\\-empty\\-string, mixed given\\.$#" - count: 1 - path: src/Import/Import.php - - - - message: "#^Parameter \\#1 \\$sql of method PhpMyAdmin\\\\Import\\\\Import\\:\\:runQuery\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: src/Import/Import.php - - - - message: "#^Parameter \\#1 \\$string of function mb_strlen expects string, mixed given\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed count: 2 path: src/Import/Import.php - - message: "#^Parameter \\#1 \\$string of function mb_substr expects string, mixed given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 2 path: src/Import/Import.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Method PhpMyAdmin\\Import\\Import\:\:getNextChunk\(\) should return bool\|string but returns mixed\.$#' + identifier: return.type + count: 1 + path: src/Import/Import.php + + - + message: '#^Only booleans are allowed in &&, PhpMyAdmin\\Dbal\\ResultInterface\|false given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean + count: 1 + path: src/Import/Import.php + + - + message: '#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: booleanNot.exprNotBoolean + count: 1 + path: src/Import/Import.php + + - + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean + count: 1 + path: src/Import/Import.php + + - + message: '#^Only booleans are allowed in an if condition, mixed given\.$#' + identifier: if.condNotBoolean + count: 1 + path: src/Import/Import.php + + - + message: '#^Parameter \#1 \$precision of static method PhpMyAdmin\\Import\\DecimalSize\:\:fromPrecisionAndScale\(\) expects int, int\|PhpMyAdmin\\Import\\DecimalSize given\.$#' + identifier: argument.type + count: 1 + path: src/Import/Import.php + + - + message: '#^Parameter \#1 \$separator of function explode expects non\-empty\-string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Import/Import.php + + - + message: '#^Parameter \#1 \$sql of method PhpMyAdmin\\Import\\Import\:\:runQuery\(\) expects string, string\|null given\.$#' + identifier: argument.type + count: 1 + path: src/Import/Import.php + + - + message: '#^Parameter \#1 \$string of function mb_strlen expects string, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Import/Import.php + + - + message: '#^Parameter \#1 \$string of function mb_substr expects string, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Import/Import.php + + - + message: '#^Property PhpMyAdmin\\Import\\ImportTable\:\:\$rows \(list\\>\) does not accept array\, list\\>\.$#' + identifier: assign.propertyType + count: 1 + path: src/Import/Import.php + + - + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Index.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 3 path: src/Index.php - - message: "#^Cannot access offset mixed on mixed\\.$#" + message: '#^Cannot access offset mixed on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Index.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 1 path: src/Index.php - - message: "#^Only booleans are allowed in &&, int\\<0, 1\\> given on the left side\\.$#" + message: '#^Only booleans are allowed in &&, int\<0, 1\> given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 1 path: src/Index.php - - message: "#^Only booleans are allowed in &&, int\\<0, 2\\> given on the left side\\.$#" + message: '#^Only booleans are allowed in &&, int\<0, 2\> given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 1 path: src/Index.php - - message: "#^Only booleans are allowed in &&, int\\<0, 4\\> given on the left side\\.$#" + message: '#^Only booleans are allowed in &&, int\<0, 4\> given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 1 path: src/Index.php - - message: "#^Only booleans are allowed in &&, int\\<0, 8\\> given on the left side\\.$#" + message: '#^Only booleans are allowed in &&, int\<0, 8\> given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 1 path: src/Index.php - - message: "#^Parameter \\#1 \\$columns of method PhpMyAdmin\\\\Index\\:\\:addColumns\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#1 \$columns of method PhpMyAdmin\\Index\:\:addColumns\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Index.php - - message: "#^Parameter \\#1 \\$params of method PhpMyAdmin\\\\Index\\:\\:addColumn\\(\\) expects array\\, mixed given\\.$#" + message: '#^Parameter \#1 \$params of method PhpMyAdmin\\Index\:\:addColumn\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Index.php - - message: "#^Property PhpMyAdmin\\\\Index\\:\\:\\$choice \\(string\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Index\:\:\$choice \(string\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/Index.php - - message: "#^Property PhpMyAdmin\\\\Index\\:\\:\\$comment \\(string\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Index\:\:\$comment \(string\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/Index.php - - message: "#^Property PhpMyAdmin\\\\Index\\:\\:\\$name \\(string\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Index\:\:\$name \(string\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/Index.php - - message: "#^Property PhpMyAdmin\\\\Index\\:\\:\\$packed \\(string\\|null\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Index\:\:\$packed \(string\|null\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/Index.php - - message: "#^Property PhpMyAdmin\\\\Index\\:\\:\\$parser \\(string\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Index\:\:\$parser \(string\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/Index.php - - message: "#^Property PhpMyAdmin\\\\Index\\:\\:\\$remarks \\(string\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Index\:\:\$remarks \(string\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/Index.php - - message: "#^Property PhpMyAdmin\\\\Index\\:\\:\\$schema \\(string\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Index\:\:\$schema \(string\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/Index.php - - message: "#^Property PhpMyAdmin\\\\Index\\:\\:\\$table \\(string\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Index\:\:\$table \(string\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/Index.php - - message: "#^Property PhpMyAdmin\\\\Index\\:\\:\\$type \\(string\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Index\:\:\$type \(string\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/Index.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 3 path: src/IndexColumn.php - - message: "#^Property PhpMyAdmin\\\\IndexColumn\\:\\:\\$collation \\(string\\|null\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\IndexColumn\:\:\$collation \(string\|null\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/IndexColumn.php - - message: "#^Property PhpMyAdmin\\\\IndexColumn\\:\\:\\$expression \\(string\\|null\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\IndexColumn\:\:\$expression \(string\|null\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/IndexColumn.php - - message: "#^Property PhpMyAdmin\\\\IndexColumn\\:\\:\\$name \\(string\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\IndexColumn\:\:\$name \(string\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/IndexColumn.php - - message: "#^Property PhpMyAdmin\\\\IndexColumn\\:\\:\\$null \\(string\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\IndexColumn\:\:\$null \(string\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/IndexColumn.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/InsertEdit.php - - message: "#^Cannot access offset 'relational_display' on mixed\\.$#" + message: '#^Binary operation "\." between '' data\-maxlength\="'' and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/InsertEdit.php - - message: "#^Cannot access offset \\(int\\|string\\) on mixed\\.$#" + message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/InsertEdit.php - - message: "#^Cannot access offset 0 on mixed\\.$#" + message: '#^Cannot access offset ''relational_display'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/InsertEdit.php - - message: "#^Cannot access offset string on mixed\\.$#" + message: '#^Cannot access offset \(int\|string\) on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/InsertEdit.php + + - + message: '#^Cannot access offset 0 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/InsertEdit.php + + - + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/InsertEdit.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 3 path: src/InsertEdit.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 4 path: src/InsertEdit.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 2 path: src/InsertEdit.php - - message: "#^Match expression does not handle remaining value\\: string$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 3 + path: src/InsertEdit.php + + - + message: '#^Match expression does not handle remaining value\: string$#' + identifier: match.unhandled count: 1 path: src/InsertEdit.php - - message: "#^Method PhpMyAdmin\\\\InsertEdit\\:\\:determineInsertOrEdit\\(\\) should return array\\{bool, array\\\\|string\\|null, array\\, array\\\\|null, array\\\\|PhpMyAdmin\\\\Dbal\\\\ResultInterface, array\\\\|false\\>, bool, string\\|null\\} but returns array\\{bool, mixed, array, array\\\\|null, array\\\\|PhpMyAdmin\\\\Dbal\\\\ResultInterface, array\\\\|false\\>, bool, mixed\\}\\.$#" + message: '#^Method PhpMyAdmin\\InsertEdit\:\:determineInsertOrEdit\(\) should return array\{bool, array\\|string\|null, array\, array\\|null, array\\|PhpMyAdmin\\Dbal\\ResultInterface, array\\|false\>, bool, string\|null\} but returns array\{bool, mixed, array\, array\\|null, array\\|PhpMyAdmin\\Dbal\\ResultInterface, array\\|false\>, bool, mixed\}\.$#' + identifier: return.type count: 1 path: src/InsertEdit.php - - message: "#^Method PhpMyAdmin\\\\InsertEdit\\:\\:getErrorUrl\\(\\) should return string but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\InsertEdit\:\:getErrorUrl\(\) should return string but returns mixed\.$#' + identifier: return.type count: 1 path: src/InsertEdit.php - - message: "#^Method PhpMyAdmin\\\\InsertEdit\\:\\:getFormParametersForInsertForm\\(\\) has parameter \\$whereClauses with no value type specified in iterable type array\\.$#" + message: '#^Method PhpMyAdmin\\InsertEdit\:\:getFormParametersForInsertForm\(\) has parameter \$whereClauses with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/InsertEdit.php - - message: "#^Method PhpMyAdmin\\\\InsertEdit\\:\\:getFormParametersForInsertForm\\(\\) should return array\\ but returns array\\\\.$#" + message: '#^Method PhpMyAdmin\\InsertEdit\:\:getFormParametersForInsertForm\(\) should return array\ but returns array\\.$#' + identifier: return.type count: 1 path: src/InsertEdit.php - - message: "#^Offset 2 does not exist on array\\{0\\?\\: string, 1\\?\\: string, 2\\?\\: string, 3\\?\\: numeric\\-string\\}\\.$#" + message: '#^Offset 2 might not exist on array\{0\?\: string, 1\?\: string, 2\?\: string, 3\?\: numeric\-string\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/InsertEdit.php - - message: "#^Only booleans are allowed in &&, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given on the left side\\.$#" + message: '#^Only booleans are allowed in &&, PhpMyAdmin\\Dbal\\ResultInterface\|false given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 1 path: src/InsertEdit.php - - message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#" + message: '#^Only booleans are allowed in &&, string\|null given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 1 path: src/InsertEdit.php - - message: "#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: booleanNot.exprNotBoolean count: 2 path: src/InsertEdit.php - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean count: 2 path: src/InsertEdit.php - - message: "#^Only booleans are allowed in a negated boolean, string\\|false given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, string\|false given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/InsertEdit.php - - message: "#^Parameter \\#1 \\$buffer of method PhpMyAdmin\\\\Plugins\\\\TransformationsInterface\\:\\:applyTransformation\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$buffer of method PhpMyAdmin\\Plugins\\TransformationsInterface\:\:applyTransformation\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/InsertEdit.php - - message: "#^Parameter \\#1 \\$data of static method PhpMyAdmin\\\\Utils\\\\Gis\\:\\:convertToWellKnownText\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$data of static method PhpMyAdmin\\Utils\\Gis\:\:convertToWellKnownText\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/InsertEdit.php - - message: "#^Parameter \\#1 \\$db of method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:getDisplayField\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$db of method PhpMyAdmin\\ConfigStorage\\Relation\:\:getDisplayField\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/InsertEdit.php - - message: "#^Parameter \\#1 \\$defaultValue of method PhpMyAdmin\\\\InsertEdit\\:\\:getSpecialCharsForInsertingMode\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$defaultValue of method PhpMyAdmin\\InsertEdit\:\:getSpecialCharsForInsertingMode\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/InsertEdit.php - - message: "#^Parameter \\#1 \\$haystack of function str_contains expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$haystack of function str_contains expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/InsertEdit.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#' + identifier: argument.type count: 6 path: src/InsertEdit.php - - message: "#^Parameter \\#1 \\$optionString of method PhpMyAdmin\\\\Transformations\\:\\:getOptions\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$optionString of method PhpMyAdmin\\Transformations\:\:getOptions\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/InsertEdit.php - - message: "#^Parameter \\#1 \\$params of static method PhpMyAdmin\\\\Url\\:\\:getCommon\\(\\) expects array\\, array given\\.$#" + message: '#^Parameter \#1 \$params of static method PhpMyAdmin\\Url\:\:getCommon\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 2 path: src/InsertEdit.php - - message: "#^Parameter \\#1 \\$params of static method PhpMyAdmin\\\\Url\\:\\:getCommon\\(\\) expects array\\, array\\ given\\.$#" + message: '#^Parameter \#1 \$params of static method PhpMyAdmin\\Url\:\:getCommon\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: src/InsertEdit.php - - message: "#^Parameter \\#1 \\$query of method PhpMyAdmin\\\\DatabaseInterface\\:\\:query\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$query of method PhpMyAdmin\\DatabaseInterface\:\:query\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/InsertEdit.php - - message: "#^Parameter \\#1 \\$query of method PhpMyAdmin\\\\DatabaseInterface\\:\\:tryQuery\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$query of method PhpMyAdmin\\DatabaseInterface\:\:tryQuery\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/InsertEdit.php - - message: "#^Parameter \\#1 \\$sqlQuery of static method PhpMyAdmin\\\\Core\\:\\:checkSqlQuerySignature\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$sqlQuery of static method PhpMyAdmin\\Core\:\:checkSqlQuerySignature\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/InsertEdit.php - - message: "#^Parameter \\#1 \\$sqlQuery of static method PhpMyAdmin\\\\Core\\:\\:signSqlQuery\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$sqlQuery of static method PhpMyAdmin\\Core\:\:signSqlQuery\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/InsertEdit.php - - message: "#^Parameter \\#1 \\$string of function bin2hex expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function bin2hex expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/InsertEdit.php - - message: "#^Parameter \\#1 \\$string of function htmlspecialchars expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function htmlspecialchars expects string, mixed given\.$#' + identifier: argument.type count: 4 path: src/InsertEdit.php - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#' + identifier: argument.type count: 1 path: src/InsertEdit.php - - message: "#^Parameter \\#1 \\$value of static method PhpMyAdmin\\\\Util\\:\\:addMicroseconds\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$value of static method PhpMyAdmin\\Util\:\:addMicroseconds\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/InsertEdit.php - - message: "#^Parameter \\#1 \\$whereClauseArray of method PhpMyAdmin\\\\InsertEdit\\:\\:analyzeWhereClauses\\(\\) expects array\\, array given\\.$#" + message: '#^Parameter \#1 \$whereClauseArray of method PhpMyAdmin\\InsertEdit\:\:analyzeWhereClauses\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: src/InsertEdit.php - - message: "#^Parameter \\#1 \\.\\.\\.\\$arrays of function array_merge expects array, mixed given\\.$#" + message: '#^Parameter \#1 \.\.\.\$arrays of function array_merge expects array, mixed given\.$#' + identifier: argument.type count: 1 path: src/InsertEdit.php - - message: "#^Parameter \\#2 \\$foreignField of method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:foreignDropdown\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$foreignField of method PhpMyAdmin\\ConfigStorage\\Relation\:\:foreignDropdown\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/InsertEdit.php - - message: "#^Parameter \\#2 \\$row of class PhpMyAdmin\\\\UniqueCondition constructor expects array\\, mixed given\\.$#" + message: '#^Parameter \#2 \$row of class PhpMyAdmin\\UniqueCondition constructor expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/InsertEdit.php - - message: "#^Parameter \\#2 \\$signature of static method PhpMyAdmin\\\\Core\\:\\:checkSqlQuerySignature\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$signature of static method PhpMyAdmin\\Core\:\:checkSqlQuerySignature\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/InsertEdit.php - - message: "#^Parameter \\#2 \\$specInBrackets of method PhpMyAdmin\\\\InsertEdit\\:\\:getColumnSize\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$specInBrackets of method PhpMyAdmin\\InsertEdit\:\:getColumnSize\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/InsertEdit.php - - message: "#^Parameter \\#2 \\$table of method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:getDisplayField\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$table of method PhpMyAdmin\\ConfigStorage\\Relation\:\:getDisplayField\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/InsertEdit.php - - message: "#^Parameter \\#3 \\$value of method PhpMyAdmin\\\\Plugins\\\\IOTransformationsPlugin\\:\\:getInputHtml\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$value of method PhpMyAdmin\\Plugins\\IOTransformationsPlugin\:\:getInputHtml\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/InsertEdit.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\.$#" + message: '#^Possibly impure call to function preg_match\(\) in pure method PhpMyAdmin\\InsertEdit\:\:isWhereClauseNumeric\(\)\.$#' + identifier: possiblyImpure.functionCall + count: 1 + path: src/InsertEdit.php + + - + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\.$#' + identifier: assign.propertyType count: 3 path: src/InsertEdit.php - - message: "#^Property PhpMyAdmin\\\\InsertEditColumn\\:\\:\\$trueType \\(string\\) does not accept string\\|null\\.$#" + message: '#^Property PhpMyAdmin\\InsertEditColumn\:\:\$trueType \(string\) does not accept string\|null\.$#' + identifier: assign.propertyType count: 1 path: src/InsertEditColumn.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/IpAllowDeny.php - - message: "#^Parameter \\#2 \\$ipToTest of method PhpMyAdmin\\\\IpAllowDeny\\:\\:ipMaskTest\\(\\) expects string, string\\|true given\\.$#" + message: '#^Parameter \#2 \$ipToTest of method PhpMyAdmin\\IpAllowDeny\:\:ipMaskTest\(\) expects string, string\|true given\.$#' + identifier: argument.type count: 1 path: src/IpAllowDeny.php - - message: "#^Binary operation \"\\+\" between int\\|string\\|null and int\\<0, max\\> results in an error\\.$#" + message: '#^Binary operation "\+" between int\|string\|null and int\<0, max\> results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Linter.php - - message: "#^Parameter \\#2 \\$pos of static method PhpMyAdmin\\\\Linter\\:\\:findLineNumberAndColumn\\(\\) expects int, mixed given\\.$#" + message: '#^Parameter \#2 \$pos of static method PhpMyAdmin\\Linter\:\:findLineNumberAndColumn\(\) expects int, mixed given\.$#' + identifier: argument.type count: 1 path: src/Linter.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/ListDatabase.php - - message: "#^Parameter \\#2 \\$callback of function usort expects callable\\(mixed, mixed\\)\\: int, Closure\\(string, string\\)\\: int\\<\\-1, 1\\> given\\.$#" + message: '#^Parameter \#2 \$callback of function usort expects callable\(mixed, mixed\)\: int, Closure\(string, string\)\: int\<\-1, 1\> given\.$#' + identifier: argument.type count: 1 path: src/ListDatabase.php - - message: """ - #^Access to deprecated static property \\$route of class PhpMyAdmin\\\\Routing\\\\Routing\\: - Use \\{@see ServerRequest\\:\\:getRoute\\(\\)\\} instead\\.$# - """ + message: ''' + #^Access to deprecated static property \$route of class PhpMyAdmin\\Routing\\Routing\: + Use \{@see ServerRequest\:\:getRoute\(\)\} instead\.$# + ''' + identifier: staticProperty.deprecated count: 3 path: src/Menu.php - - message: "#^Cannot access offset 'icon' on mixed\\.$#" + message: '#^Cannot access offset ''icon'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 22 path: src/Menu.php - - message: "#^Cannot access offset 'pos' on mixed\\.$#" + message: '#^Cannot access offset ''pos'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Menu.php - - message: "#^Cannot access offset 'route' on mixed\\.$#" + message: '#^Cannot access offset ''route'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 10 path: src/Menu.php - - message: "#^Cannot access offset 'single_table' on mixed\\.$#" + message: '#^Cannot access offset ''single_table'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Menu.php - - message: "#^Cannot access offset 'text' on mixed\\.$#" + message: '#^Cannot access offset ''text'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 6 path: src/Menu.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 4 path: src/Menu.php - - message: "#^Method PhpMyAdmin\\\\Menu\\:\\:getAllowedTabs\\(\\) should return array but returns mixed\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 3 + path: src/Menu.php + + - + message: '#^Method PhpMyAdmin\\Menu\:\:getAllowedTabs\(\) should return array\ but returns mixed\.$#' + identifier: return.type count: 1 path: src/Menu.php - - message: "#^Only booleans are allowed in an if condition, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Only booleans are allowed in an if condition, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Menu.php - - message: "#^Only numeric types are allowed in \\+, int\\<0, max\\>\\|false given on the left side\\.$#" + message: '#^Only numeric types are allowed in \+, int\<0, max\>\|false given on the left side\.$#' + identifier: plus.leftNonNumeric count: 1 path: src/Menu.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 1 path: src/Message.php - - message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \.\.\.\$values of function sprintf expects bool\|float\|int\|string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Message.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 3 path: src/Navigation/Navigation.php - - message: "#^Only booleans are allowed in an if condition, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Only booleans are allowed in an if condition, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Navigation/Navigation.php - - message: "#^Access to an undefined property PhpMyAdmin\\\\Navigation\\\\Nodes\\\\Node\\:\\:\\$secondIcon\\.$#" + message: '#^Access to an undefined property PhpMyAdmin\\Navigation\\Nodes\\Node\:\:\$secondIcon\.$#' + identifier: property.notFound count: 2 path: src/Navigation/NavigationTree.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Navigation/NavigationTree.php - - message: "#^Call to an undefined method PhpMyAdmin\\\\Navigation\\\\Nodes\\\\Node\\:\\:setHiddenCount\\(\\)\\.$#" + message: '#^Binary operation "\." between mixed and string results in an error\.$#' + identifier: binaryOp.invalid + count: 2 + path: src/Navigation/NavigationTree.php + + - + message: '#^Binary operation "\." between string and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Navigation/NavigationTree.php - - message: "#^Cannot access offset 'image' on mixed\\.$#" + message: '#^Call to an undefined method PhpMyAdmin\\Navigation\\Nodes\\Node\:\:setHiddenCount\(\)\.$#' + identifier: method.notFound count: 1 path: src/Navigation/NavigationTree.php - - message: "#^Cannot access offset 'title' on mixed\\.$#" + message: '#^Cannot access offset ''image'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Navigation/NavigationTree.php - - message: "#^Cannot access offset \\(int\\|string\\) on mixed\\.$#" + message: '#^Cannot access offset ''title'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Navigation/NavigationTree.php - - message: "#^Cannot access property \\$pos2 on PhpMyAdmin\\\\Navigation\\\\Nodes\\\\Node\\|null\\.$#" + message: '#^Cannot access offset \(int\|string\) on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Navigation/NavigationTree.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot access property \$pos2 on PhpMyAdmin\\Navigation\\Nodes\\Node\|null\.$#' + identifier: property.nonObject + count: 1 + path: src/Navigation/NavigationTree.php + + - + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 7 path: src/Navigation/NavigationTree.php - - message: "#^Casting to string something that's already string\\.$#" + message: '#^Casting to string something that''s already string\.$#' + identifier: cast.useless count: 4 path: src/Navigation/NavigationTree.php - - message: "#^Method PhpMyAdmin\\\\Navigation\\\\NavigationTree\\:\\:parsePath\\(\\) should return non\\-empty\\-array\\ but returns non\\-empty\\-array\\\\.$#" - count: 1 - path: src/Navigation/NavigationTree.php - - - - message: "#^Only booleans are allowed in &&, int given on the right side\\.$#" - count: 5 - path: src/Navigation/NavigationTree.php - - - - message: "#^Only numeric types are allowed in \\+, int\\|false given on the left side\\.$#" - count: 1 - path: src/Navigation/NavigationTree.php - - - - message: "#^Parameter \\#1 \\$haystack of function strstr expects string, string\\|null given\\.$#" - count: 1 - path: src/Navigation/NavigationTree.php - - - - message: "#^Parameter \\#1 \\$key of function array_key_exists expects int\\|string, mixed given\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed count: 2 path: src/Navigation/NavigationTree.php - - message: "#^Parameter \\#1 \\$name of method PhpMyAdmin\\\\Navigation\\\\Nodes\\\\Node\\:\\:getChild\\(\\) expects string, \\(int\\|string\\) given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 1 path: src/Navigation/NavigationTree.php - - message: "#^Parameter \\#1 \\$name of method PhpMyAdmin\\\\Navigation\\\\Nodes\\\\Node\\:\\:getChild\\(\\) expects string, mixed given\\.$#" + message: '#^Method PhpMyAdmin\\Navigation\\NavigationTree\:\:parsePath\(\) should return non\-empty\-list\ but returns non\-empty\-list\\.$#' + identifier: return.type + count: 1 + path: src/Navigation/NavigationTree.php + + - + message: '#^Only booleans are allowed in &&, int given on the right side\.$#' + identifier: booleanAnd.rightNotBoolean count: 5 path: src/Navigation/NavigationTree.php - - message: "#^Parameter \\#1 \\$string of function strlen expects string, mixed given\\.$#" + message: '#^Only numeric types are allowed in \+, int\|false given on the left side\.$#' + identifier: plus.leftNonNumeric count: 1 path: src/Navigation/NavigationTree.php - - message: "#^Parameter \\#1 \\$string of method PhpMyAdmin\\\\Navigation\\\\NavigationTree\\:\\:parsePath\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$haystack of function strstr expects string, string\|null given\.$#' + identifier: argument.type + count: 1 + path: src/Navigation/NavigationTree.php + + - + message: '#^Parameter \#1 \$key of function array_key_exists expects int\|string, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Navigation/NavigationTree.php + + - + message: '#^Parameter \#1 \$name of method PhpMyAdmin\\Navigation\\Nodes\\Node\:\:getChild\(\) expects string, \(int\|string\) given\.$#' + identifier: argument.type + count: 1 + path: src/Navigation/NavigationTree.php + + - + message: '#^Parameter \#1 \$name of method PhpMyAdmin\\Navigation\\Nodes\\Node\:\:getChild\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 5 + path: src/Navigation/NavigationTree.php + + - + message: '#^Parameter \#1 \$string of function strlen expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Navigation/NavigationTree.php + + - + message: '#^Parameter \#1 \$string of method PhpMyAdmin\\Navigation\\NavigationTree\:\:parsePath\(\) expects string, mixed given\.$#' + identifier: argument.type count: 4 path: src/Navigation/NavigationTree.php - - message: "#^Parameter \\#1 \\$string1 of function strcasecmp expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$string1 of function strcasecmp expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Navigation/NavigationTree.php - - message: "#^Parameter \\#2 \\$item of class PhpMyAdmin\\\\Navigation\\\\Nodes\\\\NodeColumn constructor expects array, mixed given\\.$#" + message: '#^Parameter \#2 \$item of class PhpMyAdmin\\Navigation\\Nodes\\NodeColumn constructor expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Navigation/NavigationTree.php - - message: "#^Parameter \\#2 \\$name of class PhpMyAdmin\\\\Navigation\\\\Nodes\\\\NodeDatabase constructor expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$name of class PhpMyAdmin\\Navigation\\Nodes\\NodeDatabase constructor expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Navigation/NavigationTree.php - - message: "#^Parameter \\#2 \\$name of class PhpMyAdmin\\\\Navigation\\\\Nodes\\\\NodeIndex constructor expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$name of class PhpMyAdmin\\Navigation\\Nodes\\NodeIndex constructor expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Navigation/NavigationTree.php - - message: "#^Parameter \\#2 \\$name of class PhpMyAdmin\\\\Navigation\\\\Nodes\\\\NodeTable constructor expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$name of class PhpMyAdmin\\Navigation\\Nodes\\NodeTable constructor expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Navigation/NavigationTree.php - - message: "#^Parameter \\#2 \\$name of class PhpMyAdmin\\\\Navigation\\\\Nodes\\\\NodeTrigger constructor expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$name of class PhpMyAdmin\\Navigation\\Nodes\\NodeTrigger constructor expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Navigation/NavigationTree.php - - message: "#^Parameter \\#2 \\$needle of function mb_strpos expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$needle of function mb_strpos expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Navigation/NavigationTree.php - - message: "#^Parameter \\#2 \\$path of method PhpMyAdmin\\\\Navigation\\\\NavigationTree\\:\\:buildPathPart\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#2 \$path of method PhpMyAdmin\\Navigation\\NavigationTree\:\:buildPathPart\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Navigation/NavigationTree.php - - message: "#^Parameter \\#2 \\$table of method PhpMyAdmin\\\\Navigation\\\\NavigationTree\\:\\:addTableContainers\\(\\) expects PhpMyAdmin\\\\Navigation\\\\Nodes\\\\NodeTable, PhpMyAdmin\\\\Navigation\\\\Nodes\\\\Node given\\.$#" + message: '#^Parameter \#2 \$table of method PhpMyAdmin\\Navigation\\NavigationTree\:\:addTableContainers\(\) expects PhpMyAdmin\\Navigation\\Nodes\\NodeTable, PhpMyAdmin\\Navigation\\Nodes\\Node given\.$#' + identifier: argument.type count: 1 path: src/Navigation/NavigationTree.php - - message: "#^Parameter \\#3 \\$searchClause of method PhpMyAdmin\\\\Navigation\\\\Nodes\\\\NodeDatabase\\:\\:getPresence\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$searchClause of method PhpMyAdmin\\Navigation\\Nodes\\NodeDatabase\:\:getPresence\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Navigation/NavigationTree.php - - message: "#^Property PhpMyAdmin\\\\Navigation\\\\NavigationTree\\:\\:\\$pos2Name \\(array\\\\) does not accept array\\\\.$#" + message: '#^Property PhpMyAdmin\\Navigation\\NavigationTree\:\:\$pos2Name \(array\\) does not accept array\\.$#' + identifier: assign.propertyType count: 2 path: src/Navigation/NavigationTree.php - - message: "#^Property PhpMyAdmin\\\\Navigation\\\\NavigationTree\\:\\:\\$pos3Name \\(array\\\\) does not accept array\\\\.$#" + message: '#^Property PhpMyAdmin\\Navigation\\NavigationTree\:\:\$pos3Name \(array\\) does not accept array\\.$#' + identifier: assign.propertyType count: 2 path: src/Navigation/NavigationTree.php - - message: "#^Property PhpMyAdmin\\\\Navigation\\\\NavigationTree\\:\\:\\$searchClause \\(string\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Navigation\\NavigationTree\:\:\$searchClause \(string\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/Navigation/NavigationTree.php - - message: "#^Property PhpMyAdmin\\\\Navigation\\\\NavigationTree\\:\\:\\$searchClause2 \\(string\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Navigation\\NavigationTree\:\:\$searchClause2 \(string\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/Navigation/NavigationTree.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 7 path: src/Navigation/Nodes/Node.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 4 path: src/Navigation/Nodes/Node.php - - message: "#^Method PhpMyAdmin\\\\Navigation\\\\Nodes\\\\Node\\:\\:getDatabasesToSearch\\(\\) should return array but returns array\\\\|string\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 2 + path: src/Navigation/Nodes/Node.php + + - + message: '#^Method PhpMyAdmin\\Navigation\\Nodes\\Node\:\:getDatabasesToSearch\(\) should return array\ but returns list\\|string\.$#' + identifier: return.type count: 1 path: src/Navigation/Nodes/Node.php - - message: "#^Parameter \\#1 \\$array of function sort expects TArray of array\\, array\\\\|string given\\.$#" + message: '#^Parameter \#1 \$array of function sort expects TArray of array\, array\\|string given\.$#' + identifier: argument.type count: 1 path: src/Navigation/Nodes/Node.php - - message: "#^Parameter \\#1 \\$db of method PhpMyAdmin\\\\Navigation\\\\Nodes\\\\Node\\:\\:isHideDb\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$db of method PhpMyAdmin\\Navigation\\Nodes\\Node\:\:isHideDb\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 4 path: src/Navigation/Nodes/Node.php - - message: "#^Parameter \\#1 \\$haystack of function strstr expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$haystack of function strstr expects string, string\|null given\.$#' + identifier: argument.type count: 4 path: src/Navigation/Nodes/Node.php - - message: "#^Parameter \\#1 \\$str of method PhpMyAdmin\\\\DatabaseInterface\\:\\:quoteString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$str of method PhpMyAdmin\\DatabaseInterface\:\:quoteString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 5 path: src/Navigation/Nodes/Node.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Binary operation "\." between mixed and ''\)'' results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Navigation/Nodes/NodeColumn.php - - message: "#^Parameter \\#1 \\$item of method PhpMyAdmin\\\\Navigation\\\\Nodes\\\\NodeColumn\\:\\:getDisplayName\\(\\) expects array\\, array given\\.$#" + message: '#^Binary operation "\.\=" between mixed and '' \('' results in an error\.$#' + identifier: assignOp.invalid count: 1 path: src/Navigation/Nodes/NodeColumn.php - - message: "#^Parameter \\#1 \\$key of method PhpMyAdmin\\\\Navigation\\\\Nodes\\\\NodeColumn\\:\\:getColumnIcon\\(\\) expects string, mixed given\\.$#" + message: '#^Binary operation "\.\=" between mixed and '', '' results in an error\.$#' + identifier: assignOp.invalid count: 1 path: src/Navigation/Nodes/NodeColumn.php - - message: "#^Parameter \\#2 \\$name of method PhpMyAdmin\\\\Navigation\\\\Nodes\\\\Node\\:\\:__construct\\(\\) expects string, mixed given\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Navigation/Nodes/NodeColumn.php - - message: "#^Parameter \\#2 \\$value of method PhpMyAdmin\\\\Navigation\\\\Nodes\\\\NodeColumn\\:\\:getTruncateValue\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$item of method PhpMyAdmin\\Navigation\\Nodes\\NodeColumn\:\:getDisplayName\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: src/Navigation/Nodes/NodeColumn.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: '#^Parameter \#1 \$key of method PhpMyAdmin\\Navigation\\Nodes\\NodeColumn\:\:getColumnIcon\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Navigation/Nodes/NodeColumn.php + + - + message: '#^Parameter \#2 \$name of method PhpMyAdmin\\Navigation\\Nodes\\Node\:\:__construct\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Navigation/Nodes/NodeColumn.php + + - + message: '#^Parameter \#2 \$value of method PhpMyAdmin\\Navigation\\Nodes\\NodeColumn\:\:getTruncateValue\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Navigation/Nodes/NodeColumn.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: src/Navigation/Nodes/NodeDatabase.php - - message: "#^Cannot access property \\$realName on PhpMyAdmin\\\\Navigation\\\\Nodes\\\\Node\\|false\\.$#" + message: '#^Cannot access property \$realName on PhpMyAdmin\\Navigation\\Nodes\\Node\|false\.$#' + identifier: property.nonObject count: 1 path: src/Navigation/Nodes/NodeDatabaseChild.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Navigation/Nodes/NodeDatabaseContainer.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: src/Navigation/Nodes/NodeTable.php - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" + message: '#^Call to function in_array\(\) requires parameter \#3 to be set\.$#' + identifier: function.strict count: 1 path: src/Navigation/Nodes/NodeTable.php - - message: "#^Cannot access property \\$realName on PhpMyAdmin\\\\Navigation\\\\Nodes\\\\Node\\|false\\.$#" + message: '#^Cannot access property \$realName on PhpMyAdmin\\Navigation\\Nodes\\Node\|false\.$#' + identifier: property.nonObject count: 2 path: src/Navigation/Nodes/NodeTable.php - - message: "#^Parameter \\#1 \\$columnSpecification of static method PhpMyAdmin\\\\Util\\:\\:extractColumnSpec\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$columnSpecification of static method PhpMyAdmin\\Util\:\:extractColumnSpec\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Navigation/Nodes/NodeTable.php - - message: "#^Method PhpMyAdmin\\\\Navigation\\\\Nodes\\\\ObjectFetcher\\:\\:getEventsFromDb\\(\\) should return array\\ but returns array\\.$#" + message: '#^Method PhpMyAdmin\\Navigation\\Nodes\\ObjectFetcher\:\:getEventsFromDb\(\) should return array\ but returns array\\.$#' + identifier: return.type count: 1 path: src/Navigation/Nodes/ObjectFetcher.php - - message: "#^Method PhpMyAdmin\\\\Navigation\\\\Nodes\\\\ObjectFetcher\\:\\:getRoutines\\(\\) should return array\\ but returns array\\.$#" + message: '#^Method PhpMyAdmin\\Navigation\\Nodes\\ObjectFetcher\:\:getRoutines\(\) should return array\ but returns array\\.$#' + identifier: return.type count: 1 path: src/Navigation/Nodes/ObjectFetcher.php - - message: "#^Method PhpMyAdmin\\\\Navigation\\\\Nodes\\\\ObjectFetcher\\:\\:getTablesAndViews\\(\\) should return array\\ but returns array\\.$#" + message: '#^Method PhpMyAdmin\\Navigation\\Nodes\\ObjectFetcher\:\:getTablesAndViews\(\) should return array\ but returns array\\.$#' + identifier: return.type count: 1 path: src/Navigation/Nodes/ObjectFetcher.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 3 path: src/Normalization.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between mixed and '','' results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Normalization.php - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Normalization.php - - message: "#^Cannot access offset 'nonpk' on mixed\\.$#" + message: '#^Call to function in_array\(\) requires parameter \#3 to be set\.$#' + identifier: function.strict + count: 1 + path: src/Normalization.php + + - + message: '#^Cannot access offset ''nonpk'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Normalization.php - - message: "#^Cannot access offset 'pk' on mixed\\.$#" + message: '#^Cannot access offset ''pk'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Normalization.php - - message: "#^Cannot access offset non\\-falsy\\-string on mixed\\.$#" + message: '#^Cannot access offset non\-falsy\-string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Normalization.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 1 path: src/Normalization.php - - message: "#^Casting to int something that's already int\\<1, max\\>\\.$#" + message: '#^Casting to int something that''s already int\<1, max\>\.$#' + identifier: cast.useless count: 1 path: src/Normalization.php - - message: "#^Casting to string something that's already string\\.$#" + message: '#^Casting to string something that''s already string\.$#' + identifier: cast.useless count: 1 path: src/Normalization.php - - message: "#^Method PhpMyAdmin\\\\Normalization\\:\\:createNewTablesFor2NF\\(\\) should return array\\{legendText\\: string, headText\\: string, queryError\\: bool, extra\\: PhpMyAdmin\\\\Message\\} but returns array\\{legendText\\: string, headText\\: non\\-falsy\\-string, queryError\\: bool, extra\\: ''\\|PhpMyAdmin\\\\Message\\}\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 2 + path: src/Normalization.php + + - + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 2 + path: src/Normalization.php + + - + message: '#^Method PhpMyAdmin\\Normalization\:\:createNewTablesFor2NF\(\) should return array\{legendText\: string, headText\: string, queryError\: bool, extra\: PhpMyAdmin\\Message\} but returns array\{legendText\: string, headText\: non\-falsy\-string, queryError\: bool, extra\: ''''\|PhpMyAdmin\\Message\}\.$#' + identifier: return.type count: 1 path: src/Normalization.php - - message: "#^Method PhpMyAdmin\\\\Normalization\\:\\:createNewTablesFor2NF\\(\\) should return array\\{legendText\\: string, headText\\: string, queryError\\: bool, extra\\: PhpMyAdmin\\\\Message\\} but returns array\\{legendText\\: string, headText\\: non\\-falsy\\-string, queryError\\: false\\}\\.$#" + message: '#^Method PhpMyAdmin\\Normalization\:\:createNewTablesFor2NF\(\) should return array\{legendText\: string, headText\: string, queryError\: bool, extra\: PhpMyAdmin\\Message\} but returns array\{legendText\: string, headText\: non\-falsy\-string, queryError\: false\}\.$#' + identifier: return.type count: 1 path: src/Normalization.php - - message: "#^Method PhpMyAdmin\\\\Normalization\\:\\:createNewTablesFor3NF\\(\\) should return array\\{legendText\\: string, headText\\: string, queryError\\: string\\|false, extra\\?\\: string\\} but returns array\\{legendText\\: string, headText\\: non\\-falsy\\-string, queryError\\: bool, extra\\: ''\\|PhpMyAdmin\\\\Message\\}\\.$#" + message: '#^Method PhpMyAdmin\\Normalization\:\:createNewTablesFor3NF\(\) should return array\{legendText\: string, headText\: string, queryError\: string\|false, extra\?\: string\} but returns array\{legendText\: string, headText\: non\-falsy\-string, queryError\: bool, extra\: ''''\|PhpMyAdmin\\Message\}\.$#' + identifier: return.type count: 1 path: src/Normalization.php - - message: "#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: booleanNot.exprNotBoolean count: 3 path: src/Normalization.php - - message: "#^Only booleans are allowed in a negated boolean, string given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, string given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Normalization.php - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" + message: '#^Only booleans are allowed in an if condition, mixed given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Normalization.php - - message: "#^Parameter \\#1 \\$array of function array_unique expects array, mixed given\\.$#" + message: '#^Parameter \#1 \$array of function array_unique expects an array of values castable to string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Normalization.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#1 \$array of function array_unique expects array, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Normalization.php + + - + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, \(int\|string\) given\.$#' + identifier: argument.type count: 3 path: src/Normalization.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#' + identifier: argument.type count: 6 path: src/Normalization.php - - message: "#^Parameter \\#1 \\$string of function htmlspecialchars expects string, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#1 \$string of function htmlspecialchars expects string, \(int\|string\) given\.$#' + identifier: argument.type count: 5 path: src/Normalization.php - - message: "#^Parameter \\#1 \\$string of function htmlspecialchars expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function htmlspecialchars expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Normalization.php - - message: "#^Parameter \\#1 \\$string of function mb_strtoupper expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function mb_strtoupper expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Normalization.php - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#' + identifier: argument.type count: 3 path: src/Normalization.php - - message: "#^Parameter \\#2 \\$array of function implode expects array\\, mixed given\\.$#" + message: '#^Parameter \#2 \$array of function implode expects array\, mixed given\.$#' + identifier: argument.type count: 3 path: src/Normalization.php - - message: "#^Parameter \\#2 \\$array of function implode expects array\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \$array of function implode expects array\|null, mixed given\.$#' + identifier: argument.type count: 3 path: src/Normalization.php - - message: "#^Parameter \\#2 \\$string of function explode expects string, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#2 \$string of function explode expects string, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Normalization.php - - message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$string of function explode expects string, mixed given\.$#' + identifier: argument.type count: 5 path: src/Normalization.php - - message: "#^Parameter \\#2 \\$table of method PhpMyAdmin\\\\DatabaseInterface\\:\\:getColumnNames\\(\\) expects string, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#2 \$table of method PhpMyAdmin\\DatabaseInterface\:\:getColumnNames\(\) expects string, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Normalization.php - - message: "#^Parameter \\#2 \\$table of method PhpMyAdmin\\\\DatabaseInterface\\:\\:getColumnNames\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$table of method PhpMyAdmin\\DatabaseInterface\:\:getColumnNames\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Normalization.php - - message: "#^Parameter \\#2 \\$table of static method PhpMyAdmin\\\\Index\\:\\:getPrimary\\(\\) expects string, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#2 \$table of static method PhpMyAdmin\\Index\:\:getPrimary\(\) expects string, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Normalization.php - - message: "#^Parameter \\#2 \\$table of static method PhpMyAdmin\\\\Index\\:\\:getPrimary\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$table of static method PhpMyAdmin\\Index\:\:getPrimary\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Normalization.php - - message: "#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, mixed given\\.$#" + message: '#^Parameter \#2 \.\.\.\$arrays of function array_merge expects array, mixed given\.$#' + identifier: argument.type count: 2 path: src/Normalization.php - - message: "#^Parameter \\#6 \\$totalRows of method PhpMyAdmin\\\\Normalization\\:\\:checkPartialDependency\\(\\) expects int, mixed given\\.$#" + message: '#^Parameter \#6 \$totalRows of method PhpMyAdmin\\Normalization\:\:checkPartialDependency\(\) expects int, mixed given\.$#' + identifier: argument.type count: 1 path: src/Normalization.php - - message: "#^Variable property access on object\\.$#" + message: '#^Variable property access on object\.$#' + identifier: property.dynamicName count: 4 path: src/Normalization.php - - message: "#^Cannot access offset 0 on mixed\\.$#" + message: '#^Binary operation "\." between "\\n" and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Operations.php + + - + message: '#^Binary operation "\." between '', "'' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Operations.php + + - + message: '#^Binary operation "\." between ''pack_keys \= '' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Operations.php + + - + message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 32 + path: src/Operations.php + + - + message: '#^Binary operation "\.\=" between mixed and non\-falsy\-string results in an error\.$#' + identifier: assignOp.invalid + count: 8 + path: src/Operations.php + + - + message: '#^Cannot access offset 0 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 6 path: src/Operations.php - - message: "#^Cannot access offset 2 on mixed\\.$#" + message: '#^Cannot access offset 2 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 5 path: src/Operations.php - - message: "#^Cannot access offset 3 on mixed\\.$#" + message: '#^Cannot access offset 3 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Operations.php - - message: "#^Cannot access offset 4 on mixed\\.$#" + message: '#^Cannot access offset 4 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 5 path: src/Operations.php - - message: "#^Cannot access offset 5 on mixed\\.$#" + message: '#^Cannot access offset 5 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 5 path: src/Operations.php - - message: "#^Cannot access offset 6 on mixed\\.$#" + message: '#^Cannot access offset 6 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 5 path: src/Operations.php - - message: "#^Cannot access offset 7 on mixed\\.$#" + message: '#^Cannot access offset 7 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Operations.php - - message: "#^Cannot access offset int\\<2, max\\> on mixed\\.$#" + message: '#^Cannot access offset int\<2, max\> on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Operations.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 1 path: src/Operations.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 8 path: src/Operations.php - - message: "#^Parameter \\#1 \\$collation of static method PhpMyAdmin\\\\Util\\:\\:getCharsetQueryPart\\(\\) expects string, mixed given\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 1 + path: src/Operations.php + + - + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 3 + path: src/Operations.php + + - + message: '#^Parameter \#1 \$collation of static method PhpMyAdmin\\Util\:\:getCharsetQueryPart\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Operations.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, \(int\|string\) given\.$#' + identifier: argument.type count: 2 path: src/Operations.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#' + identifier: argument.type count: 8 path: src/Operations.php - - message: "#^Parameter \\#1 \\$query of method PhpMyAdmin\\\\DatabaseInterface\\:\\:query\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$query of method PhpMyAdmin\\DatabaseInterface\:\:query\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Operations.php - - message: "#^Parameter \\#1 \\$query of method PhpMyAdmin\\\\DatabaseInterface\\:\\:query\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$query of method PhpMyAdmin\\DatabaseInterface\:\:query\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Operations.php - - message: "#^Parameter \\#1 \\$str of method PhpMyAdmin\\\\DatabaseInterface\\:\\:quoteString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$str of method PhpMyAdmin\\DatabaseInterface\:\:quoteString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Operations.php - - message: "#^Parameter \\#1 \\$string of function mb_strtolower expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function mb_strtolower expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Operations.php - - message: "#^Parameter \\#1 \\$string of function urldecode expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function urldecode expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Operations.php - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#' + identifier: argument.type count: 1 path: src/Operations.php - - message: "#^Parameter \\#1 \\$value of static method PhpMyAdmin\\\\Table\\\\MoveScope\\:\\:from\\(\\) expects int\\|string, mixed given\\.$#" + message: '#^Parameter \#1 \$value of static method PhpMyAdmin\\Table\\MoveScope\:\:from\(\) expects int\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Operations.php - - message: "#^Parameter \\#1 \\$value of static method PhpMyAdmin\\\\Table\\\\MoveScope\\:\\:tryFrom\\(\\) expects int\\|string, mixed given\\.$#" + message: '#^Parameter \#1 \$value of static method PhpMyAdmin\\Table\\MoveScope\:\:tryFrom\(\) expects int\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Operations.php - - message: "#^Cannot access offset 'Table' on mixed\\.$#" + message: '#^Cannot access offset ''Table'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: src/Partitioning/Maintenance.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 4 path: src/Partitioning/Partition.php - - message: "#^Cannot access offset 'Name' on mixed\\.$#" + message: '#^Cannot access offset ''Name'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Partitioning/Partition.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 1 path: src/Partitioning/Partition.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 2 path: src/Partitioning/Partition.php - - message: "#^Method PhpMyAdmin\\\\Partitioning\\\\Partition\\:\\:getPartitionMethod\\(\\) should return string\\|null but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\Partitioning\\Partition\:\:getPartitionMethod\(\) should return string\|null but returns mixed\.$#' + identifier: return.type count: 1 path: src/Partitioning/Partition.php - - message: "#^Only booleans are allowed in an if condition, string\\|false\\|null given\\.$#" + message: '#^Only booleans are allowed in an if condition, string\|false\|null given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Partitioning/Partition.php - - message: "#^PHPDoc tag @var for variable \\$row has no value type specified in iterable type array\\.$#" + message: '#^PHPDoc tag @var for variable \$row has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Partitioning/Partition.php - - message: "#^PhpMyAdmin\\\\Partitioning\\\\Partition\\:\\:__construct\\(\\) does not call parent constructor from PhpMyAdmin\\\\Partitioning\\\\SubPartition\\.$#" + message: '#^PhpMyAdmin\\Partitioning\\Partition\:\:__construct\(\) does not call parent constructor from PhpMyAdmin\\Partitioning\\SubPartition\.$#' + identifier: constructor.missingParentCall count: 1 path: src/Partitioning/Partition.php - - message: "#^Property PhpMyAdmin\\\\Partitioning\\\\Partition\\:\\:\\$description \\(string\\|null\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Partitioning\\Partition\:\:\$description \(string\|null\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/Partitioning/Partition.php - - message: "#^Property PhpMyAdmin\\\\Partitioning\\\\SubPartition\\:\\:\\$expression \\(string\\|null\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Partitioning\\SubPartition\:\:\$expression \(string\|null\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/Partitioning/Partition.php - - message: "#^Property PhpMyAdmin\\\\Partitioning\\\\SubPartition\\:\\:\\$method \\(string\\|null\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Partitioning\\SubPartition\:\:\$method \(string\|null\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/Partitioning/Partition.php - - message: "#^Property PhpMyAdmin\\\\Partitioning\\\\SubPartition\\:\\:\\$name \\(string\\|null\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Partitioning\\SubPartition\:\:\$name \(string\|null\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/Partitioning/Partition.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 4 path: src/Partitioning/SubPartition.php - - message: "#^Property PhpMyAdmin\\\\Partitioning\\\\SubPartition\\:\\:\\$comment \\(string\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Partitioning\\SubPartition\:\:\$comment \(string\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/Partitioning/SubPartition.php - - message: "#^Property PhpMyAdmin\\\\Partitioning\\\\SubPartition\\:\\:\\$expression \\(string\\|null\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Partitioning\\SubPartition\:\:\$expression \(string\|null\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/Partitioning/SubPartition.php - - message: "#^Property PhpMyAdmin\\\\Partitioning\\\\SubPartition\\:\\:\\$method \\(string\\|null\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Partitioning\\SubPartition\:\:\$method \(string\|null\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/Partitioning/SubPartition.php - - message: "#^Property PhpMyAdmin\\\\Partitioning\\\\SubPartition\\:\\:\\$name \\(string\\|null\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Partitioning\\SubPartition\:\:\$name \(string\|null\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/Partitioning/SubPartition.php - - message: "#^Cannot access offset 'comment' on mixed\\.$#" + message: '#^Binary operation "\." between mixed and ''_s'' results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Partitioning/TablePartitionDefinition.php - - message: "#^Cannot access offset 'data_directory' on mixed\\.$#" + message: '#^Cannot access offset ''comment'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Partitioning/TablePartitionDefinition.php - - message: "#^Cannot access offset 'engine' on mixed\\.$#" + message: '#^Cannot access offset ''data_directory'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Partitioning/TablePartitionDefinition.php + + - + message: '#^Cannot access offset ''engine'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Partitioning/TablePartitionDefinition.php - - message: "#^Cannot access offset 'index_directory' on mixed\\.$#" + message: '#^Cannot access offset ''index_directory'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Partitioning/TablePartitionDefinition.php - - message: "#^Cannot access offset 'max_rows' on mixed\\.$#" + message: '#^Cannot access offset ''max_rows'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Partitioning/TablePartitionDefinition.php - - message: "#^Cannot access offset 'min_rows' on mixed\\.$#" + message: '#^Cannot access offset ''min_rows'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Partitioning/TablePartitionDefinition.php - - message: "#^Cannot access offset 'name' on mixed\\.$#" + message: '#^Cannot access offset ''name'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Partitioning/TablePartitionDefinition.php - - message: "#^Cannot access offset 'node_group' on mixed\\.$#" + message: '#^Cannot access offset ''node_group'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Partitioning/TablePartitionDefinition.php - - message: "#^Cannot access offset 'prefix' on mixed\\.$#" + message: '#^Cannot access offset ''prefix'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Partitioning/TablePartitionDefinition.php - - message: "#^Cannot access offset 'subpartition_count' on mixed\\.$#" + message: '#^Cannot access offset ''subpartition_count'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Partitioning/TablePartitionDefinition.php - - message: "#^Cannot access offset 'subpartitions' on mixed\\.$#" + message: '#^Cannot access offset ''subpartitions'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Partitioning/TablePartitionDefinition.php - - message: "#^Cannot access offset 'tablespace' on mixed\\.$#" + message: '#^Cannot access offset ''tablespace'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Partitioning/TablePartitionDefinition.php - - message: "#^Cannot access offset 'value' on mixed\\.$#" + message: '#^Cannot access offset ''value'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Partitioning/TablePartitionDefinition.php - - message: "#^Cannot access offset 'value_type' on mixed\\.$#" + message: '#^Cannot access offset ''value_type'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Partitioning/TablePartitionDefinition.php - - message: "#^Parameter \\#1 \\$array of function array_splice expects array, mixed given\\.$#" + message: '#^Parameter \#1 \$array of function array_splice expects array, mixed given\.$#' + identifier: argument.type count: 2 path: src/Partitioning/TablePartitionDefinition.php - - message: "#^Parameter \\#2 \\$offset of function array_splice expects int, mixed given\\.$#" + message: '#^Parameter \#2 \$offset of function array_splice expects int, mixed given\.$#' + identifier: argument.type count: 2 path: src/Partitioning/TablePartitionDefinition.php - - message: "#^Cannot access offset int\\<1, max\\> on mixed\\.$#" + message: '#^Cannot access offset int\<1, max\> on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Pdf.php - - message: "#^Parameter \\#1 \\$str of function strtr expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$str of function strtr expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Pdf.php - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#' + identifier: argument.type count: 1 path: src/Pdf.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Parameter \#4 \$currentfont of static method TCPDF_FONTS\:\:UTF8ToUTF16BE\(\) expects array, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Pdf.php + + - + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Plugins.php - - message: "#^Call to an undefined method PhpMyAdmin\\\\Properties\\\\Options\\\\OptionsPropertyItem\\:\\:getProperties\\(\\)\\.$#" + message: '#^Call to an undefined method PhpMyAdmin\\Properties\\Options\\OptionsPropertyItem\:\:getProperties\(\)\.$#' + identifier: method.notFound count: 1 path: src/Plugins.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: src/Plugins.php - - message: "#^Call to function method_exists\\(\\) with PhpMyAdmin\\\\Properties\\\\Options\\\\OptionsPropertyItem and 'getText' will always evaluate to true\\.$#" + message: '#^Call to function method_exists\(\) with PhpMyAdmin\\Properties\\Options\\OptionsPropertyItem and ''getText'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: src/Plugins.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Plugins.php - - message: "#^Method PhpMyAdmin\\\\Plugins\\:\\:getString\\(\\) should return string but returns mixed\\.$#" - count: 1 - path: src/Plugins.php - - - - message: "#^Parameter \\#1 \\$link of static method PhpMyAdmin\\\\Html\\\\MySQLDocumentation\\:\\:show\\(\\) expects string, mixed given\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed count: 2 path: src/Plugins.php - - message: "#^Parameter \\#1 \\$name of static method PhpMyAdmin\\\\Plugins\\:\\:getString\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 2 path: src/Plugins.php - - message: "#^Parameter \\#1 \\$string of function htmlspecialchars expects string, bool\\|int\\<0, max\\>\\|string given\\.$#" + message: '#^Method PhpMyAdmin\\Plugins\:\:getString\(\) should return string but returns mixed\.$#' + identifier: return.type count: 1 path: src/Plugins.php - - message: "#^Parameter \\#1 \\$string of function htmlspecialchars expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$link of static method PhpMyAdmin\\Html\\MySQLDocumentation\:\:show\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Plugins.php - - message: "#^Parameter \\#2 \\$anchor of static method PhpMyAdmin\\\\Html\\\\MySQLDocumentation\\:\\:showDocumentation\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$name of static method PhpMyAdmin\\Plugins\:\:getString\(\) expects string\|null, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Plugins.php + + - + message: '#^Parameter \#1 \$string of function htmlspecialchars expects string, bool\|int\<0, max\>\|string given\.$#' + identifier: argument.type count: 1 path: src/Plugins.php - - message: "#^Parameter \\#2 \\$replace of function str_replace expects array\\|string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function htmlspecialchars expects string, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Plugins.php + + - + message: '#^Parameter \#2 \$anchor of static method PhpMyAdmin\\Html\\MySQLDocumentation\:\:showDocumentation\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Plugins.php - - message: "#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, bool\\|int\\<0, max\\>\\|string given\\.$#" + message: '#^Parameter \#2 \$replace of function str_replace expects array\\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Plugins.php - - message: "#^Parameter \\#5 \\$anchor of static method PhpMyAdmin\\\\Html\\\\MySQLDocumentation\\:\\:show\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$subject of function str_replace expects array\\|string, bool\|int\<0, max\>\|string given\.$#' + identifier: argument.type count: 1 path: src/Plugins.php - - message: "#^Result of \\|\\| is always false\\.$#" + message: '#^Parameter \#5 \$anchor of static method PhpMyAdmin\\Html\\MySQLDocumentation\:\:show\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Plugins.php + + - + message: '#^Result of \|\| is always false\.$#' + identifier: booleanOr.alwaysFalse count: 3 path: src/Plugins.php - - message: "#^Strict comparison using \\=\\=\\= between \\(class\\-string\\&literal\\-string\\)\\|null and 'PhpMyAdmin\\\\\\\\Properties\\\\\\\\Options\\\\\\\\Items\\\\\\\\BoolPropertyItem' will always evaluate to false\\.$#" + message: '#^Strict comparison using \=\=\= between \(class\-string\&literal\-string\)\|null and ''PhpMyAdmin\\\\Properties\\\\Options\\\\Items\\\\BoolPropertyItem'' will always evaluate to false\.$#' + identifier: identical.alwaysFalse count: 1 path: src/Plugins.php - - message: "#^Strict comparison using \\=\\=\\= between \\(class\\-string\\&literal\\-string\\)\\|null and 'PhpMyAdmin\\\\\\\\Properties\\\\\\\\Options\\\\\\\\Items\\\\\\\\MessageOnlyPropertyItem' will always evaluate to false\\.$#" + message: '#^Strict comparison using \=\=\= between \(class\-string\&literal\-string\)\|null and ''PhpMyAdmin\\\\Properties\\\\Options\\\\Items\\\\MessageOnlyPropertyItem'' will always evaluate to false\.$#' + identifier: identical.alwaysFalse count: 1 path: src/Plugins.php - - message: "#^Strict comparison using \\=\\=\\= between \\(class\\-string\\&literal\\-string\\)\\|null and 'PhpMyAdmin\\\\\\\\Properties\\\\\\\\Options\\\\\\\\Items\\\\\\\\SelectPropertyItem' will always evaluate to false\\.$#" + message: '#^Strict comparison using \=\=\= between \(class\-string\&literal\-string\)\|null and ''PhpMyAdmin\\\\Properties\\\\Options\\\\Items\\\\SelectPropertyItem'' will always evaluate to false\.$#' + identifier: identical.alwaysFalse count: 1 path: src/Plugins.php - - message: "#^Strict comparison using \\=\\=\\= between \\(class\\-string\\&literal\\-string\\)\\|null and 'PhpMyAdmin\\\\\\\\Properties\\\\\\\\Options\\\\\\\\Items\\\\\\\\TextPropertyItem' will always evaluate to false\\.$#" + message: '#^Strict comparison using \=\=\= between \(class\-string\&literal\-string\)\|null and ''PhpMyAdmin\\\\Properties\\\\Options\\\\Items\\\\TextPropertyItem'' will always evaluate to false\.$#' + identifier: identical.alwaysFalse count: 1 path: src/Plugins.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: src/Plugins/Auth/AuthenticationConfig.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Plugins/Auth/AuthenticationConfig.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 2 + path: src/Plugins/Auth/AuthenticationConfig.php + + - + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 1 + path: src/Plugins/Auth/AuthenticationConfig.php + + - + message: '#^Only booleans are allowed in &&, mixed given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean + count: 1 + path: src/Plugins/Auth/AuthenticationConfig.php + + - + message: '#^Only booleans are allowed in &&, mixed given on the right side\.$#' + identifier: booleanAnd.rightNotBoolean + count: 1 + path: src/Plugins/Auth/AuthenticationConfig.php + + - + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Plugins/Auth/AuthenticationCookie.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 8 path: src/Plugins/Auth/AuthenticationCookie.php - - message: "#^Call to function base64_decode\\(\\) requires parameter \\#2 to be set\\.$#" + message: '#^Call to function base64_decode\(\) requires parameter \#2 to be set\.$#' + identifier: function.strict count: 1 path: src/Plugins/Auth/AuthenticationCookie.php - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" + message: '#^Call to function in_array\(\) requires parameter \#3 to be set\.$#' + identifier: function.strict count: 1 path: src/Plugins/Auth/AuthenticationCookie.php - - message: "#^Cannot access offset mixed on mixed\\.$#" + message: '#^Cannot access offset mixed on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/Auth/AuthenticationCookie.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 1 path: src/Plugins/Auth/AuthenticationCookie.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 1 path: src/Plugins/Auth/AuthenticationCookie.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 21 path: src/Plugins/Auth/AuthenticationCookie.php - - message: "#^Foreach overwrites \\$value with its value variable\\.$#" + message: '#^Foreach overwrites \$value with its value variable\.$#' + identifier: foreach.valueOverwrite count: 1 path: src/Plugins/Auth/AuthenticationCookie.php - - message: "#^Offset 'CaptchaSiteVerifyURL' on array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\} on left side of \\?\\? always exists and is not nullable\\.$#" - count: 1 - path: src/Plugins/Auth/AuthenticationCookie.php - - - - message: "#^Only booleans are allowed in an elseif condition, string\\|false given\\.$#" - count: 1 - path: src/Plugins/Auth/AuthenticationCookie.php - - - - message: "#^Only booleans are allowed in an if condition, string given\\.$#" - count: 1 - path: src/Plugins/Auth/AuthenticationCookie.php - - - - message: "#^Parameter \\#1 \\$encryptedData of method PhpMyAdmin\\\\Plugins\\\\Auth\\\\AuthenticationCookie\\:\\:cookieDecrypt\\(\\) expects string, mixed given\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed count: 2 path: src/Plugins/Auth/AuthenticationCookie.php - - message: "#^Parameter \\#1 \\$name of static method PhpMyAdmin\\\\Core\\:\\:sanitizeMySQLHost\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Plugins/Auth/AuthenticationCookie.php - - - - message: "#^Parameter \\#1 \\$name of static method PhpMyAdmin\\\\Core\\:\\:sanitizeMySQLUser\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Plugins/Auth/AuthenticationCookie.php - - - - message: "#^Parameter \\#1 \\$response of method ReCaptcha\\\\ReCaptcha\\:\\:verify\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Plugins/Auth/AuthenticationCookie.php - - - - message: "#^Parameter \\#1 \\$string of function strlen expects string, mixed given\\.$#" - count: 1 - path: src/Plugins/Auth/AuthenticationCookie.php - - - - message: "#^Parameter \\#2 \\$remoteIp of method ReCaptcha\\\\ReCaptcha\\:\\:verify\\(\\) expects string\\|null, bool\\|string given\\.$#" - count: 1 - path: src/Plugins/Auth/AuthenticationCookie.php - - - - message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 2 path: src/Plugins/Auth/AuthenticationCookie.php - - message: "#^Parameter \\#2 \\$subject of function preg_match expects string, mixed given\\.$#" + message: '#^Offset ''CaptchaSiteVerifyURL'' on array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\} on left side of \?\? always exists and is not nullable\.$#' + identifier: nullCoalesce.offset count: 1 path: src/Plugins/Auth/AuthenticationCookie.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept array\\{host\\: mixed, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\.$#" + message: '#^Only booleans are allowed in an elseif condition, string\|false given\.$#' + identifier: elseif.condNotBoolean count: 1 path: src/Plugins/Auth/AuthenticationCookie.php - - message: "#^Property PhpMyAdmin\\\\Plugins\\\\AuthenticationPlugin\\:\\:\\$password \\(string\\) does not accept mixed\\.$#" + message: '#^Only booleans are allowed in an if condition, mixed given\.$#' + identifier: if.condNotBoolean + count: 1 + path: src/Plugins/Auth/AuthenticationCookie.php + + - + message: '#^Only booleans are allowed in an if condition, string given\.$#' + identifier: if.condNotBoolean + count: 1 + path: src/Plugins/Auth/AuthenticationCookie.php + + - + message: '#^Parameter \#1 \$encryptedData of method PhpMyAdmin\\Plugins\\Auth\\AuthenticationCookie\:\:cookieDecrypt\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Plugins/Auth/AuthenticationCookie.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Parameter \#1 \$name of static method PhpMyAdmin\\Core\:\:sanitizeMySQLHost\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Plugins/Auth/AuthenticationCookie.php + + - + message: '#^Parameter \#1 \$name of static method PhpMyAdmin\\Core\:\:sanitizeMySQLUser\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Plugins/Auth/AuthenticationCookie.php + + - + message: '#^Parameter \#1 \$response of method ReCaptcha\\ReCaptcha\:\:verify\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Plugins/Auth/AuthenticationCookie.php + + - + message: '#^Parameter \#1 \$string of function strlen expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Plugins/Auth/AuthenticationCookie.php + + - + message: '#^Parameter \#2 \$remoteIp of method ReCaptcha\\ReCaptcha\:\:verify\(\) expects string\|null, bool\|string given\.$#' + identifier: argument.type + count: 1 + path: src/Plugins/Auth/AuthenticationCookie.php + + - + message: '#^Parameter \#2 \$string of function explode expects string, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Plugins/Auth/AuthenticationCookie.php + + - + message: '#^Parameter \#2 \$subject of function preg_match expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Plugins/Auth/AuthenticationCookie.php + + - + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept array\{host\: mixed, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\.$#' + identifier: assign.propertyType + count: 1 + path: src/Plugins/Auth/AuthenticationCookie.php + + - + message: '#^Property PhpMyAdmin\\Plugins\\AuthenticationPlugin\:\:\$password \(string\) does not accept mixed\.$#' + identifier: assign.propertyType + count: 2 + path: src/Plugins/Auth/AuthenticationCookie.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Plugins/Auth/AuthenticationHttp.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Plugins/Auth/AuthenticationHttp.php - - message: "#^Call to function base64_decode\\(\\) requires parameter \\#2 to be set\\.$#" + message: '#^Call to function base64_decode\(\) requires parameter \#2 to be set\.$#' + identifier: function.strict count: 1 path: src/Plugins/Auth/AuthenticationHttp.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 4 path: src/Plugins/Auth/AuthenticationHttp.php - - message: "#^Only booleans are allowed in &&, string given on the left side\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed count: 1 path: src/Plugins/Auth/AuthenticationHttp.php - - message: "#^Only booleans are allowed in an if condition, int\\<0, max\\>\\|false given\\.$#" + message: '#^Only booleans are allowed in &&, string given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 1 path: src/Plugins/Auth/AuthenticationHttp.php - - message: "#^Parameter \\#1 \\$known_string of function hash_equals expects string, mixed given\\.$#" + message: '#^Only booleans are allowed in an if condition, int\<0, max\>\|false given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Plugins/Auth/AuthenticationHttp.php - - message: "#^Property PhpMyAdmin\\\\Plugins\\\\AuthenticationPlugin\\:\\:\\$password \\(string\\) does not accept mixed\\.$#" + message: '#^Parameter \#1 \$known_string of function hash_equals expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Plugins/Auth/AuthenticationHttp.php - - message: "#^Property PhpMyAdmin\\\\Plugins\\\\AuthenticationPlugin\\:\\:\\$user \\(string\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Plugins\\AuthenticationPlugin\:\:\$password \(string\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/Plugins/Auth/AuthenticationHttp.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Property PhpMyAdmin\\Plugins\\AuthenticationPlugin\:\:\$user \(string\) does not accept mixed\.$#' + identifier: assign.propertyType + count: 1 + path: src/Plugins/Auth/AuthenticationHttp.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 5 path: src/Plugins/Auth/AuthenticationSignon.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 2 path: src/Plugins/Auth/AuthenticationSignon.php - - message: "#^Parameter \\#1 \\$id of function session_id expects string\\|null, mixed given\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 1 + path: src/Plugins/Auth/AuthenticationSignon.php + + - + message: '#^Parameter \#1 \$id of function session_id expects string\|null, mixed given\.$#' + identifier: argument.type count: 2 path: src/Plugins/Auth/AuthenticationSignon.php - - message: "#^Parameter \\#1 \\$options of function session_set_cookie_params expects array\\{lifetime\\?\\: int, path\\?\\: string, domain\\?\\: string\\|null, secure\\?\\: bool, httponly\\?\\: bool, samesite\\?\\: string\\}, array given\\.$#" + message: '#^Parameter \#1 \$options of function session_set_cookie_params expects array\{lifetime\?\: int, path\?\: string, domain\?\: string\|null, secure\?\: bool, httponly\?\: bool, samesite\?\: string\}, array given\.$#' + identifier: argument.type count: 1 path: src/Plugins/Auth/AuthenticationSignon.php - - message: "#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, mixed given\\.$#" + message: '#^Parameter \#2 \.\.\.\$arrays of function array_merge expects array, mixed given\.$#' + identifier: argument.type count: 1 path: src/Plugins/Auth/AuthenticationSignon.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept array\\{host\\: mixed, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept array\{host\: mixed, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\.$#' + identifier: assign.propertyType count: 1 path: src/Plugins/Auth/AuthenticationSignon.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept array\\{host\\: string, port\\: mixed, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept array\{host\: string, port\: mixed, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\.$#' + identifier: assign.propertyType count: 1 path: src/Plugins/Auth/AuthenticationSignon.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept non\\-empty\\-array\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType count: 1 path: src/Plugins/Auth/AuthenticationSignon.php - - message: "#^Property PhpMyAdmin\\\\Plugins\\\\AuthenticationPlugin\\:\\:\\$password \\(string\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Plugins\\AuthenticationPlugin\:\:\$password \(string\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/Plugins/Auth/AuthenticationSignon.php - - message: "#^Property PhpMyAdmin\\\\Plugins\\\\AuthenticationPlugin\\:\\:\\$user \\(string\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Plugins\\AuthenticationPlugin\:\:\$user \(string\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/Plugins/Auth/AuthenticationSignon.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between ''\#'' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Plugins/AuthenticationPlugin.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 6 path: src/Plugins/AuthenticationPlugin.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Plugins/AuthenticationPlugin.php - - message: "#^Cannot access offset string on mixed\\.$#" + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/AuthenticationPlugin.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 1 path: src/Plugins/AuthenticationPlugin.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 1 path: src/Plugins/AuthenticationPlugin.php - - message: "#^Casting to int something that's already int\\<1, max\\>\\.$#" + message: '#^Casting to int something that''s already int\<1, max\>\.$#' + identifier: cast.useless count: 1 path: src/Plugins/AuthenticationPlugin.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Plugins/AuthenticationPlugin.php - - message: "#^Parameter \\#1 \\$url of method PhpMyAdmin\\\\ResponseRenderer\\:\\:redirect\\(\\) expects non\\-empty\\-string, string given\\.$#" + message: '#^Parameter \#1 \$url of method PhpMyAdmin\\ResponseRenderer\:\:redirect\(\) expects non\-empty\-string, string given\.$#' + identifier: argument.type count: 1 path: src/Plugins/AuthenticationPlugin.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Plugins/AuthenticationPluginFactory.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: src/Plugins/Export/ExportCodegen.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 1 path: src/Plugins/Export/ExportCodegen.php - - message: "#^Parameter \\#1 \\$str of static method PhpMyAdmin\\\\Plugins\\\\Export\\\\ExportCodegen\\:\\:cgMakeIdentifier\\(\\) expects string, mixed given\\.$#" - count: 9 + message: '#^Parameter \#1 \$str of static method PhpMyAdmin\\Plugins\\Export\\ExportCodegen\:\:cgMakeIdentifier\(\) expects string, string\|null given\.$#' + identifier: argument.type + count: 6 path: src/Plugins/Export/ExportCodegen.php - - message: "#^Parameter \\#2 \\$id of method PhpMyAdmin\\\\Plugins\\\\ExportPlugin\\:\\:getAlias\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#2 \$id of method PhpMyAdmin\\Plugins\\ExportPlugin\:\:getAlias\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 2 path: src/Plugins/Export/ExportCodegen.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ - count: 2 - path: src/Plugins/Export/ExportCsv.php - - - - message: "#^Cannot access offset 'columns' on mixed\\.$#" + message: '#^Binary operation "\." between mixed and ''_null'' results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Plugins/Export/ExportCsv.php - - message: "#^Cannot access offset 'tables' on mixed\\.$#" + message: '#^Binary operation "\." between mixed and ''_removeCRLF'' results in an error\.$#' + identifier: binaryOp.invalid + count: 2 + path: src/Plugins/Export/ExportCsv.php + + - + message: '#^Binary operation "\." between mixed and \(list\\|string\) results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Plugins/Export/ExportCsv.php - - message: "#^Cannot access offset string on mixed\\.$#" - count: 2 - path: src/Plugins/Export/ExportCsv.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 2 - path: src/Plugins/Export/ExportCsv.php - - - - message: "#^Parameter \\#1 \\$search of function str_replace expects array\\|string, mixed given\\.$#" + message: '#^Binary operation "\." between mixed and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 4 path: src/Plugins/Export/ExportCsv.php - - message: "#^Parameter \\#1 \\$separator of function implode expects array\\|string, mixed given\\.$#" + message: '#^Binary operation "\." between mixed and string results in an error\.$#' + identifier: binaryOp.invalid count: 2 path: src/Plugins/Export/ExportCsv.php - - message: "#^Parameter \\#1 \\$string of function mb_strtolower expects string, mixed given\\.$#" + message: '#^Binary operation "\." between string and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 5 + path: src/Plugins/Export/ExportCsv.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 2 + path: src/Plugins/Export/ExportCsv.php + + - + message: '#^Cannot access offset ''columns'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/Export/ExportCsv.php - - message: "#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, mixed given\\.$#" + message: '#^Cannot access offset ''tables'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Plugins/Export/ExportCsv.php + + - + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 2 + path: src/Plugins/Export/ExportCsv.php + + - + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed + count: 2 + path: src/Plugins/Export/ExportCsv.php + + - + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 1 + path: src/Plugins/Export/ExportCsv.php + + - + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 2 + path: src/Plugins/Export/ExportCsv.php + + - + message: '#^Only booleans are allowed in &&, mixed given on the right side\.$#' + identifier: booleanAnd.rightNotBoolean + count: 2 + path: src/Plugins/Export/ExportCsv.php + + - + message: '#^Parameter \#1 \$search of function str_replace expects array\\|string, mixed given\.$#' + identifier: argument.type + count: 4 + path: src/Plugins/Export/ExportCsv.php + + - + message: '#^Parameter \#1 \$separator of function implode expects array\|string, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Plugins/Export/ExportCsv.php + + - + message: '#^Parameter \#1 \$string of function mb_strtolower expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Plugins/Export/ExportCsv.php + + - + message: '#^Parameter \#3 \$subject of function str_replace expects array\\|string, mixed given\.$#' + identifier: argument.type count: 3 path: src/Plugins/Export/ExportCsv.php - - message: "#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, string\\|null given\\.$#" + message: '#^Parameter \#3 \$subject of function str_replace expects array\\|string, string\|null given\.$#' + identifier: argument.type count: 3 path: src/Plugins/Export/ExportCsv.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between ''\\\}\\>\\}\\>\\|null, array given\\.$#" + message: '#^Only booleans are allowed in &&, mixed given on the right side\.$#' + identifier: booleanAnd.rightNotBoolean + count: 2 + path: src/Plugins/Export/ExportJson.php + + - + message: '#^Parameter \#4 \$aliases of method PhpMyAdmin\\Plugins\\Export\\ExportJson\:\:doExportForQuery\(\) expects array\\}\>\}\>\|null, array\ given\.$#' + identifier: argument.type count: 1 path: src/Plugins/Export/ExportJson.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between mixed and "\\000" results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Plugins/Export/ExportLatex.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between mixed and '' & '' results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Plugins/Export/ExportLatex.php + + - + message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Plugins/Export/ExportLatex.php + + - + message: '#^Binary operation "\.\=" between string and mixed results in an error\.$#' + identifier: assignOp.invalid + count: 1 + path: src/Plugins/Export/ExportLatex.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 1 + path: src/Plugins/Export/ExportLatex.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 4 path: src/Plugins/Export/ExportLatex.php - - message: "#^Cannot access offset 'columns' on mixed\\.$#" + message: '#^Cannot access offset ''columns'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Plugins/Export/ExportLatex.php - - message: "#^Cannot access offset 'export_type' on mixed\\.$#" + message: '#^Cannot access offset ''export_type'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/Export/ExportLatex.php - - message: "#^Cannot access offset 'single_table' on mixed\\.$#" + message: '#^Cannot access offset ''single_table'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/Export/ExportLatex.php - - message: "#^Cannot access offset 'tables' on mixed\\.$#" + message: '#^Cannot access offset ''tables'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Plugins/Export/ExportLatex.php - - message: "#^Cannot access offset string on mixed\\.$#" + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: src/Plugins/Export/ExportLatex.php - - message: "#^Cannot call method fetchAssoc\\(\\) on PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false\\.$#" + message: '#^Cannot call method fetchAssoc\(\) on PhpMyAdmin\\Dbal\\ResultInterface\|false\.$#' + identifier: method.nonObject count: 1 path: src/Plugins/Export/ExportLatex.php - - message: "#^Cannot call method getFieldNames\\(\\) on PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false\\.$#" + message: '#^Cannot call method getFieldNames\(\) on PhpMyAdmin\\Dbal\\ResultInterface\|false\.$#' + identifier: method.nonObject count: 1 path: src/Plugins/Export/ExportLatex.php - - message: "#^Cannot call method numFields\\(\\) on PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false\\.$#" + message: '#^Cannot call method numFields\(\) on PhpMyAdmin\\Dbal\\ResultInterface\|false\.$#' + identifier: method.nonObject count: 1 path: src/Plugins/Export/ExportLatex.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 4 path: src/Plugins/Export/ExportLatex.php - - message: "#^Parameter \\#1 \\$string of static method PhpMyAdmin\\\\Plugins\\\\Export\\\\ExportLatex\\:\\:texEscape\\(\\) expects string, mixed given\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed count: 1 path: src/Plugins/Export/ExportLatex.php - - message: "#^Parameter \\#1 \\$string of static method PhpMyAdmin\\\\Util\\:\\:expandUserString\\(\\) expects string, mixed given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean + count: 1 + path: src/Plugins/Export/ExportLatex.php + + - + message: '#^Parameter \#1 \$string of static method PhpMyAdmin\\Plugins\\Export\\ExportLatex\:\:texEscape\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Plugins/Export/ExportLatex.php + + - + message: '#^Parameter \#1 \$string of static method PhpMyAdmin\\Util\:\:expandUserString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 6 path: src/Plugins/Export/ExportLatex.php - - message: "#^Parameter \\#3 \\$updates of static method PhpMyAdmin\\\\Util\\:\\:expandUserString\\(\\) expects array\\, array\\ given\\.$#" - count: 6 - path: src/Plugins/Export/ExportLatex.php + message: '#^Binary operation "\." between '' \! '' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Plugins/Export/ExportMediawiki.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between '' \| '' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Plugins/Export/ExportMediawiki.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 3 path: src/Plugins/Export/ExportMediawiki.php - - message: "#^Cannot access offset 'columns' on mixed\\.$#" + message: '#^Cannot access offset ''columns'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Plugins/Export/ExportMediawiki.php - - message: "#^Cannot access offset 'tables' on mixed\\.$#" + message: '#^Cannot access offset ''tables'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Plugins/Export/ExportMediawiki.php - - message: "#^Cannot access offset string on mixed\\.$#" + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: src/Plugins/Export/ExportMediawiki.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 2 path: src/Plugins/Export/ExportMediawiki.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, mixed given\\.$#" - count: 2 + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 1 path: src/Plugins/Export/ExportMediawiki.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between mixed and ''_columns'' results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Plugins/Export/ExportOds.php + + - + message: '#^Binary operation "\." between mixed and ''_null'' results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Plugins/Export/ExportOds.php + + - + message: '#^Binary operation "\.\=" between mixed and ''\\\|string\\|null\\) given\\.$#" + message: '#^Parameter \#3 \$subject of function preg_replace expects array\\|string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Plugins/Export/ExportPhparray.php - - message: "#^Parameter \\#2 \\$subject of function preg_match expects string, mixed given\\.$#" + message: '#^Binary operation "\." between ''SET SQL_MODE\="'' and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 - path: src/Plugins/Export/ExportPhparray.php + path: src/Plugins/Export/ExportSql.php - - message: "#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, mixed given\\.$#" + message: '#^Binary operation "\." between ''SET time_zone \= "'' and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 - path: src/Plugins/Export/ExportPhparray.php + path: src/Plugins/Export/ExportSql.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Plugins/Export/ExportSql.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 4 path: src/Plugins/Export/ExportSql.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 15 path: src/Plugins/Export/ExportSql.php - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" + message: '#^Call to function in_array\(\) requires parameter \#3 to be set\.$#' + identifier: function.strict count: 2 path: src/Plugins/Export/ExportSql.php - - message: "#^Cannot access offset 'Type' on mixed\\.$#" + message: '#^Cannot access offset ''Type'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/Export/ExportSql.php - - message: "#^Cannot access offset 'alias' on mixed\\.$#" + message: '#^Cannot access offset ''alias'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: src/Plugins/Export/ExportSql.php - - message: "#^Cannot access offset 'columns' on mixed\\.$#" + message: '#^Cannot access offset ''columns'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 8 path: src/Plugins/Export/ExportSql.php - - message: "#^Cannot access offset 'export_type' on mixed\\.$#" + message: '#^Cannot access offset ''export_type'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Plugins/Export/ExportSql.php - - message: "#^Cannot access offset 'single_table' on mixed\\.$#" + message: '#^Cannot access offset ''single_table'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/Export/ExportSql.php - - message: "#^Cannot access offset 'tables' on mixed\\.$#" + message: '#^Cannot access offset ''tables'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 11 path: src/Plugins/Export/ExportSql.php - - message: "#^Cannot access offset \\(int\\|string\\) on mixed\\.$#" + message: '#^Cannot access offset \(int\|string\) on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Plugins/Export/ExportSql.php - - message: "#^Cannot access offset int\\|string on mixed\\.$#" + message: '#^Cannot access offset int\|string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/Export/ExportSql.php - - message: "#^Cannot access offset string on mixed\\.$#" + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 10 path: src/Plugins/Export/ExportSql.php - - message: "#^Cannot access offset string\\|null on mixed\\.$#" + message: '#^Cannot access offset string\|null on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 7 path: src/Plugins/Export/ExportSql.php - - message: "#^Cannot access property \\$database on PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" + message: '#^Cannot access property \$database on PhpMyAdmin\\SqlParser\\Components\\Expression\|null\.$#' + identifier: property.nonObject count: 2 path: src/Plugins/Export/ExportSql.php - - message: "#^Cannot access property \\$expr on PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" + message: '#^Cannot access property \$expr on PhpMyAdmin\\SqlParser\\Components\\Expression\|null\.$#' + identifier: property.nonObject count: 3 path: src/Plugins/Export/ExportSql.php - - message: "#^Cannot access property \\$table on PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" + message: '#^Cannot access property \$table on PhpMyAdmin\\SqlParser\\Components\\Expression\|null\.$#' + identifier: property.nonObject count: 7 path: src/Plugins/Export/ExportSql.php - - message: "#^Cannot call method get\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" + message: '#^Cannot call method get\(\) on PhpMyAdmin\\SqlParser\\Components\\OptionsArray\|null\.$#' + identifier: method.nonObject count: 1 path: src/Plugins/Export/ExportSql.php - - message: "#^Cannot call method has\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" + message: '#^Cannot call method has\(\) on PhpMyAdmin\\SqlParser\\Components\\OptionsArray\|null\.$#' + identifier: method.nonObject count: 7 path: src/Plugins/Export/ExportSql.php - - message: "#^Cannot call method remove\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" + message: '#^Cannot call method remove\(\) on PhpMyAdmin\\SqlParser\\Components\\OptionsArray\|null\.$#' + identifier: method.nonObject count: 7 path: src/Plugins/Export/ExportSql.php - - message: "#^Casting to string something that's already string\\.$#" + message: '#^Casting to string something that''s already string\.$#' + identifier: cast.useless count: 2 path: src/Plugins/Export/ExportSql.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 41 path: src/Plugins/Export/ExportSql.php - - message: "#^Only booleans are allowed in &&, mixed given on the left side\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed count: 1 path: src/Plugins/Export/ExportSql.php - - message: "#^Only booleans are allowed in an if condition, bool\\|null given\\.$#" + message: '#^Method PhpMyAdmin\\Plugins\\Export\\ExportSql\:\:replaceWithAliases\(\) never assigns null to &\$flag so it can be removed from the by\-ref type\.$#' + identifier: parameterByRef.unusedType count: 1 path: src/Plugins/Export/ExportSql.php - - message: "#^Only booleans are allowed in \\|\\|, array\\ given on the left side\\.$#" + message: '#^Only booleans are allowed in &&, bool\|null given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 1 path: src/Plugins/Export/ExportSql.php - - message: "#^Only booleans are allowed in \\|\\|, array\\ given on the right side\\.$#" + message: '#^Only booleans are allowed in &&, mixed given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 1 path: src/Plugins/Export/ExportSql.php - - message: "#^Parameter \\#1 \\$haystack of function str_contains expects string, string\\|null given\\.$#" + message: '#^Only booleans are allowed in &&, mixed given on the right side\.$#' + identifier: booleanAnd.rightNotBoolean + count: 6 + path: src/Plugins/Export/ExportSql.php + + - + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean + count: 1 + path: src/Plugins/Export/ExportSql.php + + - + message: '#^Only booleans are allowed in an if condition, bool\|null given\.$#' + identifier: if.condNotBoolean count: 3 path: src/Plugins/Export/ExportSql.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, mixed given\\.$#" - count: 8 + message: '#^Only booleans are allowed in \|\|, list\ given on the left side\.$#' + identifier: booleanOr.leftNotBoolean + count: 1 path: src/Plugins/Export/ExportSql.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquoteCompat\\(\\) expects string\\|Stringable\\|null, mixed given\\.$#" - count: 17 + message: '#^Only booleans are allowed in \|\|, list\ given on the right side\.$#' + identifier: booleanOr.rightNotBoolean + count: 1 path: src/Plugins/Export/ExportSql.php - - message: "#^Parameter \\#2 \\$compat of method PhpMyAdmin\\\\Plugins\\\\Export\\\\ExportSql\\:\\:exportUseStatement\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$haystack of function str_contains expects string, string\|null given\.$#' + identifier: argument.type + count: 3 + path: src/Plugins/Export/ExportSql.php + + - + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#' + identifier: argument.type + count: 3 + path: src/Plugins/Export/ExportSql.php + + - + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquoteCompat\(\) expects string\|Stringable\|null, mixed given\.$#' + identifier: argument.type + count: 5 + path: src/Plugins/Export/ExportSql.php + + - + message: '#^Parameter \#2 \$compat of method PhpMyAdmin\\Plugins\\Export\\ExportSql\:\:exportUseStatement\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Plugins/Export/ExportSql.php - - message: "#^Parameter \\#2 \\$compatibility of static method PhpMyAdmin\\\\Util\\:\\:backquoteCompat\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$compatibility of static method PhpMyAdmin\\Util\:\:backquoteCompat\(\) expects string, mixed given\.$#' + identifier: argument.type count: 13 path: src/Plugins/Export/ExportSql.php - - message: "#^Parameter \\#2 \\$haystack of function in_array expects array, mixed given\\.$#" + message: '#^Parameter \#2 \$haystack of function in_array expects array, mixed given\.$#' + identifier: argument.type count: 1 path: src/Plugins/Export/ExportSql.php - - message: "#^Parameter \\#2 \\$id of method PhpMyAdmin\\\\Plugins\\\\ExportPlugin\\:\\:getAlias\\(\\) expects string, bool\\|float\\|int\\|string given\\.$#" + message: '#^Parameter \#2 \$id of method PhpMyAdmin\\Plugins\\ExportPlugin\:\:getAlias\(\) expects string, bool\|float\|int\|string given\.$#' + identifier: argument.type count: 1 path: src/Plugins/Export/ExportSql.php - - message: "#^Parameter \\#2 \\$sqlQuery of method PhpMyAdmin\\\\Plugins\\\\Export\\\\ExportSql\\:\\:replaceWithAliases\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#2 \$sqlQuery of method PhpMyAdmin\\Plugins\\Export\\ExportSql\:\:replaceWithAliases\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 2 path: src/Plugins/Export/ExportSql.php - - message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$string of function explode expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Plugins/Export/ExportSql.php - - message: "#^Parameter \\#3 \\$name of static method PhpMyAdmin\\\\Database\\\\Events\\:\\:getDefinition\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$name of static method PhpMyAdmin\\Database\\Events\:\:getDefinition\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Plugins/Export/ExportSql.php - - message: "#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, string\\|null given\\.$#" + message: '#^Parameter \#3 \$subject of function preg_replace expects array\\|string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Plugins/Export/ExportSql.php - - message: "#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, string\\|null given\\.$#" + message: '#^Parameter \#3 \$subject of function str_replace expects array\\|string, string\|null given\.$#' + identifier: argument.type count: 3 path: src/Plugins/Export/ExportSql.php - - message: "#^Parameter \\#4 \\$tableAlias of method PhpMyAdmin\\\\Plugins\\\\Export\\\\ExportSql\\:\\:generateComment\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#4 \$tableAlias of method PhpMyAdmin\\Plugins\\Export\\ExportSql\:\:generateComment\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 3 path: src/Plugins/Export/ExportSql.php - - message: "#^Parameter \\#5 \\$compat of method PhpMyAdmin\\\\Plugins\\\\Export\\\\ExportSql\\:\\:generateComment\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#5 \$compat of method PhpMyAdmin\\Plugins\\Export\\ExportSql\:\:generateComment\(\) expects string, mixed given\.$#' + identifier: argument.type count: 3 path: src/Plugins/Export/ExportSql.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\CreateDefinition\\:\\:\\$name \\(string\\|null\\) does not accept mixed\\.$#" + message: '#^Parameter \#5 \$flag of method PhpMyAdmin\\Plugins\\Export\\ExportSql\:\:replaceWithAliases\(\) expects bool\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Plugins/Export/ExportSql.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Key\\:\\:\\$columns \\(array\\\\) does not accept non\\-empty\\-array\\\\.$#" + message: '#^Property PhpMyAdmin\\SqlParser\\Components\\CreateDefinition\:\:\$name \(string\|null\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/Plugins/Export/ExportSql.php - - message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\Reference\\:\\:\\$columns \\(array\\\\) does not accept array\\\\.$#" + message: '#^Property PhpMyAdmin\\SqlParser\\Components\\Key\:\:\$columns \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType count: 1 path: src/Plugins/Export/ExportSql.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: '#^Property PhpMyAdmin\\SqlParser\\Components\\Reference\:\:\$columns \(array\\) does not accept array\\.$#' + identifier: assign.propertyType + count: 1 + path: src/Plugins/Export/ExportSql.php + + - + message: '#^Binary operation "\." between mixed and ''_columns'' results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Plugins/Export/ExportTexytext.php + + - + message: '#^Binary operation "\." between mixed and ''_null'' results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Plugins/Export/ExportTexytext.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 5 path: src/Plugins/Export/ExportTexytext.php - - message: "#^Cannot access offset 'columns' on mixed\\.$#" + message: '#^Cannot access offset ''columns'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Plugins/Export/ExportTexytext.php - - message: "#^Cannot access offset 'tables' on mixed\\.$#" + message: '#^Cannot access offset ''tables'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Plugins/Export/ExportTexytext.php - - message: "#^Cannot access offset string on mixed\\.$#" + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 6 path: src/Plugins/Export/ExportTexytext.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 4 path: src/Plugins/Export/ExportTexytext.php - - message: "#^Parameter \\#1 \\$string of function htmlspecialchars expects string, mixed given\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed count: 3 path: src/Plugins/Export/ExportTexytext.php - - message: "#^Parameter \\#3 \\$colAlias of method PhpMyAdmin\\\\Plugins\\\\Export\\\\ExportTexytext\\:\\:formatOneColumnDefinition\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function htmlspecialchars expects string, mixed given\.$#' + identifier: argument.type + count: 3 + path: src/Plugins/Export/ExportTexytext.php + + - + message: '#^Parameter \#3 \$colAlias of method PhpMyAdmin\\Plugins\\Export\\ExportTexytext\:\:formatOneColumnDefinition\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Plugins/Export/ExportTexytext.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between ''\<\?xml version\="1\.0"…'' and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Plugins/Export/ExportXml.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 1 + path: src/Plugins/Export/ExportXml.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 3 path: src/Plugins/Export/ExportXml.php - - message: "#^Cannot access offset 'DEFAULT_CHARACTER…' on mixed\\.$#" + message: '#^Cannot access offset ''DEFAULT_CHARACTER_SET_NAME'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/Export/ExportXml.php - - message: "#^Cannot access offset 'DEFAULT_COLLATION…' on mixed\\.$#" + message: '#^Cannot access offset ''DEFAULT_COLLATION_NAME'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/Export/ExportXml.php - - message: "#^Cannot access offset 'columns' on mixed\\.$#" + message: '#^Cannot access offset ''columns'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/Export/ExportXml.php - - message: "#^Cannot access offset 'tables' on mixed\\.$#" + message: '#^Cannot access offset ''tables'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/Export/ExportXml.php - - message: "#^Cannot access offset 1 on mixed\\.$#" + message: '#^Cannot access offset 1 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/Export/ExportXml.php - - message: "#^Cannot access offset string on mixed\\.$#" + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Plugins/Export/ExportXml.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 1 path: src/Plugins/Export/ExportXml.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 2 path: src/Plugins/Export/ExportXml.php - - message: "#^Foreach overwrites \\$table with its value variable\\.$#" + message: '#^Foreach overwrites \$table with its value variable\.$#' + identifier: foreach.valueOverwrite count: 1 path: src/Plugins/Export/ExportXml.php - - message: "#^Parameter \\#1 \\$string of function htmlspecialchars expects string, mixed given\\.$#" - count: 5 + message: '#^Only booleans are allowed in &&, mixed given on the right side\.$#' + identifier: booleanAnd.rightNotBoolean + count: 6 path: src/Plugins/Export/ExportXml.php - - message: "#^Parameter \\#3 \\$names of method PhpMyAdmin\\\\Plugins\\\\Export\\\\ExportXml\\:\\:exportDefinitions\\(\\) expects array\\, array given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Plugins/Export/ExportXml.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: '#^Only booleans are allowed in a ternary operator condition, mixed given\.$#' + identifier: ternary.condNotBoolean + count: 1 + path: src/Plugins/Export/ExportXml.php + + - + message: '#^Parameter \#1 \$string of function htmlspecialchars expects string, mixed given\.$#' + identifier: argument.type + count: 3 + path: src/Plugins/Export/ExportXml.php + + - + message: '#^Parameter \#1 \$string of function htmlspecialchars expects string, string\|null given\.$#' + identifier: argument.type + count: 2 + path: src/Plugins/Export/ExportXml.php + + - + message: '#^Parameter \#3 \$names of method PhpMyAdmin\\Plugins\\Export\\ExportXml\:\:exportDefinitions\(\) expects array\, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Plugins/Export/ExportXml.php + + - + message: '#^Binary operation "\." between '' '' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 3 + path: src/Plugins/Export/ExportYaml.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: src/Plugins/Export/ExportYaml.php - - message: "#^Cannot access offset 'columns' on mixed\\.$#" + message: '#^Cannot access offset ''columns'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/Export/ExportYaml.php - - message: "#^Cannot access offset 'tables' on mixed\\.$#" + message: '#^Cannot access offset ''tables'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/Export/ExportYaml.php - - message: "#^Cannot access offset string on mixed\\.$#" + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Plugins/Export/ExportYaml.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Plugins/Export/ExportYaml.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\+" between \(float\|int\) and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 6 + path: src/Plugins/Export/Helpers/Pdf.php + + - + message: '#^Binary operation "\+" between mixed and float\|int results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Plugins/Export/Helpers/Pdf.php + + - + message: '#^Binary operation "\+" between mixed and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Plugins/Export/Helpers/Pdf.php + + - + message: '#^Binary operation "\+\=" between \(float\|int\) and mixed results in an error\.$#' + identifier: assignOp.invalid + count: 3 + path: src/Plugins/Export/Helpers/Pdf.php + + - + message: '#^Binary operation "\+\=" between mixed and mixed results in an error\.$#' + identifier: assignOp.invalid + count: 8 + path: src/Plugins/Export/Helpers/Pdf.php + + - + message: '#^Binary operation "\-" between \(array\|float\|int\) and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Plugins/Export/Helpers/Pdf.php + + - + message: '#^Binary operation "\-" between \(float\|int\) and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Plugins/Export/Helpers/Pdf.php + + - + message: '#^Binary operation "\-" between mixed and \(float\|int\) results in an error\.$#' + identifier: binaryOp.invalid + count: 2 + path: src/Plugins/Export/Helpers/Pdf.php + + - + message: '#^Binary operation "\-" between mixed and 1 results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Plugins/Export/Helpers/Pdf.php + + - + message: '#^Binary operation "\-" between mixed and float results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Plugins/Export/Helpers/Pdf.php + + - + message: '#^Binary operation "\-" between mixed and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 6 + path: src/Plugins/Export/Helpers/Pdf.php + + - + message: '#^Binary operation "\." between mixed and '' \('' results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Plugins/Export/Helpers/Pdf.php + + - + message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 16 + path: src/Plugins/Export/Helpers/Pdf.php + + - + message: '#^Binary operation "/" between mixed and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 2 + path: src/Plugins/Export/Helpers/Pdf.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 4 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Cannot access offset 'columns' on mixed\\.$#" + message: '#^Cannot access offset ''columns'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Cannot access offset 'olm' on mixed\\.$#" + message: '#^Cannot access offset ''olm'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Cannot access offset 'orm' on mixed\\.$#" + message: '#^Cannot access offset ''orm'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Cannot access offset 'tables' on mixed\\.$#" + message: '#^Cannot access offset ''tables'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Cannot access offset \\(float\\|int\\) on mixed\\.$#" + message: '#^Cannot access offset \(float\|int\) on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Cannot access offset mixed on mixed\\.$#" + message: '#^Cannot access offset mixed on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Cannot access offset string on mixed\\.$#" + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Class PhpMyAdmin\\\\Plugins\\\\Export\\\\Helpers\\\\Pdf has an uninitialized property \\$results\\. Give it default value or assign it in the constructor\\.$#" + message: '#^Cannot use \+\+ on mixed\.$#' + identifier: postInc.type + count: 3 + path: src/Plugins/Export/Helpers/Pdf.php + + - + message: '#^Class PhpMyAdmin\\Plugins\\Export\\Helpers\\Pdf has an uninitialized property \$results\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized count: 1 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 2 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Implicit array creation is not allowed \\- variable \\$data might not exist\\.$#" + message: '#^Implicit array creation is not allowed \- variable \$data might not exist\.$#' + identifier: variable.implicitArray count: 2 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Parameter \\#1 \\$lineheight of method PhpMyAdmin\\\\Plugins\\\\Export\\\\Helpers\\\\Pdf\\:\\:morepagestable\\(\\) expects float\\|int, mixed given\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 4 + path: src/Plugins/Export/Helpers/Pdf.php + + - + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 6 + path: src/Plugins/Export/Helpers/Pdf.php + + - + message: '#^Only numeric types are allowed in \-, \(array\|float\|int\) given on the left side\.$#' + identifier: minus.leftNonNumeric count: 1 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Parameter \\#1 \\$margin \\(float\\) of method PhpMyAdmin\\\\Plugins\\\\Export\\\\Helpers\\\\Pdf\\:\\:setTopMargin\\(\\) should be contravariant with parameter \\$margin \\(float\\|int\\) of method TCPDF\\:\\:setTopMargin\\(\\)$#" + message: '#^Parameter \#1 \$lineheight of method PhpMyAdmin\\Plugins\\Export\\Helpers\\Pdf\:\:morepagestable\(\) expects float\|int, mixed given\.$#' + identifier: argument.type count: 1 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Parameter \\#1 \\$orientation of method TCPDF\\:\\:AddPage\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$margin \(float\) of method PhpMyAdmin\\Plugins\\Export\\Helpers\\Pdf\:\:setTopMargin\(\) should be contravariant with parameter \$margin \(float\|int\) of method TCPDF\:\:setTopMargin\(\)$#' + identifier: method.childParameterType count: 1 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Parameter \\#1 \\$s of method TCPDF\\:\\:GetStringWidth\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$orientation of method TCPDF\:\:AddPage\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Parameter \\#1 \\$str of static method TCPDF_STATIC\\:\\:empty_string\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$s of method TCPDF\:\:GetStringWidth\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Parameter \\#1 \\$w of method TCPDF\\:\\:Cell\\(\\) expects float, mixed given\\.$#" + message: '#^Parameter \#1 \$str of static method TCPDF_STATIC\:\:empty_string\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Parameter \\#1 \\$w of method TCPDF\\:\\:MultiCell\\(\\) expects float, mixed given\\.$#" + message: '#^Parameter \#1 \$w of method TCPDF\:\:Cell\(\) expects float, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Plugins/Export/Helpers/Pdf.php + + - + message: '#^Parameter \#1 \$w of method TCPDF\:\:MultiCell\(\) expects float, mixed given\.$#' + identifier: argument.type count: 5 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Parameter \\#1 \\$x of method TCPDF\\:\\:setXY\\(\\) expects float, mixed given\\.$#" + message: '#^Parameter \#1 \$x of method TCPDF\:\:setXY\(\) expects float, mixed given\.$#' + identifier: argument.type count: 7 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Parameter \\#1 \\$x1 of method TCPDF\\:\\:Line\\(\\) expects float, \\(array\\|float\\|int\\) given\\.$#" + message: '#^Parameter \#1 \$x1 of method TCPDF\:\:Line\(\) expects float, \(array\|float\|int\) given\.$#' + identifier: argument.type count: 3 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Parameter \\#1 \\$x1 of method TCPDF\\:\\:Line\\(\\) expects float, mixed given\\.$#" + message: '#^Parameter \#1 \$x1 of method TCPDF\:\:Line\(\) expects float, mixed given\.$#' + identifier: argument.type count: 9 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Parameter \\#1 \\$y of method TCPDF\\:\\:setY\\(\\) expects float, mixed given\\.$#" + message: '#^Parameter \#1 \$y of method TCPDF\:\:setY\(\) expects float, mixed given\.$#' + identifier: argument.type count: 3 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Parameter \\#2 \\$h of method TCPDF\\:\\:Cell\\(\\) expects float, mixed given\\.$#" + message: '#^Parameter \#2 \$h of method TCPDF\:\:Cell\(\) expects float, mixed given\.$#' + identifier: argument.type count: 2 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Parameter \\#2 \\$h of method TCPDF\\:\\:MultiCell\\(\\) expects float, mixed given\\.$#" + message: '#^Parameter \#2 \$h of method TCPDF\:\:MultiCell\(\) expects float, mixed given\.$#' + identifier: argument.type count: 4 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Parameter \\#2 \\$y of method TCPDF\\:\\:setXY\\(\\) expects float, mixed given\\.$#" + message: '#^Parameter \#2 \$y of method TCPDF\:\:setXY\(\) expects float, mixed given\.$#' + identifier: argument.type count: 4 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Parameter \\#2 \\$y1 of method TCPDF\\:\\:Line\\(\\) expects float, mixed given\\.$#" + message: '#^Parameter \#2 \$y1 of method TCPDF\:\:Line\(\) expects float, mixed given\.$#' + identifier: argument.type count: 6 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Parameter \\#3 \\$size of method TCPDF\\:\\:setFont\\(\\) expects float\\|null, mixed given\\.$#" + message: '#^Parameter \#3 \$size of method TCPDF\:\:setFont\(\) expects float\|null, mixed given\.$#' + identifier: argument.type count: 2 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Parameter \\#3 \\$txt of method TCPDF\\:\\:MultiCell\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$txt of method TCPDF\:\:MultiCell\(\) expects string, mixed given\.$#' + identifier: argument.type count: 3 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Parameter \\#3 \\$x2 of method TCPDF\\:\\:Line\\(\\) expects float, \\(array\\|float\\|int\\) given\\.$#" + message: '#^Parameter \#3 \$x2 of method TCPDF\:\:Line\(\) expects float, \(array\|float\|int\) given\.$#' + identifier: argument.type count: 3 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Parameter \\#3 \\$x2 of method TCPDF\\:\\:Line\\(\\) expects float, mixed given\\.$#" + message: '#^Parameter \#3 \$x2 of method TCPDF\:\:Line\(\) expects float, mixed given\.$#' + identifier: argument.type count: 3 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Parameter \\#5 \\$align of method TCPDF\\:\\:MultiCell\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#5 \$align of method TCPDF\:\:MultiCell\(\) expects string, mixed given\.$#' + identifier: argument.type count: 3 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Property PhpMyAdmin\\\\Plugins\\\\Export\\\\Helpers\\\\Pdf\\:\\:\\$dataY \\(float\\|int\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Plugins\\Export\\Helpers\\Pdf\:\:\$dataY \(float\|int\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Variable \\$columnsCnt might not be defined\\.$#" + message: '#^Variable \$columnsCnt might not be defined\.$#' + identifier: variable.undefined count: 6 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Variable \\$txt on left side of \\?\\? always exists and is not nullable\\.$#" + message: '#^Variable \$txt on left side of \?\? always exists and is not nullable\.$#' + identifier: nullCoalesce.variable count: 2 path: src/Plugins/Export/Helpers/Pdf.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 6 path: src/Plugins/Export/Helpers/TableProperty.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 2 path: src/Plugins/ExportPlugin.php - - message: "#^Cannot access offset 'alias' on mixed\\.$#" + message: '#^Binary operation "\." between mixed and '' \('' results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Plugins/ExportPlugin.php + + - + message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Plugins/ExportPlugin.php + + - + message: '#^Cannot access offset ''alias'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 5 path: src/Plugins/ExportPlugin.php - - message: "#^Cannot access offset 'columns' on mixed\\.$#" + message: '#^Cannot access offset ''columns'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Plugins/ExportPlugin.php - - message: "#^Cannot access offset 'tables' on mixed\\.$#" + message: '#^Cannot access offset ''tables'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: src/Plugins/ExportPlugin.php - - message: "#^Cannot access offset mixed on mixed\\.$#" + message: '#^Cannot access offset mixed on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Plugins/ExportPlugin.php - - message: "#^Cannot access offset non\\-empty\\-string on mixed\\.$#" + message: '#^Cannot access offset non\-empty\-string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/ExportPlugin.php - - message: "#^Cannot access offset string\\|null on mixed\\.$#" + message: '#^Cannot access offset string\|null on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/ExportPlugin.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 9 path: src/Plugins/ExportPlugin.php - - message: "#^Foreach overwrites \\$db with its value variable\\.$#" + message: '#^Foreach overwrites \$db with its value variable\.$#' + identifier: foreach.valueOverwrite count: 1 path: src/Plugins/ExportPlugin.php - - message: "#^Method PhpMyAdmin\\\\Plugins\\\\ExportPlugin\\:\\:getAlias\\(\\) should return string but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\Plugins\\ExportPlugin\:\:getAlias\(\) should return string but returns mixed\.$#' + identifier: return.type count: 3 path: src/Plugins/ExportPlugin.php - - message: "#^Only booleans are allowed in an if condition, array\\|false given\\.$#" + message: '#^Only booleans are allowed in an if condition, array\|false given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Plugins/ExportPlugin.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: '#^Parameter &\$db by\-ref type of method PhpMyAdmin\\Plugins\\ExportPlugin\:\:initAlias\(\) expects string, mixed given\.$#' + identifier: parameterByRef.type + count: 1 + path: src/Plugins/ExportPlugin.php + + - + message: '#^Parameter &\$table by\-ref type of method PhpMyAdmin\\Plugins\\ExportPlugin\:\:initAlias\(\) expects string\|null, mixed given\.$#' + identifier: parameterByRef.type + count: 1 + path: src/Plugins/ExportPlugin.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: src/Plugins/Import/ImportCsv.php - - message: "#^Cannot call method getMessage\\(\\) on mixed\\.$#" + message: '#^Cannot call method getMessage\(\) on mixed\.$#' + identifier: method.nonObject count: 1 path: src/Plugins/Import/ImportCsv.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 1 path: src/Plugins/Import/ImportCsv.php - - message: "#^Foreach overwrites \\$i with its key variable\\.$#" + message: '#^Foreach overwrites \$i with its key variable\.$#' + identifier: foreach.keyOverwrite count: 1 path: src/Plugins/Import/ImportCsv.php - - message: "#^Method PhpMyAdmin\\\\Plugins\\\\Import\\\\ImportCsv\\:\\:doImport\\(\\) should return array\\ but returns mixed\\.$#" - count: 2 + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 4 path: src/Plugins/Import/ImportCsv.php - - message: "#^Only booleans are allowed in &&, string given on the right side\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 21 + path: src/Plugins/Import/ImportCsv.php + + - + message: '#^Only booleans are allowed in &&, string given on the right side\.$#' + identifier: booleanAnd.rightNotBoolean count: 1 path: src/Plugins/Import/ImportCsv.php - - message: "#^Parameter \\#1 \\$columnNames of method PhpMyAdmin\\\\Plugins\\\\Import\\\\ImportCsv\\:\\:getColumnNames\\(\\) expects array\\, array\\|null given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Plugins/Import/ImportCsv.php - - message: "#^Parameter \\#1 \\$serverMessage of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:mysqlDie\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$columnNames of method PhpMyAdmin\\Plugins\\Import\\ImportCsv\:\:getColumnNames\(\) expects list\, array\|null given\.$#' + identifier: argument.type count: 1 path: src/Plugins/Import/ImportCsv.php - - message: "#^Parameter \\#3 \\$rows of class PhpMyAdmin\\\\Import\\\\ImportTable constructor expects array\\\\>, array\\, array\\> given\\.$#" + message: '#^Parameter \#1 \$serverMessage of static method PhpMyAdmin\\Html\\Generator\:\:mysqlDie\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Plugins/Import/ImportCsv.php - - message: "#^Parameter \\#4 \\$sqlData of method PhpMyAdmin\\\\Import\\\\Import\\:\\:createDatabase\\(\\) expects array\\, mixed given\\.$#" + message: '#^Parameter \#3 \$rows of class PhpMyAdmin\\Import\\ImportTable constructor expects list\\>, array\, array\> given\.$#' + identifier: argument.type count: 1 path: src/Plugins/Import/ImportCsv.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: src/Plugins/Import/ImportLdi.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: src/Plugins/Import/ImportLdi.php - - message: "#^Method PhpMyAdmin\\\\Plugins\\\\Import\\\\ImportLdi\\:\\:doImport\\(\\) should return array\\ but returns mixed\\.$#" - count: 1 - path: src/Plugins/Import/ImportLdi.php - - - - message: "#^Method PhpMyAdmin\\\\Plugins\\\\Import\\\\ImportMediawiki\\:\\:doImport\\(\\) should return array\\ but returns mixed\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 1 path: src/Plugins/Import/ImportMediawiki.php - - message: "#^Negated boolean expression is always true\\.$#" + message: '#^Negated boolean expression is always true\.$#' + identifier: booleanNot.alwaysTrue count: 1 path: src/Plugins/Import/ImportMediawiki.php - - message: "#^Cannot call method __toString\\(\\) on mixed\\.$#" + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean + count: 1 + path: src/Plugins/Import/ImportMediawiki.php + + - + message: '#^Cannot access property \$body on SimpleXMLElement\|null\.$#' + identifier: property.nonObject count: 1 path: src/Plugins/Import/ImportOds.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot access property \$spreadsheet on SimpleXMLElement\|null\.$#' + identifier: property.nonObject + count: 1 + path: src/Plugins/Import/ImportOds.php + + - + message: '#^Cannot call method __toString\(\) on mixed\.$#' + identifier: method.nonObject + count: 1 + path: src/Plugins/Import/ImportOds.php + + - + message: '#^Cannot call method count\(\) on SimpleXMLElement\|null\.$#' + identifier: method.nonObject + count: 1 + path: src/Plugins/Import/ImportOds.php + + - + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 2 path: src/Plugins/Import/ImportOds.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 1 path: src/Plugins/Import/ImportOds.php - - message: "#^Method PhpMyAdmin\\\\Plugins\\\\Import\\\\ImportOds\\:\\:doImport\\(\\) should return array\\ but returns mixed\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed count: 1 path: src/Plugins/Import/ImportOds.php - - message: "#^Parameter \\#1 \\$cellAttrs of method PhpMyAdmin\\\\Plugins\\\\Import\\\\ImportOds\\:\\:getValue\\(\\) expects SimpleXMLElement, \\(SimpleXMLElement\\|null\\) given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 1 path: src/Plugins/Import/ImportOds.php - - message: "#^Parameter \\#1 \\$sheets of method PhpMyAdmin\\\\Plugins\\\\Import\\\\ImportOds\\:\\:readSheets\\(\\) expects array\\|SimpleXMLElement, array\\|SimpleXMLElement\\|null given\\.$#" + message: '#^Offset ''name'' might not exist on SimpleXMLElement\|null\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Plugins/Import/ImportOds.php - - message: "#^Parameter \\#2 \\$text of method PhpMyAdmin\\\\Plugins\\\\Import\\\\ImportOds\\:\\:getValue\\(\\) expects SimpleXMLElement, \\(SimpleXMLElement\\|null\\) given\\.$#" - count: 1 - path: src/Plugins/Import/ImportOds.php - - - - message: "#^Parameter \\#3 \\$rows of class PhpMyAdmin\\\\Import\\\\ImportTable constructor expects array\\\\>, array\\ given\\.$#" - count: 1 - path: src/Plugins/Import/ImportOds.php - - - - message: "#^Variable property access on SimpleXMLElement\\.$#" + message: '#^Offset ''number\-columns\-repeated'' might not exist on SimpleXMLElement\|null\.$#' + identifier: offsetAccess.notFound count: 2 path: src/Plugins/Import/ImportOds.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean + count: 1 + path: src/Plugins/Import/ImportOds.php + + - + message: '#^Parameter \#1 \$cellAttrs of method PhpMyAdmin\\Plugins\\Import\\ImportOds\:\:getValue\(\) expects SimpleXMLElement, \(SimpleXMLElement\|null\) given\.$#' + identifier: argument.type + count: 1 + path: src/Plugins/Import/ImportOds.php + + - + message: '#^Parameter \#1 \$sheets of method PhpMyAdmin\\Plugins\\Import\\ImportOds\:\:readSheets\(\) expects array\\|SimpleXMLElement, array\|SimpleXMLElement\|null given\.$#' + identifier: argument.type + count: 1 + path: src/Plugins/Import/ImportOds.php + + - + message: '#^Parameter \#2 \$text of method PhpMyAdmin\\Plugins\\Import\\ImportOds\:\:getValue\(\) expects SimpleXMLElement, \(SimpleXMLElement\|null\) given\.$#' + identifier: argument.type + count: 1 + path: src/Plugins/Import/ImportOds.php + + - + message: '#^Parameter \#3 \$rows of class PhpMyAdmin\\Import\\ImportTable constructor expects list\\>, non\-empty\-array\, array\> given\.$#' + identifier: argument.type + count: 1 + path: src/Plugins/Import/ImportOds.php + + - + message: '#^Variable property access on SimpleXMLElement\.$#' + identifier: property.dynamicName + count: 2 + path: src/Plugins/Import/ImportOds.php + + - + message: '#^Binary operation "\." between ''GeomFromText\(\\'''' and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Plugins/Import/ImportShp.php - - message: "#^Cannot access offset 0 on mixed\\.$#" + message: '#^Binary operation "\.\=" between mixed and bool\|string results in an error\.$#' + identifier: assignOp.invalid + count: 1 + path: src/Plugins/Import/ImportShp.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 1 + path: src/Plugins/Import/ImportShp.php + + - + message: '#^Cannot access offset 0 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Plugins/Import/ImportShp.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 2 path: src/Plugins/Import/ImportShp.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Plugins/Import/ImportShp.php - - message: "#^Method PhpMyAdmin\\\\Plugins\\\\Import\\\\ImportShp\\:\\:doImport\\(\\) should return array\\ but returns mixed\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed count: 1 path: src/Plugins/Import/ImportShp.php - - message: "#^Offset 'dirname' does not exist on array\\{dirname\\?\\: string, basename\\: string, extension\\?\\: string, filename\\: string\\}\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 1 path: src/Plugins/Import/ImportShp.php - - message: "#^Parameter \\#1 \\$importHandle of method PhpMyAdmin\\\\Import\\\\Import\\:\\:getNextChunk\\(\\) expects PhpMyAdmin\\\\File\\|null, mixed given\\.$#" + message: '#^Offset ''dirname'' might not exist on array\{dirname\?\: string, basename\: string, extension\?\: string, filename\: string\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Plugins/Import/ImportShp.php - - message: "#^Parameter \\#1 \\$string of function substr expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$importHandle of method PhpMyAdmin\\Import\\Import\:\:getNextChunk\(\) expects PhpMyAdmin\\File\|null, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Plugins/Import/ImportShp.php + + - + message: '#^Parameter \#1 \$string of function substr expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Plugins/Import/ImportShp.php - - message: "#^Parameter \\#2 \\$columns of class PhpMyAdmin\\\\Import\\\\ImportTable constructor expects array\\, array\\ given\\.$#" + message: '#^Parameter \#2 \$columns of class PhpMyAdmin\\Import\\ImportTable constructor expects list\, non\-empty\-list\ given\.$#' + identifier: argument.type count: 1 path: src/Plugins/Import/ImportShp.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: src/Plugins/Import/ImportSql.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Plugins/Import/ImportSql.php - - message: "#^Method PhpMyAdmin\\\\Plugins\\\\Import\\\\ImportSql\\:\\:doImport\\(\\) should return array\\ but returns mixed\\.$#" + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean count: 2 path: src/Plugins/Import/ImportSql.php - - message: "#^Parameter \\#1 \\$delimiter of method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\BufferedQuery\\:\\:setDelimiter\\(\\) expects string, mixed given\\.$#" + message: '#^Only booleans are allowed in an if condition, mixed given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Plugins/Import/ImportSql.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Parameter \#1 \$delimiter of method PhpMyAdmin\\SqlParser\\Utils\\BufferedQuery\:\:setDelimiter\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Plugins/Import/ImportSql.php + + - + message: '#^Argument of an invalid type SimpleXMLElement\|null supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable + count: 2 + path: src/Plugins/Import/ImportXml.php + + - + message: '#^Cannot access property \$database on SimpleXMLElement\|null\.$#' + identifier: property.nonObject + count: 1 + path: src/Plugins/Import/ImportXml.php + + - + message: '#^Cannot access property \$structure_schemas on SimpleXMLElement\|null\.$#' + identifier: property.nonObject + count: 1 + path: src/Plugins/Import/ImportXml.php + + - + message: '#^Cannot access property \$table on SimpleXMLElement\|null\.$#' + identifier: property.nonObject + count: 1 + path: src/Plugins/Import/ImportXml.php + + - + message: '#^Cannot call method attributes\(\) on SimpleXMLElement\|null\.$#' + identifier: method.nonObject + count: 1 + path: src/Plugins/Import/ImportXml.php + + - + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 6 path: src/Plugins/Import/ImportXml.php - - message: "#^Method PhpMyAdmin\\\\Plugins\\\\Import\\\\ImportXml\\:\\:doImport\\(\\) should return array\\ but returns mixed\\.$#" + message: '#^Offset ''charset'' might not exist on SimpleXMLElement\|null\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Plugins/Import/ImportXml.php - - message: "#^Method PhpMyAdmin\\\\Plugins\\\\Import\\\\ShapeFileImport\\:\\:readSHP\\(\\) never returns false so it can be removed from the return type\\.$#" + message: '#^Offset ''collation'' might not exist on SimpleXMLElement\|null\.$#' + identifier: offsetAccess.notFound + count: 1 + path: src/Plugins/Import/ImportXml.php + + - + message: '#^Offset ''name'' might not exist on SimpleXMLElement\|null\.$#' + identifier: offsetAccess.notFound + count: 4 + path: src/Plugins/Import/ImportXml.php + + - + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean + count: 1 + path: src/Plugins/Import/ImportXml.php + + - + message: '#^Method PhpMyAdmin\\Plugins\\Import\\ShapeFileImport\:\:readSHP\(\) never returns false so it can be removed from the return type\.$#' + identifier: return.unusedType count: 1 path: src/Plugins/Import/ShapeFileImport.php - - message: "#^Cannot access offset string on mixed\\.$#" + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/Import/Upload/UploadNoplugin.php - - message: "#^Method PhpMyAdmin\\\\Plugins\\\\Import\\\\Upload\\\\UploadNoplugin\\:\\:getUploadStatus\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 1 path: src/Plugins/Import/Upload/UploadNoplugin.php - - message: "#^Method PhpMyAdmin\\\\Plugins\\\\Import\\\\Upload\\\\UploadNoplugin\\:\\:getUploadStatus\\(\\) should return array\\|null but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\Plugins\\Import\\Upload\\UploadNoplugin\:\:getUploadStatus\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Plugins/Import/Upload/UploadNoplugin.php - - message: "#^Parameter \\#2 \\$array of function array_key_exists expects array, mixed given\\.$#" + message: '#^Method PhpMyAdmin\\Plugins\\Import\\Upload\\UploadNoplugin\:\:getUploadStatus\(\) should return array\|null but returns mixed\.$#' + identifier: return.type count: 1 path: src/Plugins/Import/Upload/UploadNoplugin.php - - message: "#^Cannot access offset 'complete' on mixed\\.$#" + message: '#^Parameter \#2 \$array of function array_key_exists expects array, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Plugins/Import/Upload/UploadNoplugin.php + + - + message: '#^Binary operation "/" between int and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Plugins/Import/Upload/UploadProgress.php - - message: "#^Cannot access offset 'finished' on mixed\\.$#" + message: '#^Cannot access offset ''complete'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/Import/Upload/UploadProgress.php - - message: "#^Cannot access offset 'percent' on mixed\\.$#" + message: '#^Cannot access offset ''finished'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/Import/Upload/UploadProgress.php - - message: "#^Cannot access offset 'total' on mixed\\.$#" + message: '#^Cannot access offset ''percent'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Plugins/Import/Upload/UploadProgress.php + + - + message: '#^Cannot access offset ''total'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: src/Plugins/Import/Upload/UploadProgress.php - - message: "#^Cannot access offset string on mixed\\.$#" + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/Import/Upload/UploadProgress.php - - message: "#^Method PhpMyAdmin\\\\Plugins\\\\Import\\\\Upload\\\\UploadProgress\\:\\:getUploadStatus\\(\\) return type has no value type specified in iterable type array\\.$#" - count: 1 - path: src/Plugins/Import/Upload/UploadProgress.php - - - - message: "#^Method PhpMyAdmin\\\\Plugins\\\\Import\\\\Upload\\\\UploadProgress\\:\\:getUploadStatus\\(\\) should return array\\|null but returns mixed\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 2 path: src/Plugins/Import/Upload/UploadProgress.php - - message: "#^Parameter \\#2 \\$array of function array_key_exists expects array, mixed given\\.$#" + message: '#^Method PhpMyAdmin\\Plugins\\Import\\Upload\\UploadProgress\:\:getUploadStatus\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Plugins/Import/Upload/UploadProgress.php - - message: "#^Strict comparison using \\!\\=\\= between array\\{upload_id\\: string, fieldname\\: string, filename\\: string, time_start\\: int, time_last\\: int, speed_average\\: int, speed_last\\: int, bytes_uploaded\\: int, \\.\\.\\.\\} and array\\{\\} will always evaluate to true\\.$#" + message: '#^Method PhpMyAdmin\\Plugins\\Import\\Upload\\UploadProgress\:\:getUploadStatus\(\) should return array\|null but returns mixed\.$#' + identifier: return.type + count: 2 + path: src/Plugins/Import/Upload/UploadProgress.php + + - + message: '#^Only booleans are allowed in \|\|, mixed given on the right side\.$#' + identifier: booleanOr.rightNotBoolean count: 1 path: src/Plugins/Import/Upload/UploadProgress.php - - message: "#^Cannot access offset 'bytes_processed' on mixed\\.$#" + message: '#^Parameter \#2 \$array of function array_key_exists expects array, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Plugins/Import/Upload/UploadProgress.php + + - + message: '#^Strict comparison using \!\=\= between array\{upload_id\: string, fieldname\: string, filename\: string, time_start\: int, time_last\: int, speed_average\: int, speed_last\: int, bytes_uploaded\: int, \.\.\.\} and array\{\} will always evaluate to true\.$#' + identifier: notIdentical.alwaysTrue + count: 1 + path: src/Plugins/Import/Upload/UploadProgress.php + + - + message: '#^Binary operation "/" between mixed and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Plugins/Import/Upload/UploadSession.php - - message: "#^Cannot access offset 'complete' on mixed\\.$#" + message: '#^Cannot access offset ''bytes_processed'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Plugins/Import/Upload/UploadSession.php + + - + message: '#^Cannot access offset ''complete'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Plugins/Import/Upload/UploadSession.php - - message: "#^Cannot access offset 'content_length' on mixed\\.$#" + message: '#^Cannot access offset ''content_length'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/Import/Upload/UploadSession.php - - message: "#^Cannot access offset 'done' on mixed\\.$#" + message: '#^Cannot access offset ''done'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/Import/Upload/UploadSession.php - - message: "#^Cannot access offset 'finished' on mixed\\.$#" + message: '#^Cannot access offset ''finished'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/Import/Upload/UploadSession.php - - message: "#^Cannot access offset 'percent' on mixed\\.$#" + message: '#^Cannot access offset ''percent'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/Import/Upload/UploadSession.php - - message: "#^Cannot access offset 'total' on mixed\\.$#" + message: '#^Cannot access offset ''total'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: src/Plugins/Import/Upload/UploadSession.php - - message: "#^Cannot access offset string on mixed\\.$#" + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/Import/Upload/UploadSession.php - - message: "#^Method PhpMyAdmin\\\\Plugins\\\\Import\\\\Upload\\\\UploadSession\\:\\:getUploadStatus\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 1 path: src/Plugins/Import/Upload/UploadSession.php - - message: "#^Method PhpMyAdmin\\\\Plugins\\\\Import\\\\Upload\\\\UploadSession\\:\\:getUploadStatus\\(\\) should return array\\|null but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\Plugins\\Import\\Upload\\UploadSession\:\:getUploadStatus\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: src/Plugins/Import/Upload/UploadSession.php + + - + message: '#^Method PhpMyAdmin\\Plugins\\Import\\Upload\\UploadSession\:\:getUploadStatus\(\) should return array\|null but returns mixed\.$#' + identifier: return.type count: 2 path: src/Plugins/Import/Upload/UploadSession.php - - message: "#^Parameter \\#2 \\$array of function array_key_exists expects array, mixed given\\.$#" + message: '#^Only booleans are allowed in an if condition, mixed given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Plugins/Import/Upload/UploadSession.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Only booleans are allowed in \|\|, mixed given on the right side\.$#' + identifier: booleanOr.rightNotBoolean + count: 1 + path: src/Plugins/Import/Upload/UploadSession.php + + - + message: '#^Parameter \#2 \$array of function array_key_exists expects array, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Plugins/Import/Upload/UploadSession.php + + - + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 2 path: src/Plugins/Schema/Dia/DiaRelationSchema.php - - message: "#^Parameter \\#2 \\$masterField of method PhpMyAdmin\\\\Plugins\\\\Schema\\\\Dia\\\\DiaRelationSchema\\:\\:addRelation\\(\\) expects string, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#2 \$masterField of method PhpMyAdmin\\Plugins\\Schema\\Dia\\DiaRelationSchema\:\:addRelation\(\) expects string, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Plugins/Schema/Dia/DiaRelationSchema.php - - message: "#^Parameter \\#2 \\$masterField of method PhpMyAdmin\\\\Plugins\\\\Schema\\\\Dia\\\\DiaRelationSchema\\:\\:addRelation\\(\\) expects string, int\\|string given\\.$#" + message: '#^Parameter \#2 \$masterField of method PhpMyAdmin\\Plugins\\Schema\\Dia\\DiaRelationSchema\:\:addRelation\(\) expects string, int\|string given\.$#' + identifier: argument.type count: 1 path: src/Plugins/Schema/Dia/DiaRelationSchema.php - - message: "#^Parameter \\#4 \\$foreignField of method PhpMyAdmin\\\\Plugins\\\\Schema\\\\Dia\\\\DiaRelationSchema\\:\\:addRelation\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#4 \$foreignField of method PhpMyAdmin\\Plugins\\Schema\\Dia\\DiaRelationSchema\:\:addRelation\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Plugins/Schema/Dia/DiaRelationSchema.php - - message: "#^Binary operation \"\\+\" between int\\|string\\|false and 12 results in an error\\.$#" + message: '#^Binary operation "\+" between int\|string\|false and 12 results in an error\.$#' + identifier: binaryOp.invalid count: 4 path: src/Plugins/Schema/Dia/RelationStatsDia.php - - message: "#^Binary operation \"\\+\" between mixed and int\\|string\\|false results in an error\\.$#" + message: '#^Binary operation "\+" between mixed and 1 results in an error\.$#' + identifier: binaryOp.invalid count: 2 path: src/Plugins/Schema/Dia/RelationStatsDia.php - - message: "#^Call to function array_search\\(\\) requires parameter \\#3 to be set\\.$#" + message: '#^Binary operation "\+" between mixed and int\|string\|false results in an error\.$#' + identifier: binaryOp.invalid + count: 2 + path: src/Plugins/Schema/Dia/RelationStatsDia.php + + - + message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 2 + path: src/Plugins/Schema/Dia/RelationStatsDia.php + + - + message: '#^Call to function array_search\(\) requires parameter \#3 to be set\.$#' + identifier: function.strict count: 1 path: src/Plugins/Schema/Dia/RelationStatsDia.php - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 1 + path: src/Plugins/Schema/Dia/RelationStatsDia.php + + - + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 2 + path: src/Plugins/Schema/Dia/RelationStatsDia.php + + - + message: '#^Binary operation "\." between ''\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Plugins/Transformations/Abs/ImageLinkTransformationsPlugin.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 2 path: src/Plugins/Transformations/Abs/ImageUploadTransformationsPlugin.php - - message: "#^Parameter \\#2 \\$additionalParameters of static method PhpMyAdmin\\\\Url\\:\\:getFromRoute\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#2 \$additionalParameters of static method PhpMyAdmin\\Url\:\:getFromRoute\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Plugins/Transformations/Abs/ImageUploadTransformationsPlugin.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Plugins/Transformations/Abs/InlineTransformationsPlugin.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 2 path: src/Plugins/Transformations/Abs/InlineTransformationsPlugin.php - - message: "#^Parameter \\#1 \\.\\.\\.\\$arrays of function array_merge expects array, mixed given\\.$#" + message: '#^Parameter \#1 \.\.\.\$arrays of function array_merge expects array, mixed given\.$#' + identifier: argument.type count: 1 path: src/Plugins/Transformations/Abs/InlineTransformationsPlugin.php - - message: "#^Parameter \\#2 \\$additionalParameters of static method PhpMyAdmin\\\\Url\\:\\:getFromRoute\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#2 \$additionalParameters of static method PhpMyAdmin\\Url\:\:getFromRoute\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 2 path: src/Plugins/Transformations/Abs/InlineTransformationsPlugin.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Plugins/Transformations/Abs/PreApPendTransformationsPlugin.php - - message: "#^Parameter \\#1 \\$string of function htmlspecialchars expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function htmlspecialchars expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Plugins/Transformations/Abs/PreApPendTransformationsPlugin.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Plugins/Transformations/Abs/RegexValidationTransformationsPlugin.php - - message: "#^Parameter \\#1 \\$pattern of function preg_match expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$pattern of function preg_match expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Plugins/Transformations/Abs/RegexValidationTransformationsPlugin.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between mixed and string results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Plugins/Transformations/Abs/SubstringTransformationsPlugin.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Binary operation "\.\=" between string and mixed results in an error\.$#' + identifier: assignOp.invalid + count: 1 + path: src/Plugins/Transformations/Abs/SubstringTransformationsPlugin.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 1 + path: src/Plugins/Transformations/Abs/SubstringTransformationsPlugin.php + + - + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 2 path: src/Plugins/Transformations/Abs/SubstringTransformationsPlugin.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 1 + path: src/Plugins/Transformations/Abs/SubstringTransformationsPlugin.php + + - + message: '#^Binary operation "\." between mixed and string results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Plugins/Transformations/Abs/TextImageLinkTransformationsPlugin.php - - message: "#^Cannot cast mixed to int\\.$#" + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 1 + path: src/Plugins/Transformations/Abs/TextImageLinkTransformationsPlugin.php + + - + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 2 path: src/Plugins/Transformations/Abs/TextImageLinkTransformationsPlugin.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between mixed and string results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Plugins/Transformations/Abs/TextLinkTransformationsPlugin.php - - message: "#^Parameter \\#1 \\$string of function htmlspecialchars expects string, mixed given\\.$#" + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 1 + path: src/Plugins/Transformations/Abs/TextLinkTransformationsPlugin.php + + - + message: '#^Parameter \#1 \$string of function htmlspecialchars expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Plugins/Transformations/Abs/TextLinkTransformationsPlugin.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 2 + path: src/Plugins/Transformations/Input/Text_Plain_Iptobinary.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Plugins/Transformations/Input/Text_Plain_JsonEditor.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Plugins/Transformations/Input/Text_Plain_SqlEditor.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Plugins/Transformations/Input/Text_Plain_XmlEditor.php - - message: "#^Method PhpMyAdmin\\\\Plugins\\\\Transformations\\\\Output\\\\Text_Plain_Binarytoip\\:\\:applyTransformation\\(\\) should return string but returns string\\|false\\.$#" + message: '#^Method PhpMyAdmin\\Plugins\\Transformations\\Output\\Text_Plain_Binarytoip\:\:applyTransformation\(\) should return string but returns string\|false\.$#' + identifier: return.type count: 1 path: src/Plugins/Transformations/Output/Text_Plain_Binarytoip.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Plugins/Transformations/Output/Text_Plain_Json.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Plugins/Transformations/Output/Text_Plain_Json.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Plugins/Transformations/Output/Text_Plain_Sql.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Plugins/Transformations/Output/Text_Plain_Sql.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Plugins/Transformations/Output/Text_Plain_Xml.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Plugins/Transformations/Output/Text_Plain_Xml.php - - message: "#^Parameter \\#1 \\$secret of method PragmaRX\\\\Google2FA\\\\Google2FA\\:\\:verifyKey\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$secret of method PragmaRX\\Google2FA\\Google2FA\:\:verifyKey\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Plugins/TwoFactor/Application.php - - message: "#^Parameter \\#2 \\$key of method PragmaRX\\\\Google2FA\\\\Google2FA\\:\\:verifyKey\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$key of method PragmaRX\\Google2FA\\Google2FA\:\:verifyKey\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Plugins/TwoFactor/Application.php - - message: "#^Parameter \\#3 \\$secret of method PragmaRX\\\\Google2FAQRCode\\\\Google2FA\\:\\:getQRCodeInline\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$secret of method PragmaRX\\Google2FAQRCode\\Google2FA\:\:getQRCodeInline\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Plugins/TwoFactor/Application.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Plugins/TwoFactor/Key.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: src/Plugins/TwoFactor/Key.php - - message: "#^Cannot access an offset on mixed\\.$#" + message: '#^Cannot access an offset on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/TwoFactor/Key.php - - message: "#^Cannot access offset 'certificate' on mixed\\.$#" + message: '#^Cannot access offset ''certificate'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/TwoFactor/Key.php - - message: "#^Cannot access offset 'counter' on mixed\\.$#" + message: '#^Cannot access offset ''counter'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Plugins/TwoFactor/Key.php - - message: "#^Cannot access offset 'keyHandle' on mixed\\.$#" + message: '#^Cannot access offset ''keyHandle'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/TwoFactor/Key.php - - message: "#^Cannot access offset 'publicKey' on mixed\\.$#" + message: '#^Cannot access offset ''publicKey'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/TwoFactor/Key.php - - message: "#^Cannot access offset mixed on mixed\\.$#" + message: '#^Cannot access offset mixed on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Plugins/TwoFactor/Key.php - - message: "#^Parameter \\#1 \\$json of function json_decode expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$json of function json_decode expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Plugins/TwoFactor/Key.php - - message: "#^Parameter \\#1 \\$registrations of static method CodeLts\\\\U2F\\\\U2FServer\\\\U2FServer\\:\\:makeAuthentication\\(\\) expects array\\, array\\ given\\.$#" + message: '#^Parameter \#1 \$registrations of static method CodeLts\\U2F\\U2FServer\\U2FServer\:\:makeAuthentication\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: src/Plugins/TwoFactor/Key.php - - message: "#^Parameter \\#1 \\$request of static method CodeLts\\\\U2F\\\\U2FServer\\\\U2FServer\\:\\:register\\(\\) expects CodeLts\\\\U2F\\\\U2FServer\\\\RegistrationRequest, mixed given\\.$#" + message: '#^Parameter \#1 \$request of static method CodeLts\\U2F\\U2FServer\\U2FServer\:\:register\(\) expects CodeLts\\U2F\\U2FServer\\RegistrationRequest, mixed given\.$#' + identifier: argument.type count: 1 path: src/Plugins/TwoFactor/Key.php - - message: "#^Parameter \\#1 \\$requests of static method CodeLts\\\\U2F\\\\U2FServer\\\\U2FServer\\:\\:authenticate\\(\\) expects array\\, mixed given\\.$#" + message: '#^Parameter \#1 \$requests of static method CodeLts\\U2F\\U2FServer\\U2FServer\:\:authenticate\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Plugins/TwoFactor/Key.php - - message: "#^Parameter \\#2 \\$registrations of static method CodeLts\\\\U2F\\\\U2FServer\\\\U2FServer\\:\\:authenticate\\(\\) expects array\\, array\\ given\\.$#" + message: '#^Parameter \#2 \$registrations of static method CodeLts\\U2F\\U2FServer\\U2FServer\:\:authenticate\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: src/Plugins/TwoFactor/Key.php - - message: "#^Parameter \\#2 \\$registrations of static method CodeLts\\\\U2F\\\\U2FServer\\\\U2FServer\\:\\:makeRegistration\\(\\) expects array\\, array\\ given\\.$#" + message: '#^Parameter \#2 \$registrations of static method CodeLts\\U2F\\U2FServer\\U2FServer\:\:makeRegistration\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: src/Plugins/TwoFactor/Key.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^PHPDoc tag @var with type mixed is not subtype of native type mixed\.$#' + identifier: varTag.nativeType + count: 2 + path: src/Plugins/TwoFactor/WebAuthn.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Plugins/TwoFactorPlugin.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Plugins/TwoFactorPlugin.php - - message: "#^Parameter \\#1 \\$url of function parse_url expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$url of function parse_url expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Plugins/TwoFactorPlugin.php - - message: "#^Method PhpMyAdmin\\\\Plugins\\\\UploadInterface\\:\\:getUploadStatus\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method PhpMyAdmin\\Plugins\\UploadInterface\:\:getUploadStatus\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Plugins/UploadInterface.php - - message: "#^Only booleans are allowed in an if condition, string\\|false\\|null given\\.$#" + message: '#^Only booleans are allowed in an if condition, string\|false\|null given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Profiling.php - - message: "#^Cannot access offset 'CHARACTER_MAXIMUM…' on mixed\\.$#" + message: '#^Method PhpMyAdmin\\Properties\\Options\\OptionsPropertyGroup\:\:count\(\) should return int\<0, max\> but returns int\.$#' + identifier: return.type + count: 1 + path: src/Properties/Options/OptionsPropertyGroup.php + + - + message: '#^Cannot access offset ''CHARACTER_MAXIMUM_LENGTH'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'CHARACTER_OCTET…' on mixed\\.$#" + message: '#^Cannot access offset ''CHARACTER_OCTET_LENGTH'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'CHARACTER_SET_NAME' on mixed\\.$#" + message: '#^Cannot access offset ''CHARACTER_SET_NAME'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'COLLATION_NAME' on mixed\\.$#" + message: '#^Cannot access offset ''COLLATION_NAME'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'COLUMN_COMMENT' on mixed\\.$#" + message: '#^Cannot access offset ''COLUMN_COMMENT'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'COLUMN_DEFAULT' on mixed\\.$#" + message: '#^Cannot access offset ''COLUMN_DEFAULT'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'COLUMN_KEY' on mixed\\.$#" + message: '#^Cannot access offset ''COLUMN_KEY'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'COLUMN_NAME' on mixed\\.$#" + message: '#^Cannot access offset ''COLUMN_NAME'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'COLUMN_TYPE' on mixed\\.$#" + message: '#^Cannot access offset ''COLUMN_TYPE'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'Collation' on mixed\\.$#" + message: '#^Cannot access offset ''Collation'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'Comment' on mixed\\.$#" + message: '#^Cannot access offset ''Comment'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'DATA_TYPE' on mixed\\.$#" + message: '#^Cannot access offset ''DATA_TYPE'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'Default' on mixed\\.$#" + message: '#^Cannot access offset ''Default'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'EXTRA' on mixed\\.$#" + message: '#^Cannot access offset ''EXTRA'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'Extra' on mixed\\.$#" + message: '#^Cannot access offset ''Extra'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'Field' on mixed\\.$#" + message: '#^Cannot access offset ''Field'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'IS_NULLABLE' on mixed\\.$#" + message: '#^Cannot access offset ''IS_NULLABLE'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'Key' on mixed\\.$#" + message: '#^Cannot access offset ''Key'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'NUMERIC_PRECISION' on mixed\\.$#" + message: '#^Cannot access offset ''NUMERIC_PRECISION'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'NUMERIC_SCALE' on mixed\\.$#" + message: '#^Cannot access offset ''NUMERIC_SCALE'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'Null' on mixed\\.$#" + message: '#^Cannot access offset ''Null'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'ORDINAL_POSITION' on mixed\\.$#" + message: '#^Cannot access offset ''ORDINAL_POSITION'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'PRIVILEGES' on mixed\\.$#" + message: '#^Cannot access offset ''PRIVILEGES'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'Privileges' on mixed\\.$#" + message: '#^Cannot access offset ''Privileges'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'TABLE_CATALOG' on mixed\\.$#" + message: '#^Cannot access offset ''TABLE_CATALOG'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'TABLE_NAME' on mixed\\.$#" + message: '#^Cannot access offset ''TABLE_NAME'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'TABLE_SCHEMA' on mixed\\.$#" + message: '#^Cannot access offset ''TABLE_SCHEMA'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Compatibility.php - - message: "#^Cannot access offset 'Type' on mixed\\.$#" + message: '#^Cannot access offset ''Type'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Compatibility.php - - message: "#^Parameter \\#1 \\$string of function strtoupper expects string, \\(int\\|string\\) given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 1 path: src/Query/Compatibility.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Parameter \#1 \$string of function strtoupper expects string, \(int\|string\) given\.$#' + identifier: argument.type + count: 1 + path: src/Query/Compatibility.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Query/Utilities.php - - message: "#^Cannot access an offset on mixed\\.$#" + message: '#^Cannot access an offset on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Utilities.php - - message: "#^Cannot access offset 'queries' on mixed\\.$#" + message: '#^Cannot access offset ''queries'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Query/Utilities.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 4 path: src/Query/Utilities.php - - message: "#^Cannot access offset 'File' on mixed\\.$#" - count: 1 - path: src/Replication/Replication.php - - - - message: "#^Cannot access offset 'Position' on mixed\\.$#" - count: 1 - path: src/Replication/Replication.php - - - - message: "#^Method PhpMyAdmin\\\\Replication\\\\Replication\\:\\:replicaBinLogPrimary\\(\\) should return array\\{File\\?\\: string, Position\\?\\: string\\} but returns array\\{\\}\\|array\\{File\\: mixed, Position\\: mixed\\}\\.$#" - count: 1 - path: src/Replication/Replication.php - - - - message: "#^Parameter \\#1 \\$str of method PhpMyAdmin\\\\DatabaseInterface\\:\\:quoteString\\(\\) expects string, mixed given\\.$#" + message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 2 path: src/Replication/Replication.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Cannot access offset ''File'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Replication/Replication.php + + - + message: '#^Cannot access offset ''Position'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Replication/Replication.php + + - + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 1 + path: src/Replication/Replication.php + + - + message: '#^Method PhpMyAdmin\\Replication\\Replication\:\:replicaBinLogPrimary\(\) should return array\{File\?\: string, Position\?\: string\} but returns array\{\}\|array\{File\: mixed, Position\: mixed\}\.$#' + identifier: return.type + count: 1 + path: src/Replication/Replication.php + + - + message: '#^Parameter \#1 \$str of method PhpMyAdmin\\DatabaseInterface\:\:quoteString\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Replication/Replication.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Replication/ReplicationGui.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 8 path: src/Replication/ReplicationGui.php - - message: "#^Cannot access offset 'Replica_IO_Running' on mixed\\.$#" + message: '#^Cannot access offset ''Replica_IO_Running'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Replication/ReplicationGui.php - - message: "#^Cannot access offset 'Replica_SQL_Running' on mixed\\.$#" + message: '#^Cannot access offset ''Replica_SQL_Running'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Replication/ReplicationGui.php - - message: "#^Cannot access offset 'Slave_IO_Running' on mixed\\.$#" + message: '#^Cannot access offset ''Slave_IO_Running'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Replication/ReplicationGui.php - - message: "#^Cannot access offset 'Slave_SQL_Running' on mixed\\.$#" + message: '#^Cannot access offset ''Slave_SQL_Running'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Replication/ReplicationGui.php - - message: "#^Cannot access offset 'm_correct' on mixed\\.$#" + message: '#^Cannot access offset ''m_correct'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Replication/ReplicationGui.php - - message: "#^Cannot access offset 'm_hostname' on mixed\\.$#" + message: '#^Cannot access offset ''m_hostname'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Replication/ReplicationGui.php - - message: "#^Cannot access offset 'm_password' on mixed\\.$#" + message: '#^Cannot access offset ''m_password'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Replication/ReplicationGui.php - - message: "#^Cannot access offset 'm_port' on mixed\\.$#" + message: '#^Cannot access offset ''m_port'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Replication/ReplicationGui.php - - message: "#^Cannot access offset 'm_username' on mixed\\.$#" + message: '#^Cannot access offset ''m_username'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Replication/ReplicationGui.php - - message: "#^Cannot access offset 'sr_action_info' on mixed\\.$#" + message: '#^Cannot access offset ''sr_action_info'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 6 path: src/Replication/ReplicationGui.php - - message: "#^Cannot access offset 'sr_action_status' on mixed\\.$#" + message: '#^Cannot access offset ''sr_action_status'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 7 path: src/Replication/ReplicationGui.php - - message: "#^Cannot access offset string on mixed\\.$#" + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Replication/ReplicationGui.php - - message: "#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Replication/ReplicationGui.php - - message: "#^Only numeric types are allowed in \\+, int\\<0, max\\>\\|false given on the left side\\.$#" + message: '#^Only numeric types are allowed in \+, int\<0, max\>\|false given on the left side\.$#' + identifier: plus.leftNonNumeric count: 1 path: src/Replication/ReplicationGui.php - - message: "#^Parameter \\#1 \\$action of method PhpMyAdmin\\\\Replication\\\\Replication\\:\\:replicaControl\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$action of method PhpMyAdmin\\Replication\\Replication\:\:replicaControl\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Replication/ReplicationGui.php - - message: "#^Parameter \\#1 \\$params of static method PhpMyAdmin\\\\Url\\:\\:getCommon\\(\\) expects array\\, array\\ given\\.$#" + message: '#^Parameter \#1 \$params of static method PhpMyAdmin\\Url\:\:getCommon\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 2 path: src/Replication/ReplicationGui.php - - message: "#^Parameter \\#1 \\$string of static method PhpMyAdmin\\\\Message\\:\\:error\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of static method PhpMyAdmin\\Message\:\:error\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Replication/ReplicationGui.php - - message: "#^Parameter \\#1 \\$string of static method PhpMyAdmin\\\\Message\\:\\:success\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of static method PhpMyAdmin\\Message\:\:success\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Replication/ReplicationGui.php - - message: "#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, mixed given\\.$#" + message: '#^Parameter \#3 \$subject of function str_replace expects array\\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Replication/ReplicationGui.php - - message: "#^Cannot access offset string on mixed\\.$#" + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Replication/ReplicationInfo.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Replication/ReplicationInfo.php - - message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$string of function explode expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Replication/ReplicationInfo.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/ResponseRenderer.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/ResponseRenderer.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 3 path: src/ResponseRenderer.php - - message: "#^Foreach overwrites \\$value with its value variable\\.$#" + message: '#^Foreach overwrites \$value with its value variable\.$#' + identifier: foreach.valueOverwrite count: 1 path: src/ResponseRenderer.php - - message: "#^Parameter \\#1 \\$params of static method PhpMyAdmin\\\\Url\\:\\:getCommonRaw\\(\\) expects array\\, array\\ given\\.$#" + message: '#^Parameter \#1 \$params of static method PhpMyAdmin\\Url\:\:getCommonRaw\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: src/ResponseRenderer.php - - message: "#^Parameter \\#1 \\$string of function mb_strlen expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function mb_strlen expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/ResponseRenderer.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between mixed and ''routes\.cache\.php'' results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Routing/Routing.php - - message: "#^Parameter \\#1 \\$filename of function is_readable expects string, mixed given\\.$#" + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Routing/Routing.php - - message: "#^Parameter \\#1 \\$filename of function is_writable expects string, mixed given\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed count: 1 path: src/Routing/Routing.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Only booleans are allowed in &&, mixed given on the right side\.$#' + identifier: booleanAnd.rightNotBoolean + count: 1 + path: src/Routing/Routing.php + + - + message: '#^Parameter \#1 \$filename of function is_readable expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Routing/Routing.php + + - + message: '#^Parameter \#1 \$filename of function is_writable expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Routing/Routing.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Sanitize.php - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" + message: '#^Call to function in_array\(\) requires parameter \#3 to be set\.$#' + identifier: function.strict count: 1 path: src/Sanitize.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 2 path: src/Sanitize.php - - message: "#^Method PhpMyAdmin\\\\Sanitize\\:\\:isSetup\\(\\) should return bool but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\Sanitize\:\:isSetup\(\) should return bool but returns mixed\.$#' + identifier: return.type count: 1 path: src/Sanitize.php - - message: "#^Method PhpMyAdmin\\\\Sanitize\\:\\:sanitizeFilename\\(\\) should return string but returns string\\|null\\.$#" + message: '#^Method PhpMyAdmin\\Sanitize\:\:sanitizeFilename\(\) should return string but returns string\|null\.$#' + identifier: return.type count: 1 path: src/Sanitize.php - - message: "#^Parameter \\#1 \\$name of class PhpMyAdmin\\\\Server\\\\Plugin constructor expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$name of class PhpMyAdmin\\Server\\Plugin constructor expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Server/Plugin.php - - message: "#^Parameter \\#10 \\$license of class PhpMyAdmin\\\\Server\\\\Plugin constructor expects string, mixed given\\.$#" + message: '#^Parameter \#10 \$license of class PhpMyAdmin\\Server\\Plugin constructor expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Server/Plugin.php - - message: "#^Parameter \\#11 \\$loadOption of class PhpMyAdmin\\\\Server\\\\Plugin constructor expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#11 \$loadOption of class PhpMyAdmin\\Server\\Plugin constructor expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Server/Plugin.php - - message: "#^Parameter \\#12 \\$maturity of class PhpMyAdmin\\\\Server\\\\Plugin constructor expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#12 \$maturity of class PhpMyAdmin\\Server\\Plugin constructor expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Server/Plugin.php - - message: "#^Parameter \\#13 \\$authVersion of class PhpMyAdmin\\\\Server\\\\Plugin constructor expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#13 \$authVersion of class PhpMyAdmin\\Server\\Plugin constructor expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Server/Plugin.php - - message: "#^Parameter \\#2 \\$version of class PhpMyAdmin\\\\Server\\\\Plugin constructor expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \$version of class PhpMyAdmin\\Server\\Plugin constructor expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Server/Plugin.php - - message: "#^Parameter \\#3 \\$status of class PhpMyAdmin\\\\Server\\\\Plugin constructor expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$status of class PhpMyAdmin\\Server\\Plugin constructor expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Server/Plugin.php - - message: "#^Parameter \\#4 \\$type of class PhpMyAdmin\\\\Server\\\\Plugin constructor expects string, mixed given\\.$#" + message: '#^Parameter \#4 \$type of class PhpMyAdmin\\Server\\Plugin constructor expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Server/Plugin.php - - message: "#^Parameter \\#5 \\$typeVersion of class PhpMyAdmin\\\\Server\\\\Plugin constructor expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#5 \$typeVersion of class PhpMyAdmin\\Server\\Plugin constructor expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Server/Plugin.php - - message: "#^Parameter \\#6 \\$library of class PhpMyAdmin\\\\Server\\\\Plugin constructor expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#6 \$library of class PhpMyAdmin\\Server\\Plugin constructor expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Server/Plugin.php - - message: "#^Parameter \\#7 \\$libraryVersion of class PhpMyAdmin\\\\Server\\\\Plugin constructor expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#7 \$libraryVersion of class PhpMyAdmin\\Server\\Plugin constructor expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Server/Plugin.php - - message: "#^Parameter \\#8 \\$author of class PhpMyAdmin\\\\Server\\\\Plugin constructor expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#8 \$author of class PhpMyAdmin\\Server\\Plugin constructor expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Server/Plugin.php - - message: "#^Parameter \\#9 \\$description of class PhpMyAdmin\\\\Server\\\\Plugin constructor expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#9 \$description of class PhpMyAdmin\\Server\\Plugin constructor expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Server/Plugin.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Server/Plugins.php - - message: "#^Parameter \\#1 \\$description of method PhpMyAdmin\\\\Server\\\\Plugins\\:\\:getTranslatedDescription\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$description of method PhpMyAdmin\\Server\\Plugins\:\:getTranslatedDescription\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Server/Plugins.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between '' IDENTIFIED VIA '' and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Server/Privileges.php - - message: "#^Cannot access offset 'CHARACTER_MAXIMUM…' on mixed\\.$#" - count: 2 - path: src/Server/Privileges.php - - - - message: "#^Cannot access offset 'COLUMN_NAME' on mixed\\.$#" + message: '#^Binary operation "\." between '' IDENTIFIED WITH '' and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Server/Privileges.php - - message: "#^Cannot access offset 'Column_priv' on mixed\\.$#" + message: '#^Binary operation "\." between ''PASSWORD\(\\'''' and \(list\\|string\|null\) results in an error\.$#' + identifier: binaryOp.invalid count: 2 path: src/Server/Privileges.php - - message: "#^Cannot access offset 'Db' on mixed\\.$#" - count: 2 - path: src/Server/Privileges.php - - - - message: "#^Cannot access offset 'Grant_priv' on mixed\\.$#" - count: 2 - path: src/Server/Privileges.php - - - - message: "#^Cannot access offset 'Host' on mixed\\.$#" - count: 2 - path: src/Server/Privileges.php - - - - message: "#^Cannot access offset 'Proc_priv' on mixed\\.$#" - count: 2 - path: src/Server/Privileges.php - - - - message: "#^Cannot access offset 'Routine_name' on mixed\\.$#" - count: 2 - path: src/Server/Privileges.php - - - - message: "#^Cannot access offset 'Select_priv' on mixed\\.$#" + message: '#^Binary operation "\." between ''UPDATE `mysql`\.…'' and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Server/Privileges.php - - message: "#^Cannot access offset 'Table_name' on mixed\\.$#" - count: 2 + message: '#^Binary operation "\." between mixed and ";\\n\\n" results in an error\.$#' + identifier: binaryOp.invalid + count: 1 path: src/Server/Privileges.php - - message: "#^Cannot access offset 'Table_priv' on mixed\\.$#" - count: 2 + message: '#^Binary operation "\." between mixed and ''&\#27;'' results in an error\.$#' + identifier: binaryOp.invalid + count: 1 path: src/Server/Privileges.php - - message: "#^Cannot access offset 'User' on mixed\\.$#" + message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 3 path: src/Server/Privileges.php - - message: "#^Cannot access offset 'can_delete' on mixed\\.$#" + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Server/Privileges.php - - message: "#^Cannot access offset 'privs' on mixed\\.$#" - count: 1 - path: src/Server/Privileges.php - - - - message: "#^Cannot access offset 0 on mixed\\.$#" + message: '#^Call to function array_filter\(\) requires parameter \#2 to be passed to avoid loose comparison semantics\.$#' + identifier: arrayFilter.strict count: 2 path: src/Server/Privileges.php - - message: "#^Cannot access offset array\\\\|string\\|null on mixed\\.$#" + message: '#^Cannot access offset ''CHARACTER_MAXIMUM_LENGTH'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 2 + path: src/Server/Privileges.php + + - + message: '#^Cannot access offset ''COLUMN_NAME'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Server/Privileges.php - - message: "#^Cannot access offset string on mixed\\.$#" + message: '#^Cannot access offset ''Column_priv'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 2 + path: src/Server/Privileges.php + + - + message: '#^Cannot access offset ''Db'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 2 + path: src/Server/Privileges.php + + - + message: '#^Cannot access offset ''Grant_priv'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 2 + path: src/Server/Privileges.php + + - + message: '#^Cannot access offset ''Host'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 2 + path: src/Server/Privileges.php + + - + message: '#^Cannot access offset ''Proc_priv'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 2 + path: src/Server/Privileges.php + + - + message: '#^Cannot access offset ''Routine_name'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 2 + path: src/Server/Privileges.php + + - + message: '#^Cannot access offset ''Select_priv'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Server/Privileges.php - - message: "#^Cannot cast mixed to int\\.$#" + message: '#^Cannot access offset ''Table_name'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 2 + path: src/Server/Privileges.php + + - + message: '#^Cannot access offset ''Table_priv'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 2 + path: src/Server/Privileges.php + + - + message: '#^Cannot access offset ''User'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 3 + path: src/Server/Privileges.php + + - + message: '#^Cannot access offset ''can_delete'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Server/Privileges.php + + - + message: '#^Cannot access offset ''privs'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Server/Privileges.php + + - + message: '#^Cannot access offset 0 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 2 + path: src/Server/Privileges.php + + - + message: '#^Cannot access offset array\\|string\|null on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Server/Privileges.php + + - + message: '#^Cannot cast mixed to int\.$#' + identifier: cast.int count: 4 path: src/Server/Privileges.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 6 path: src/Server/Privileges.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 14 path: src/Server/Privileges.php - - message: "#^Foreach overwrites \\$sqlQuery with its value variable\\.$#" + message: '#^Foreach overwrites \$sqlQuery with its value variable\.$#' + identifier: foreach.valueOverwrite count: 1 path: src/Server/Privileges.php - - message: "#^Method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:getDbname\\(\\) should return array\\\\|string\\|null but returns array\\\\|string\\|null\\.$#" - count: 1 - path: src/Server/Privileges.php - - - - message: "#^Offset '@@old_passwords' does not exist on array\\\\|null\\.$#" - count: 1 - path: src/Server/Privileges.php - - - - message: "#^Offset 'Type' does not exist on array\\\\|null\\.$#" - count: 4 - path: src/Server/Privileges.php - - - - message: "#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" - count: 13 - path: src/Server/Privileges.php - - - - message: "#^Only booleans are allowed in an if condition, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" - count: 5 - path: src/Server/Privileges.php - - - - message: "#^Only numeric types are allowed in \\+, int\\<0, max\\>\\|false given on the left side\\.$#" - count: 4 - path: src/Server/Privileges.php - - - - message: "#^Only numeric types are allowed in \\-, int\\<0, max\\>\\|false given on the left side\\.$#" - count: 1 - path: src/Server/Privileges.php - - - - message: "#^Only numeric types are allowed in \\-, int\\<0, max\\>\\|false given on the right side\\.$#" - count: 1 - path: src/Server/Privileges.php - - - - message: "#^Parameter \\#1 \\$array of function ksort expects array, mixed given\\.$#" - count: 1 - path: src/Server/Privileges.php - - - - message: "#^Parameter \\#1 \\$authPlugin of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:setProperPasswordHashing\\(\\) expects string, mixed given\\.$#" - count: 3 - path: src/Server/Privileges.php - - - - message: "#^Parameter \\#1 \\$callback of function array_map expects \\(callable\\(mixed\\)\\: mixed\\)\\|null, Closure\\(string\\|Stringable\\|null\\)\\: string given\\.$#" - count: 1 - path: src/Server/Privileges.php - - - - message: "#^Parameter \\#1 \\$haystack of function mb_strpos expects string, string\\|null given\\.$#" - count: 3 - path: src/Server/Privileges.php - - - - message: "#^Parameter \\#1 \\$haystack of function str_contains expects string, mixed given\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed count: 2 path: src/Server/Privileges.php - - message: "#^Parameter \\#1 \\$haystack of function str_starts_with expects string, string\\|null given\\.$#" - count: 3 - path: src/Server/Privileges.php - - - - message: "#^Parameter \\#1 \\$name of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:escapeGrantWildcards\\(\\) expects string, array\\\\|string\\|true\\|null given\\.$#" - count: 1 - path: src/Server/Privileges.php - - - - message: "#^Parameter \\#1 \\$password of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:getHashedPassword\\(\\) expects string, mixed given\\.$#" - count: 3 - path: src/Server/Privileges.php - - - - message: "#^Parameter \\#1 \\$privs of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:parseProcPriv\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Server/Privileges.php - - - - message: "#^Parameter \\#1 \\$query of method PhpMyAdmin\\\\DatabaseInterface\\:\\:query\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Server/Privileges.php - - - - message: "#^Parameter \\#1 \\$query of method PhpMyAdmin\\\\DatabaseInterface\\:\\:tryQuery\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Server/Privileges.php - - - - message: "#^Parameter \\#1 \\$row of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:extractPrivInfo\\(\\) expects array\\|null, mixed given\\.$#" - count: 2 - path: src/Server/Privileges.php - - - - message: "#^Parameter \\#1 \\$str of method PhpMyAdmin\\\\DatabaseInterface\\:\\:quoteString\\(\\) expects string, mixed given\\.$#" - count: 5 - path: src/Server/Privileges.php - - - - message: "#^Parameter \\#1 \\$str of method PhpMyAdmin\\\\DatabaseInterface\\:\\:quoteString\\(\\) expects string, string\\|null given\\.$#" - count: 2 - path: src/Server/Privileges.php - - - - message: "#^Parameter \\#1 \\$string of function mb_strtolower expects string, mixed given\\.$#" - count: 1 - path: src/Server/Privileges.php - - - - message: "#^Parameter \\#1 \\$string of function mb_substr expects string, string\\|null given\\.$#" - count: 1 - path: src/Server/Privileges.php - - - - message: "#^Parameter \\#1 \\$username of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:getUserHostCondition\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Server/Privileges.php - - - - message: "#^Parameter \\#1 \\$username of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:setUserGroup\\(\\) expects string, mixed given\\.$#" - count: 2 - path: src/Server/Privileges.php - - - - message: "#^Parameter \\#2 \\$hostname of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:getUserHostCondition\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Server/Privileges.php - - - - message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 6 path: src/Server/Privileges.php - - message: "#^Parameter \\#2 \\$string of function explode expects string, string\\|null given\\.$#" + message: '#^Method PhpMyAdmin\\Server\\Privileges\:\:getDbname\(\) should return array\\|string\|null but returns array\\|string\|null\.$#' + identifier: return.type + count: 1 + path: src/Server/Privileges.php + + - + message: '#^Offset ''@@old_passwords'' might not exist on array\\|null\.$#' + identifier: offsetAccess.notFound + count: 1 + path: src/Server/Privileges.php + + - + message: '#^Offset ''Type'' might not exist on array\\|null\.$#' + identifier: offsetAccess.notFound + count: 4 + path: src/Server/Privileges.php + + - + message: '#^Only booleans are allowed in &&, mixed given on the right side\.$#' + identifier: booleanAnd.rightNotBoolean + count: 1 + path: src/Server/Privileges.php + + - + message: '#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: booleanNot.exprNotBoolean + count: 13 + path: src/Server/Privileges.php + + - + message: '#^Only booleans are allowed in an if condition, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: if.condNotBoolean + count: 5 + path: src/Server/Privileges.php + + - + message: '#^Only numeric types are allowed in \+, int\<0, max\>\|false given on the left side\.$#' + identifier: plus.leftNonNumeric + count: 4 + path: src/Server/Privileges.php + + - + message: '#^Only numeric types are allowed in \-, int\<0, max\>\|false given on the left side\.$#' + identifier: minus.leftNonNumeric + count: 1 + path: src/Server/Privileges.php + + - + message: '#^Only numeric types are allowed in \-, int\<0, max\>\|false given on the right side\.$#' + identifier: minus.rightNonNumeric + count: 1 + path: src/Server/Privileges.php + + - + message: '#^PHPDoc tag @var with type array\\|null is not subtype of native type array\.$#' + identifier: varTag.nativeType + count: 2 + path: src/Server/Privileges.php + + - + message: '#^Parameter \#1 \$array of function ksort expects array, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Server/Privileges.php + + - + message: '#^Parameter \#1 \$authPlugin of method PhpMyAdmin\\Server\\Privileges\:\:setProperPasswordHashing\(\) expects string, mixed given\.$#' + identifier: argument.type count: 3 path: src/Server/Privileges.php - - message: "#^Parameter \\#2 \\$userGroup of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:setUserGroup\\(\\) expects string, mixed given\\.$#" - count: 2 - path: src/Server/Privileges.php - - - - message: "#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, mixed given\\.$#" - count: 2 - path: src/Server/Privileges.php - - - - message: "#^Parameter \\#3 \\$username of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:getSqlQueryForDisplayPrivTable\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$callback of function array_map expects \(callable\(mixed\)\: mixed\)\|null, Closure\(string\|Stringable\|null\)\: string given\.$#' + identifier: argument.type count: 1 path: src/Server/Privileges.php - - message: "#^Parameter \\#4 \\$dbname of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:getUserLink\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$haystack of function mb_strpos expects string, string\|null given\.$#' + identifier: argument.type + count: 3 + path: src/Server/Privileges.php + + - + message: '#^Parameter \#1 \$haystack of function str_contains expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Server/Privileges.php - - message: "#^Parameter \\#4 \\$hostname of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:getSqlQueryForDisplayPrivTable\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$haystack of function str_starts_with expects string, string\|null given\.$#' + identifier: argument.type + count: 3 + path: src/Server/Privileges.php + + - + message: '#^Parameter \#1 \$name of method PhpMyAdmin\\Server\\Privileges\:\:escapeGrantWildcards\(\) expects string, list\\|string\|true\|null given\.$#' + identifier: argument.type count: 1 path: src/Server/Privileges.php - - message: "#^Parameter \\#5 \\$tablename of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:getUserLink\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$password of method PhpMyAdmin\\Server\\Privileges\:\:getHashedPassword\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 3 + path: src/Server/Privileges.php + + - + message: '#^Parameter \#1 \$privs of method PhpMyAdmin\\Server\\Privileges\:\:parseProcPriv\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Server/Privileges.php + + - + message: '#^Parameter \#1 \$query of method PhpMyAdmin\\DatabaseInterface\:\:query\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Server/Privileges.php + + - + message: '#^Parameter \#1 \$query of method PhpMyAdmin\\DatabaseInterface\:\:tryQuery\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Server/Privileges.php + + - + message: '#^Parameter \#1 \$row of method PhpMyAdmin\\Server\\Privileges\:\:extractPrivInfo\(\) expects array\\|null, mixed given\.$#' + identifier: argument.type count: 2 path: src/Server/Privileges.php - - message: "#^Parameter \\#6 \\$routinename of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:getUserLink\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$str of method PhpMyAdmin\\DatabaseInterface\:\:quoteString\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 5 + path: src/Server/Privileges.php + + - + message: '#^Parameter \#1 \$str of method PhpMyAdmin\\DatabaseInterface\:\:quoteString\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 2 path: src/Server/Privileges.php - - message: "#^Possibly invalid array key type array\\\\|string\\|null\\.$#" + message: '#^Parameter \#1 \$string of function mb_strtolower expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Server/Privileges.php - - message: "#^Possibly invalid array key type array\\\\|string\\|true\\|null\\.$#" + message: '#^Parameter \#1 \$string of function mb_substr expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Server/Privileges.php - - message: "#^Possibly invalid array key type array\\\\|string\\|null\\.$#" + message: '#^Parameter \#1 \$username of method PhpMyAdmin\\Server\\Privileges\:\:getUserHostCondition\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Server/Privileges.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Parameter \#1 \$username of method PhpMyAdmin\\Server\\Privileges\:\:setUserGroup\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Server/Privileges.php + + - + message: '#^Parameter \#2 \$hostname of method PhpMyAdmin\\Server\\Privileges\:\:getUserHostCondition\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Server/Privileges.php + + - + message: '#^Parameter \#2 \$string of function explode expects string, mixed given\.$#' + identifier: argument.type + count: 6 + path: src/Server/Privileges.php + + - + message: '#^Parameter \#2 \$string of function explode expects string, string\|null given\.$#' + identifier: argument.type + count: 3 + path: src/Server/Privileges.php + + - + message: '#^Parameter \#2 \$userGroup of method PhpMyAdmin\\Server\\Privileges\:\:setUserGroup\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Server/Privileges.php + + - + message: '#^Parameter \#3 \$subject of function preg_replace expects array\\|string, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Server/Privileges.php + + - + message: '#^Parameter \#3 \$username of method PhpMyAdmin\\Server\\Privileges\:\:getSqlQueryForDisplayPrivTable\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Server/Privileges.php + + - + message: '#^Parameter \#4 \$dbname of method PhpMyAdmin\\Server\\Privileges\:\:getUserLink\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Server/Privileges.php + + - + message: '#^Parameter \#4 \$hostname of method PhpMyAdmin\\Server\\Privileges\:\:getSqlQueryForDisplayPrivTable\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Server/Privileges.php + + - + message: '#^Parameter \#5 \$tablename of method PhpMyAdmin\\Server\\Privileges\:\:getUserLink\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Server/Privileges.php + + - + message: '#^Parameter \#6 \$routinename of method PhpMyAdmin\\Server\\Privileges\:\:getUserLink\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Server/Privileges.php + + - + message: '#^Possibly invalid array key type array\\|string\|null\.$#' + identifier: offsetAccess.invalidOffset + count: 1 + path: src/Server/Privileges.php + + - + message: '#^Possibly invalid array key type list\\|string\|null\.$#' + identifier: offsetAccess.invalidOffset + count: 1 + path: src/Server/Privileges.php + + - + message: '#^Possibly invalid array key type list\\|string\|true\|null\.$#' + identifier: offsetAccess.invalidOffset + count: 1 + path: src/Server/Privileges.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Server/Select.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 5 path: src/Server/Select.php - - message: "#^Cannot access offset 'doc' on mixed\\.$#" - count: 4 - path: src/Server/Status/Data.php - - - - message: "#^Cannot access offset string on mixed\\.$#" - count: 4 - path: src/Server/Status/Data.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" + message: '#^Binary operation "\*" between 100 and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 2 path: src/Server/Status/Data.php - - message: "#^Parameter \\#1 \\$connection of method PhpMyAdmin\\\\Replication\\\\ReplicationInfo\\:\\:load\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Binary operation "\*" between mixed and 1024 results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Server/Status/Data.php - - message: "#^Parameter \\#1 \\$haystack of function str_contains expects string, \\(int\\|string\\) given\\.$#" + message: '#^Binary operation "\*" between mixed and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Server/Status/Data.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Binary operation "/" between \(float\|int\) and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 4 + path: src/Server/Status/Data.php + + - + message: '#^Binary operation "/" between mixed and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Server/Status/Data.php + + - + message: '#^Cannot access offset ''doc'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 4 + path: src/Server/Status/Data.php + + - + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 4 + path: src/Server/Status/Data.php + + - + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 2 + path: src/Server/Status/Data.php + + - + message: '#^Only booleans are allowed in an if condition, mixed given\.$#' + identifier: if.condNotBoolean + count: 2 + path: src/Server/Status/Data.php + + - + message: '#^Parameter \#1 \$connection of method PhpMyAdmin\\Replication\\ReplicationInfo\:\:load\(\) expects string\|null, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Server/Status/Data.php + + - + message: '#^Parameter \#1 \$haystack of function str_contains expects string, \(int\|string\) given\.$#' + identifier: argument.type + count: 1 + path: src/Server/Status/Data.php + + - + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 4 path: src/Server/Status/Monitor.php - - message: "#^Binary operation \"\\+\\=\" between mixed and string\\|null results in an error\\.$#" + message: '#^Binary operation "\+\=" between \(float\|int\\) and mixed results in an error\.$#' + identifier: assignOp.invalid + count: 1 + path: src/Server/Status/Monitor.php + + - + message: '#^Binary operation "\+\=" between mixed and string\|null results in an error\.$#' + identifier: assignOp.invalid count: 2 path: src/Server/Status/Monitor.php - - message: "#^Binary operation \"\\-\" between string\\|null and 1 results in an error\\.$#" + message: '#^Binary operation "\-" between string\|null and 1 results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Server/Status/Monitor.php - - message: "#^Cannot access offset 'busy' on mixed\\.$#" + message: '#^Cannot access offset ''busy'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Server/Status/Monitor.php - - message: "#^Cannot access offset 'idle' on mixed\\.$#" + message: '#^Cannot access offset ''idle'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Server/Status/Monitor.php - - message: "#^Cannot access offset 'loadavg' on mixed\\.$#" + message: '#^Cannot access offset ''loadavg'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Server/Status/Monitor.php - - message: "#^Cannot access offset 'name' on mixed\\.$#" + message: '#^Cannot access offset ''name'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Server/Status/Monitor.php - - message: "#^Cannot access offset 'type' on mixed\\.$#" + message: '#^Cannot access offset ''type'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Server/Status/Monitor.php - - message: "#^Cannot access offset 'value' on mixed\\.$#" + message: '#^Cannot access offset ''value'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Server/Status/Monitor.php - - message: "#^Cannot access offset int\\<\\-1, max\\> on float\\|int\\<2, max\\>\\|string\\|null\\.$#" + message: '#^Cannot access offset int\<\-1, max\> on float\|int\<2, max\>\|string\|null\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Server/Status/Monitor.php - - message: "#^Cannot access offset mixed on mixed\\.$#" + message: '#^Cannot access offset mixed on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 10 path: src/Server/Status/Monitor.php - - message: "#^Cannot access offset string on mixed\\.$#" + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Server/Status/Monitor.php - - message: "#^Cannot call method loadavg\\(\\) on mixed\\.$#" + message: '#^Cannot call method loadavg\(\) on mixed\.$#' + identifier: method.nonObject count: 1 path: src/Server/Status/Monitor.php - - message: "#^Cannot call method memory\\(\\) on mixed\\.$#" + message: '#^Cannot call method memory\(\) on mixed\.$#' + identifier: method.nonObject count: 1 path: src/Server/Status/Monitor.php - - message: "#^Method PhpMyAdmin\\\\Server\\\\Status\\\\Monitor\\:\\:getJsonForLogDataTypeGeneral\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method PhpMyAdmin\\Server\\Status\\Monitor\:\:getJsonForLogDataTypeGeneral\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Server/Status/Monitor.php - - message: "#^Method PhpMyAdmin\\\\Server\\\\Status\\\\Monitor\\:\\:getJsonForLogDataTypeSlow\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method PhpMyAdmin\\Server\\Status\\Monitor\:\:getJsonForLogDataTypeSlow\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Server/Status/Monitor.php - - message: "#^Offset 1 does not exist on array\\{0\\?\\: string, 1\\?\\: non\\-empty\\-string\\}\\.$#" + message: '#^Offset 1 might not exist on array\{0\?\: string, 1\?\: non\-empty\-string\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Server/Status/Monitor.php - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean count: 4 path: src/Server/Status/Monitor.php - - message: "#^Parameter \\#1 \\$haystack of function mb_strpos expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$haystack of function mb_strpos expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Server/Status/Monitor.php - - message: "#^Parameter \\#1 \\$query of method PhpMyAdmin\\\\DatabaseInterface\\:\\:tryQuery\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$query of method PhpMyAdmin\\DatabaseInterface\:\:tryQuery\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Server/Status/Monitor.php - - message: "#^Parameter \\#1 \\$ret of method PhpMyAdmin\\\\Server\\\\Status\\\\Monitor\\:\\:getJsonForChartingDataGet\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#1 \$ret of method PhpMyAdmin\\Server\\Status\\Monitor\:\:getJsonForChartingDataGet\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Server/Status/Monitor.php - - message: "#^Parameter \\#1 \\$ret of method PhpMyAdmin\\\\Server\\\\Status\\\\Monitor\\:\\:getJsonForChartingDataSet\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#1 \$ret of method PhpMyAdmin\\Server\\Status\\Monitor\:\:getJsonForChartingDataSet\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Server/Status/Monitor.php - - message: "#^Parameter \\#1 \\$string of function mb_strlen expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$string of function mb_strlen expects string, string\|null given\.$#' + identifier: argument.type count: 4 path: src/Server/Status/Monitor.php - - message: "#^Parameter \\#1 \\$string of function mb_substr expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$string of function mb_substr expects string, string\|null given\.$#' + identifier: argument.type count: 3 path: src/Server/Status/Monitor.php - - message: "#^Parameter \\#1 \\$string of function strlen expects string, float\\|int\\<2, max\\>\\|string\\|null given\\.$#" + message: '#^Parameter \#1 \$string of function strlen expects string, float\|int\<2, max\>\|string\|null given\.$#' + identifier: argument.type count: 1 path: src/Server/Status/Monitor.php - - message: "#^Parameter \\#1 \\$type of method PhpMyAdmin\\\\Server\\\\Status\\\\Monitor\\:\\:getJsonForChartingDataSwitch\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$type of method PhpMyAdmin\\Server\\Status\\Monitor\:\:getJsonForChartingDataSwitch\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Server/Status/Monitor.php - - message: "#^Parameter \\#2 \\$array of function implode expects array\\, mixed given\\.$#" + message: '#^Parameter \#2 \$array of function implode expects array\, mixed given\.$#' + identifier: argument.type count: 2 path: src/Server/Status/Monitor.php - - message: "#^Parameter \\#2 \\$array of function implode expects array\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \$array of function implode expects array\|null, mixed given\.$#' + identifier: argument.type count: 2 path: src/Server/Status/Monitor.php - - message: "#^Parameter \\#2 \\$pName of method PhpMyAdmin\\\\Server\\\\Status\\\\Monitor\\:\\:getJsonForChartingDataSwitch\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$pName of method PhpMyAdmin\\Server\\Status\\Monitor\:\:getJsonForChartingDataSwitch\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Server/Status/Monitor.php - - message: "#^Parameter \\#2 \\$subject of function preg_match expects string, string\\|null given\\.$#" + message: '#^Parameter \#2 \$subject of function preg_match expects string, string\|null given\.$#' + identifier: argument.type count: 2 path: src/Server/Status/Monitor.php - - message: "#^Parameter \\#3 \\$serverVars of method PhpMyAdmin\\\\Server\\\\Status\\\\Monitor\\:\\:getJsonForChartingDataSwitch\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#3 \$serverVars of method PhpMyAdmin\\Server\\Status\\Monitor\:\:getJsonForChartingDataSwitch\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Server/Status/Monitor.php - - message: "#^Parameter \\#4 \\$statusVars of method PhpMyAdmin\\\\Server\\\\Status\\\\Monitor\\:\\:getJsonForChartingDataSwitch\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#4 \$statusVars of method PhpMyAdmin\\Server\\Status\\Monitor\:\:getJsonForChartingDataSwitch\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Server/Status/Monitor.php - - message: "#^Parameter \\#5 \\$ret of method PhpMyAdmin\\\\Server\\\\Status\\\\Monitor\\:\\:getJsonForChartingDataSwitch\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#5 \$ret of method PhpMyAdmin\\Server\\Status\\Monitor\:\:getJsonForChartingDataSwitch\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Server/Status/Monitor.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 3 path: src/Server/Status/Processes.php - - message: "#^Method PhpMyAdmin\\\\Server\\\\Status\\\\Processes\\:\\:getList\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 1 path: src/Server/Status/Processes.php - - message: "#^Only booleans are allowed in an if condition, string\\|false\\|null given\\.$#" + message: '#^Method PhpMyAdmin\\Server\\Status\\Processes\:\:getList\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: src/Server/Status/Processes.php + + - + message: '#^Only booleans are allowed in an if condition, string\|false\|null given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Server/SysInfo/SunOs.php - - message: "#^Class COM referenced with incorrect case\\: com\\.$#" + message: '#^Class COM referenced with incorrect case\: com\.$#' + identifier: class.nameCase count: 1 path: src/Server/SysInfo/WindowsNt.php - - message: "#^Cannot call method getMessage\\(\\) on mixed\\.$#" + message: '#^Cannot call method getMessage\(\) on mixed\.$#' + identifier: method.nonObject count: 1 path: src/Session.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 6 path: src/Session.php - - message: "#^Parameter \\#1 \\$id of function session_id expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$id of function session_id expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Session.php - - message: "#^Parameter \\#1 \\$path of function session_save_path expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$path of function session_save_path expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Session.php - - message: "#^Parameter \\#1 \\$string of function htmlspecialchars expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function htmlspecialchars expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Session.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Setup/ConfigGenerator.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 1 path: src/Setup/ConfigGenerator.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Setup/ConfigGenerator.php - - message: "#^Method PhpMyAdmin\\\\Setup\\\\ConfigGenerator\\:\\:getBlowfishSecretKey\\(\\) should return non\\-empty\\-string but returns string\\.$#" + message: '#^Method PhpMyAdmin\\Setup\\ConfigGenerator\:\:getBlowfishSecretKey\(\) should return non\-empty\-string but returns string\.$#' + identifier: return.type count: 2 path: src/Setup/ConfigGenerator.php - - message: "#^Parameter \\#1 \\$canonicalPath of method PhpMyAdmin\\\\Config\\\\ConfigFile\\:\\:getDefault\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$canonicalPath of method PhpMyAdmin\\Config\\ConfigFile\:\:getDefault\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Setup/ConfigGenerator.php - - message: "#^Parameter \\#1 \\$haystack of function str_contains expects string, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#1 \$haystack of function str_contains expects string, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Setup/ConfigGenerator.php - - message: "#^Parameter \\#1 \\$id of method PhpMyAdmin\\\\Config\\\\ConfigFile\\:\\:getServerName\\(\\) expects int, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#1 \$id of method PhpMyAdmin\\Config\\ConfigFile\:\:getServerName\(\) expects int, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Setup/ConfigGenerator.php - - message: "#^Parameter \\#1 \\$varName of static method PhpMyAdmin\\\\Setup\\\\ConfigGenerator\\:\\:getVarExport\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$varName of static method PhpMyAdmin\\Setup\\ConfigGenerator\:\:getVarExport\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 2 path: src/Setup/ConfigGenerator.php - - message: "#^Parameter \\#3 \\$servers of static method PhpMyAdmin\\\\Setup\\\\ConfigGenerator\\:\\:getServerPart\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#3 \$servers of static method PhpMyAdmin\\Setup\\ConfigGenerator\:\:getServerPart\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Setup/ConfigGenerator.php - - message: "#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#3 \$subject of function preg_replace expects array\\|string, \(int\|string\) given\.$#' + identifier: argument.type count: 2 path: src/Setup/ConfigGenerator.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 5 path: src/Setup/Index.php - - message: "#^Cannot access offset 'active' on mixed\\.$#" + message: '#^Cannot access offset ''active'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Setup/Index.php - - message: "#^Cannot access offset 'fresh' on mixed\\.$#" + message: '#^Cannot access offset ''fresh'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Setup/Index.php - - message: "#^Cannot access offset 'message' on mixed\\.$#" + message: '#^Cannot access offset ''message'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Setup/Index.php - - message: "#^Cannot access offset 'title' on mixed\\.$#" + message: '#^Cannot access offset ''title'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Setup/Index.php - - message: "#^Cannot access offset mixed on mixed\\.$#" + message: '#^Cannot access offset mixed on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Setup/Index.php - - message: "#^Cannot access offset string on mixed\\.$#" + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: src/Setup/Index.php - - message: "#^Access to an undefined property PhpMyAdmin\\\\SqlParser\\\\Statement\\:\\:\\$where\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 1 + path: src/Setup/Index.php + + - + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 1 + path: src/Setup/Index.php + + - + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean + count: 1 + path: src/Setup/Index.php + + - + message: '#^PHPDoc tag @var with type PhpMyAdmin\\Config\\Forms\\BaseForm is not subtype of native type string\|null\.$#' + identifier: varTag.nativeType + count: 1 + path: src/Setup/SetupHelper.php + + - + message: '#^Access to an undefined property PhpMyAdmin\\SqlParser\\Statement\:\:\$where\.$#' + identifier: property.notFound count: 1 path: src/Sql.php - - message: "#^Binary operation \"\\+\" between int\\\\|int\\<1, max\\> and int\\|string results in an error\\.$#" + message: '#^Binary operation "\*" between int and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Sql.php - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" + message: '#^Binary operation "\+" between int\\|int\<1, max\> and int\|string results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Sql.php - - message: "#^Cannot access offset 'max_rows' on mixed\\.$#" + message: '#^Binary operation "\+" between mixed and int\|numeric\-string results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Sql.php + + - + message: '#^Binary operation "\-" between mixed and 1 results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Sql.php + + - + message: '#^Binary operation "\." between ''LIMIT '' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Sql.php + + - + message: '#^Binary operation "\." between ''ORDER BY '' and \(list\\|string\) results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Sql.php + + - + message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Sql.php + + - + message: '#^Binary operation "/" between int and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Sql.php + + - + message: '#^Call to function in_array\(\) requires parameter \#3 to be set\.$#' + identifier: function.strict + count: 1 + path: src/Sql.php + + - + message: '#^Cannot access offset ''max_rows'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: src/Sql.php - - message: "#^Cannot access offset 'pos' on mixed\\.$#" + message: '#^Cannot access offset ''pos'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Sql.php - - message: "#^Cannot access offset 'possible_as_geometry' on mixed\\.$#" + message: '#^Cannot access offset ''possible_as_geometry'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Sql.php - - message: "#^Cannot access offset 0 on mixed\\.$#" + message: '#^Cannot access offset 0 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Sql.php - - message: "#^Cannot access property \\$expr on mixed\\.$#" + message: '#^Cannot access property \$expr on mixed\.$#' + identifier: property.nonObject count: 1 path: src/Sql.php - - message: "#^Cannot access property \\$name on mixed\\.$#" + message: '#^Cannot access property \$name on mixed\.$#' + identifier: property.nonObject count: 1 path: src/Sql.php - - message: "#^Cannot access property \\$table on mixed\\.$#" + message: '#^Cannot access property \$table on mixed\.$#' + identifier: property.nonObject count: 4 path: src/Sql.php - - message: "#^Cannot call method has\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" + message: '#^Cannot call method has\(\) on PhpMyAdmin\\SqlParser\\Components\\OptionsArray\|null\.$#' + identifier: method.nonObject count: 1 path: src/Sql.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 12 path: src/Sql.php - - message: "#^Method PhpMyAdmin\\\\Sql\\:\\:calculatePosForLastPage\\(\\) should return int but returns mixed\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 7 + path: src/Sql.php + + - + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 6 + path: src/Sql.php + + - + message: '#^Method PhpMyAdmin\\Sql\:\:calculatePosForLastPage\(\) should return int but returns mixed\.$#' + identifier: return.type count: 1 path: src/Sql.php - - message: "#^Method PhpMyAdmin\\\\Sql\\:\\:countQueryResults\\(\\) should return int\\|numeric\\-string but returns float\\|int\\|numeric\\-string\\.$#" + message: '#^Method PhpMyAdmin\\Sql\:\:countQueryResults\(\) should return int\|numeric\-string but returns float\|int\|numeric\-string\.$#' + identifier: return.type count: 1 path: src/Sql.php - - message: "#^Method PhpMyAdmin\\\\Sql\\:\\:getFullValuesForSetColumn\\(\\) should return string but returns string\\|null\\.$#" + message: '#^Method PhpMyAdmin\\Sql\:\:getFullValuesForSetColumn\(\) should return string but returns string\|null\.$#' + identifier: return.type count: 1 path: src/Sql.php - - message: "#^Method PhpMyAdmin\\\\Sql\\:\\:getStartPosToDisplayRow\\(\\) should return int but returns \\(float\\|int\\)\\.$#" + message: '#^Method PhpMyAdmin\\Sql\:\:getStartPosToDisplayRow\(\) should return int but returns \(float\|int\)\.$#' + identifier: return.type count: 1 path: src/Sql.php - - message: "#^Only booleans are allowed in &&, array\\ given on the left side\\.$#" + message: '#^Only booleans are allowed in &&, array\ given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 1 path: src/Sql.php - - message: "#^Only booleans are allowed in &&, string given on the left side\\.$#" + message: '#^Only booleans are allowed in &&, string given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 1 path: src/Sql.php - - message: "#^Only booleans are allowed in &&, string given on the right side\\.$#" + message: '#^Only booleans are allowed in &&, string given on the right side\.$#' + identifier: booleanAnd.rightNotBoolean count: 2 path: src/Sql.php - - message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#" + message: '#^Only booleans are allowed in &&, string\|null given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 1 path: src/Sql.php - - message: "#^Only booleans are allowed in &&, string\\|null given on the right side\\.$#" + message: '#^Only booleans are allowed in &&, string\|null given on the right side\.$#' + identifier: booleanAnd.rightNotBoolean count: 2 path: src/Sql.php - - message: "#^Only booleans are allowed in a negated boolean, bool\\|string given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, bool\|string given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Sql.php - - message: "#^Only booleans are allowed in an if condition, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Only booleans are allowed in an if condition, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Sql.php - - message: "#^Parameter \\#1 \\$rows of static method PhpMyAdmin\\\\Message\\:\\:getMessageForAffectedRows\\(\\) expects int, int\\|string given\\.$#" + message: '#^Parameter \#1 \$rows of static method PhpMyAdmin\\Message\:\:getMessageForAffectedRows\(\) expects int, int\|string given\.$#' + identifier: argument.type count: 2 path: src/Sql.php - - message: "#^Parameter \\#1 \\$rows of static method PhpMyAdmin\\\\Message\\:\\:getMessageForDeletedRows\\(\\) expects int, int\\|string given\\.$#" + message: '#^Parameter \#1 \$rows of static method PhpMyAdmin\\Message\:\:getMessageForDeletedRows\(\) expects int, int\|string given\.$#' + identifier: argument.type count: 1 path: src/Sql.php - - message: "#^Parameter \\#1 \\$rows of static method PhpMyAdmin\\\\Message\\:\\:getMessageForInsertedRows\\(\\) expects int, int\\|string given\\.$#" + message: '#^Parameter \#1 \$rows of static method PhpMyAdmin\\Message\:\:getMessageForInsertedRows\(\) expects int, int\|string given\.$#' + identifier: argument.type count: 1 path: src/Sql.php - - message: "#^Parameter \\#1 \\$string of function bin2hex expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$string of function bin2hex expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Sql.php - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#' + identifier: argument.type count: 1 path: src/Sql.php - - message: "#^Parameter \\#10 \\$sqlQuery of method PhpMyAdmin\\\\Sql\\:\\:getQueryResponseForNoResultsReturned\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$foreignField of method PhpMyAdmin\\ConfigStorage\\Relation\:\:foreignDropdown\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Sql.php - - message: "#^Parameter \\#12 \\$sqlQuery of method PhpMyAdmin\\\\Sql\\:\\:getQueryResponseForResultsReturned\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$list of static method PhpMyAdmin\\SqlParser\\Utils\\Query\:\:getClause\(\) expects PhpMyAdmin\\SqlParser\\TokensList, PhpMyAdmin\\SqlParser\\TokensList\|null given\.$#' + identifier: argument.type count: 1 path: src/Sql.php - - message: "#^Parameter \\#2 \\$foreignField of method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:foreignDropdown\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Sql.php - - - - message: "#^Parameter \\#2 \\$fullSqlQuery of method PhpMyAdmin\\\\Sql\\:\\:executeTheQuery\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Sql.php - - - - message: "#^Parameter \\#2 \\$list of static method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Query\\:\\:getClause\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\TokensList, PhpMyAdmin\\\\SqlParser\\\\TokensList\\|null given\\.$#" - count: 1 - path: src/Sql.php - - - - message: "#^Parameter \\#2 \\$list of static method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\Query\\:\\:replaceClause\\(\\) expects PhpMyAdmin\\\\SqlParser\\\\TokensList, PhpMyAdmin\\\\SqlParser\\\\TokensList\\|null given\\.$#" + message: '#^Parameter \#2 \$list of static method PhpMyAdmin\\SqlParser\\Utils\\Query\:\:replaceClause\(\) expects PhpMyAdmin\\SqlParser\\TokensList, PhpMyAdmin\\SqlParser\\TokensList\|null given\.$#' + identifier: argument.type count: 2 path: src/Sql.php - - message: "#^Parameter \\#2 \\$sqlQuery of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getMessage\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \$sqlQuery of static method PhpMyAdmin\\Html\\Generator\:\:getMessage\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 2 path: src/Sql.php - - message: "#^Parameter \\#2 \\$table of method PhpMyAdmin\\\\Sql\\:\\:handleSortOrder\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#2 \$table of method PhpMyAdmin\\Sql\:\:handleSortOrder\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Sql.php - - message: "#^Parameter \\#3 \\$column of method PhpMyAdmin\\\\Sql\\:\\:cleanupRelations\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#3 \$column of method PhpMyAdmin\\Sql\:\:cleanupRelations\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Sql.php - - message: "#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, mixed given\\.$#" + message: '#^Parameter \#3 \$subject of function str_replace expects array\\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Sql.php - - message: "#^Parameter \\#5 \\$bookmarkLabel of method PhpMyAdmin\\\\Sql\\:\\:storeTheQueryAsBookmark\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#5 \$bookmarkLabel of method PhpMyAdmin\\Sql\:\:storeTheQueryAsBookmark\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Sql.php - - message: "#^Parameter \\#7 \\$sqlQuery of class PhpMyAdmin\\\\Display\\\\Results constructor expects string, mixed given\\.$#" - count: 1 - path: src/Sql.php - - - - message: "#^Parameter \\#9 \\$queryTime of method PhpMyAdmin\\\\Display\\\\Results\\:\\:setProperties\\(\\) expects float, mixed given\\.$#" + message: '#^Parameter \#9 \$queryTime of method PhpMyAdmin\\Display\\Results\:\:setProperties\(\) expects float, mixed given\.$#' + identifier: argument.type count: 2 path: src/Sql.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/SqlQueryForm.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 2 path: src/SqlQueryForm.php - - message: "#^Parameter \\#1 \\$query of method PhpMyAdmin\\\\SqlQueryForm\\:\\:init\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$query of method PhpMyAdmin\\SqlQueryForm\:\:init\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/SqlQueryForm.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\+\=" between \(float\|int\) and mixed results in an error\.$#' + identifier: assignOp.invalid + count: 2 + path: src/StorageEngine.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 5 path: src/StorageEngine.php - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" + message: '#^Call to function in_array\(\) requires parameter \#3 to be set\.$#' + identifier: function.strict count: 1 path: src/StorageEngine.php - - message: "#^Cannot access offset 'desc' on mixed\\.$#" + message: '#^Cannot access offset ''desc'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/StorageEngine.php - - message: "#^Cannot access offset 'disk_usage' on mixed\\.$#" + message: '#^Cannot access offset ''disk_usage'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/StorageEngine.php - - message: "#^Cannot access offset 'id' on mixed\\.$#" + message: '#^Cannot access offset ''id'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/StorageEngine.php - - message: "#^Cannot access offset 'title' on mixed\\.$#" + message: '#^Cannot access offset ''title'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/StorageEngine.php - - message: "#^Cannot access offset 'type' on mixed\\.$#" + message: '#^Cannot access offset ''type'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: src/StorageEngine.php - - message: "#^Cannot access offset 'value' on mixed\\.$#" + message: '#^Cannot access offset ''value'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: src/StorageEngine.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 1 path: src/StorageEngine.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 2 path: src/StorageEngine.php - - message: "#^Method PhpMyAdmin\\\\StorageEngine\\:\\:getMroongaLengths\\(\\) should return array\\ but returns array\\\\.$#" + message: '#^Method PhpMyAdmin\\StorageEngine\:\:getMroongaLengths\(\) should return array\ but returns array\\.$#' + identifier: return.type count: 1 path: src/StorageEngine.php - - message: "#^Method PhpMyAdmin\\\\StorageEngine\\:\\:getPage\\(\\) should return string but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\StorageEngine\:\:getPage\(\) should return string but returns mixed\.$#' + identifier: return.type count: 1 path: src/StorageEngine.php - - message: "#^Parameter \\#1 \\$haystack of function mb_stripos expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$haystack of function mb_stripos expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/StorageEngine.php - - message: "#^Parameter \\#1 \\$message of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:showHint\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$message of static method PhpMyAdmin\\Html\\Generator\:\:showHint\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/StorageEngine.php - - message: "#^Parameter \\#1 \\$string of function htmlspecialchars expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function htmlspecialchars expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/StorageEngine.php - - message: "#^Parameter \\#1 \\$value of method PhpMyAdmin\\\\StorageEngine\\:\\:resolveTypeSize\\(\\) expects int\\|string, mixed given\\.$#" + message: '#^Parameter \#1 \$value of method PhpMyAdmin\\StorageEngine\:\:resolveTypeSize\(\) expects int\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/StorageEngine.php - - message: "#^Parameter \\#1 \\$value of static method PhpMyAdmin\\\\Util\\:\\:formatNumber\\(\\) expects float\\|int\\|string, mixed given\\.$#" + message: '#^Parameter \#1 \$value of static method PhpMyAdmin\\Util\:\:formatNumber\(\) expects float\|int\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/StorageEngine.php - - message: "#^Variable method call on \\$this\\(PhpMyAdmin\\\\StorageEngine\\)\\.$#" + message: '#^Variable method call on \$this\(PhpMyAdmin\\StorageEngine\)\.$#' + identifier: method.dynamicName count: 1 path: src/StorageEngine.php - - message: "#^Parameter \\#1 \\$str of method PhpMyAdmin\\\\DatabaseInterface\\:\\:quoteString\\(\\) expects string, string\\|null given\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 2 + path: src/SystemDatabase.php + + - + message: '#^Parameter \#1 \$str of method PhpMyAdmin\\DatabaseInterface\:\:quoteString\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 4 path: src/SystemDatabase.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Table/ColumnsDefinition.php - - message: "#^Cannot access offset 'isEditable' on mixed\\.$#" + message: '#^Cannot access offset ''isEditable'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Table/ColumnsDefinition.php - - message: "#^Cannot access offset mixed on mixed\\.$#" + message: '#^Cannot access offset mixed on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Table/ColumnsDefinition.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 2 path: src/Table/ColumnsDefinition.php - - message: "#^Casting to int something that's already int\\<1, max\\>\\.$#" + message: '#^Casting to int something that''s already int\<1, max\>\.$#' + identifier: cast.useless count: 1 path: src/Table/ColumnsDefinition.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Table/ColumnsDefinition.php - - message: "#^Parameter \\#1 \\$bitDefaultValue of static method PhpMyAdmin\\\\Util\\:\\:convertBitDefaultValue\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 2 path: src/Table/ColumnsDefinition.php - - message: "#^Parameter \\#1 \\$columnSpecification of static method PhpMyAdmin\\\\Util\\:\\:extractColumnSpec\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$bitDefaultValue of static method PhpMyAdmin\\Util\:\:convertBitDefaultValue\(\) expects string\|null, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Table/ColumnsDefinition.php + + - + message: '#^Parameter \#1 \$columnSpecification of static method PhpMyAdmin\\Util\:\:extractColumnSpec\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Table/ColumnsDefinition.php - - message: "#^Parameter \\#1 \\$db of method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:checkChildForeignReferences\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$db of method PhpMyAdmin\\ConfigStorage\\Relation\:\:checkChildForeignReferences\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Table/ColumnsDefinition.php - - message: "#^Parameter \\#1 \\$string of function rtrim expects string, \\(array\\\\|string\\|null\\) given\\.$#" + message: '#^Parameter \#1 \$string of function rtrim expects string, \(list\\|string\|null\) given\.$#' + identifier: argument.type count: 1 path: src/Table/ColumnsDefinition.php - - message: "#^Parameter \\#1 \\$string of function trim expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function trim expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Table/ColumnsDefinition.php - - message: "#^Parameter \\#1 \\.\\.\\.\\$arrays of function array_merge expects array, mixed given\\.$#" + message: '#^Parameter \#1 \.\.\.\$arrays of function array_merge expects array, mixed given\.$#' + identifier: argument.type count: 1 path: src/Table/ColumnsDefinition.php - - message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$string of function explode expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Table/ColumnsDefinition.php - - message: "#^Parameter \\#2 \\$table of method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:checkChildForeignReferences\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$table of method PhpMyAdmin\\ConfigStorage\\Relation\:\:checkChildForeignReferences\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Table/ColumnsDefinition.php - - message: "#^Parameter \\#3 \\$column of method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:checkChildForeignReferences\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$column of method PhpMyAdmin\\ConfigStorage\\Relation\:\:checkChildForeignReferences\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Table/ColumnsDefinition.php - - message: "#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, mixed given\\.$#" + message: '#^Parameter \#3 \$subject of function preg_replace expects array\\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Table/ColumnsDefinition.php - - message: "#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 1 path: src/Table/Indexes.php - - message: "#^Only booleans are allowed in a negated boolean, int\\|null given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Table/Indexes.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Only booleans are allowed in a negated boolean, int\|null given\.$#' + identifier: booleanNot.exprNotBoolean + count: 1 + path: src/Table/Indexes.php + + - + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 2 path: src/Table/Search.php - - message: "#^Cannot access offset mixed on mixed\\.$#" + message: '#^Binary operation "\." between '' WHERE '' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Table/Search.php + + - + message: '#^Binary operation "\." between ''%%'' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 2 + path: src/Table/Search.php + + - + message: '#^Binary operation "\." between ''\^'' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Table/Search.php + + - + message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 5 + path: src/Table/Search.php + + - + message: '#^Cannot access offset mixed on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: src/Table/Search.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 3 path: src/Table/Search.php - - message: "#^Parameter \\#1 \\$gisString of static method PhpMyAdmin\\\\Utils\\\\Gis\\:\\:createData\\(\\) expects string, mixed given\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 3 + path: src/Table/Search.php + + - + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 2 path: src/Table/Search.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, mixed given\\.$#" - count: 3 - path: src/Table/Search.php - - - - message: "#^Parameter \\#1 \\$op of method PhpMyAdmin\\\\Types\\:\\:isUnaryOperator\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Table/Search.php - - - - message: "#^Parameter \\#1 \\$str of method PhpMyAdmin\\\\DatabaseInterface\\:\\:quoteString\\(\\) expects string, mixed given\\.$#" - count: 3 - path: src/Table/Search.php - - - - message: "#^Parameter \\#1 \\$string of function trim expects string, mixed given\\.$#" - count: 3 - path: src/Table/Search.php - - - - message: "#^Parameter \\#2 \\$names of method PhpMyAdmin\\\\Table\\\\Search\\:\\:getWhereClause\\(\\) expects string, mixed given\\.$#" - count: 1 - path: src/Table/Search.php - - - - message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$gisString of static method PhpMyAdmin\\Utils\\Gis\:\:createData\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Table/Search.php - - message: "#^Parameter \\#3 \\$types of method PhpMyAdmin\\\\Table\\\\Search\\:\\:getWhereClause\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#' + identifier: argument.type + count: 3 + path: src/Table/Search.php + + - + message: '#^Parameter \#1 \$op of method PhpMyAdmin\\Types\:\:isUnaryOperator\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Table/Search.php - - message: "#^Parameter \\#4 \\$funcType of method PhpMyAdmin\\\\Table\\\\Search\\:\\:getWhereClause\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$str of method PhpMyAdmin\\DatabaseInterface\:\:quoteString\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 3 + path: src/Table/Search.php + + - + message: '#^Parameter \#1 \$string of function trim expects string, mixed given\.$#' + identifier: argument.type + count: 3 + path: src/Table/Search.php + + - + message: '#^Parameter \#2 \$names of method PhpMyAdmin\\Table\\Search\:\:getWhereClause\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Table/Search.php - - message: "#^Parameter \\#6 \\$geomFunc of method PhpMyAdmin\\\\Table\\\\Search\\:\\:getWhereClause\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \$string of function explode expects string, mixed given\.$#' + identifier: argument.type + count: 2 + path: src/Table/Search.php + + - + message: '#^Parameter \#3 \$types of method PhpMyAdmin\\Table\\Search\:\:getWhereClause\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Table/Search.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Parameter \#4 \$funcType of method PhpMyAdmin\\Table\\Search\:\:getWhereClause\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Table/Search.php + + - + message: '#^Parameter \#6 \$geomFunc of method PhpMyAdmin\\Table\\Search\:\:getWhereClause\(\) expects string\|null, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/Table/Search.php + + - + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Table/Table.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between string and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Table/Table.php + + - + message: '#^Binary operation "\.\=" between string and mixed results in an error\.$#' + identifier: assignOp.invalid + count: 1 + path: src/Table/Table.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 5 path: src/Table/Table.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Table/Table.php - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" + message: '#^Call to function in_array\(\) requires parameter \#3 to be set\.$#' + identifier: function.strict count: 2 path: src/Table/Table.php - - message: "#^Cannot access offset 'Extra' on mixed\\.$#" + message: '#^Cannot access offset ''Extra'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Table/Table.php - - message: "#^Cannot access offset 'Field' on mixed\\.$#" + message: '#^Cannot access offset ''Field'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Table/Table.php - - message: "#^Cannot access offset 'Type' on mixed\\.$#" + message: '#^Cannot access offset ''Type'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Table/Table.php - - message: "#^Cannot access offset 'foreign_db' on mixed\\.$#" + message: '#^Cannot access offset ''foreign_db'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Table/Table.php - - message: "#^Cannot access offset 'foreign_field' on mixed\\.$#" + message: '#^Cannot access offset ''foreign_field'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Table/Table.php - - message: "#^Cannot access offset 'foreign_table' on mixed\\.$#" + message: '#^Cannot access offset ''foreign_table'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Table/Table.php - - message: "#^Cannot access offset 'table_uiprefs' on mixed\\.$#" + message: '#^Cannot access offset ''table_uiprefs'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Table/Table.php - - message: "#^Cannot access offset \\(int\\|string\\) on mixed\\.$#" + message: '#^Cannot access offset \(int\|string\) on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 6 path: src/Table/Table.php - - message: "#^Cannot access offset 0 on mixed\\.$#" + message: '#^Cannot access offset 0 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Table/Table.php - - message: "#^Cannot access offset int\\<0, max\\> on mixed\\.$#" + message: '#^Cannot access offset int\<0, max\> on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Table/Table.php - - message: "#^Cannot access offset mixed on mixed\\.$#" + message: '#^Cannot access offset mixed on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 5 path: src/Table/Table.php - - message: "#^Cannot access offset string on mixed\\.$#" + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 6 path: src/Table/Table.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 13 path: src/Table/Table.php - - message: "#^Method PhpMyAdmin\\\\Table\\\\Table\\:\\:getAutoIncrement\\(\\) should return string but returns int\\|string\\.$#" - count: 1 + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 12 path: src/Table/Table.php - - message: "#^Method PhpMyAdmin\\\\Table\\\\Table\\:\\:getCollation\\(\\) should return string but returns int\\|string\\.$#" - count: 1 - path: src/Table/Table.php - - - - message: "#^Method PhpMyAdmin\\\\Table\\\\Table\\:\\:getComment\\(\\) should return string but returns int\\|string\\.$#" - count: 1 - path: src/Table/Table.php - - - - message: "#^Method PhpMyAdmin\\\\Table\\\\Table\\:\\:getLastError\\(\\) should return string but returns mixed\\.$#" - count: 1 - path: src/Table/Table.php - - - - message: "#^Method PhpMyAdmin\\\\Table\\\\Table\\:\\:getLastMessage\\(\\) should return string but returns mixed\\.$#" - count: 1 - path: src/Table/Table.php - - - - message: "#^Method PhpMyAdmin\\\\Table\\\\Table\\:\\:getNameAndTypeOfTheColumns\\(\\) should return array\\ but returns array\\.$#" - count: 1 - path: src/Table/Table.php - - - - message: "#^Method PhpMyAdmin\\\\Table\\\\Table\\:\\:getNonGeneratedColumns\\(\\) should return array\\ but returns array\\, mixed\\>\\.$#" - count: 1 - path: src/Table/Table.php - - - - message: "#^Method PhpMyAdmin\\\\Table\\\\Table\\:\\:getUiPrefsFromDb\\(\\) should return array but returns mixed\\.$#" - count: 1 - path: src/Table/Table.php - - - - message: "#^Only booleans are allowed in &&, string given on the left side\\.$#" - count: 2 - path: src/Table/Table.php - - - - message: "#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" - count: 2 - path: src/Table/Table.php - - - - message: "#^Only booleans are allowed in an if condition, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" - count: 1 - path: src/Table/Table.php - - - - message: "#^Parameter \\#1 \\$callback of function array_map expects \\(callable\\(mixed\\)\\: mixed\\)\\|null, Closure\\(array\\|bool\\|float\\|int\\|resource\\|string\\|null, int\\=\\)\\: int given\\.$#" - count: 1 - path: src/Table/Table.php - - - - message: "#^Parameter \\#1 \\$haystack of function str_contains expects string, mixed given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 3 path: src/Table/Table.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, mixed given\\.$#" + message: '#^Method PhpMyAdmin\\Table\\Table\:\:getAutoIncrement\(\) should return string but returns int\|string\.$#' + identifier: return.type + count: 1 + path: src/Table/Table.php + + - + message: '#^Method PhpMyAdmin\\Table\\Table\:\:getCollation\(\) should return string but returns int\|string\.$#' + identifier: return.type + count: 1 + path: src/Table/Table.php + + - + message: '#^Method PhpMyAdmin\\Table\\Table\:\:getComment\(\) should return string but returns int\|string\.$#' + identifier: return.type + count: 1 + path: src/Table/Table.php + + - + message: '#^Method PhpMyAdmin\\Table\\Table\:\:getLastError\(\) should return string but returns mixed\.$#' + identifier: return.type + count: 1 + path: src/Table/Table.php + + - + message: '#^Method PhpMyAdmin\\Table\\Table\:\:getLastMessage\(\) should return string but returns mixed\.$#' + identifier: return.type + count: 1 + path: src/Table/Table.php + + - + message: '#^Method PhpMyAdmin\\Table\\Table\:\:getNameAndTypeOfTheColumns\(\) should return array\ but returns array\.$#' + identifier: return.type + count: 1 + path: src/Table/Table.php + + - + message: '#^Method PhpMyAdmin\\Table\\Table\:\:getNonGeneratedColumns\(\) should return array\ but returns list\\.$#' + identifier: return.type + count: 1 + path: src/Table/Table.php + + - + message: '#^Method PhpMyAdmin\\Table\\Table\:\:getUiPrefsFromDb\(\) should return array\ but returns mixed\.$#' + identifier: return.type + count: 1 + path: src/Table/Table.php + + - + message: '#^Only booleans are allowed in &&, string given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean + count: 2 + path: src/Table/Table.php + + - + message: '#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: booleanNot.exprNotBoolean + count: 2 + path: src/Table/Table.php + + - + message: '#^Only booleans are allowed in an if condition, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: if.condNotBoolean + count: 1 + path: src/Table/Table.php + + - + message: '#^Parameter \#1 \$callback of function array_map expects \(callable\(mixed\)\: mixed\)\|null, Closure\(array\|bool\|float\|int\|resource\|string\|null, int\=\)\: int given\.$#' + identifier: argument.type + count: 1 + path: src/Table/Table.php + + - + message: '#^Parameter \#1 \$haystack of function str_contains expects string, mixed given\.$#' + identifier: argument.type + count: 3 + path: src/Table/Table.php + + - + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#' + identifier: argument.type count: 5 path: src/Table/Table.php - - message: "#^Parameter \\#1 \\$str of method PhpMyAdmin\\\\DatabaseInterface\\:\\:quoteString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$str of method PhpMyAdmin\\DatabaseInterface\:\:quoteString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 9 path: src/Table/Table.php - - message: "#^Parameter \\#1 \\$string of function substr expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function substr expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Table/Table.php - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" + message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#' + identifier: argument.type count: 1 path: src/Table/Table.php - - message: "#^Parameter \\#2 \\$array of function array_map expects array, mixed given\\.$#" + message: '#^Parameter \#2 \$array of function array_map expects array, mixed given\.$#' + identifier: argument.type count: 1 path: src/Table/Table.php - - message: "#^Parameter \\#2 \\$array of function implode expects array\\, mixed given\\.$#" + message: '#^Parameter \#2 \$array of function implode expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Table/Table.php - - message: "#^Parameter \\#2 \\$array of function implode expects array\\|null, mixed given\\.$#" + message: '#^Parameter \#2 \$array of function implode expects array\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Table/Table.php - - message: "#^Parameter \\#2 \\$field of method PhpMyAdmin\\\\Table\\\\Table\\:\\:getSQLToCreateForeignKey\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#2 \$field of method PhpMyAdmin\\Table\\Table\:\:getSQLToCreateForeignKey\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 2 path: src/Table/Table.php - - message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$string of function explode expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Table/Table.php - - message: "#^Parameter \\#2 \\$subject of function preg_match expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$subject of function preg_match expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Table/Table.php - - message: "#^Parameter \\#3 \\$foreignDb of method PhpMyAdmin\\\\Table\\\\Table\\:\\:getSQLToCreateForeignKey\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$foreignDb of method PhpMyAdmin\\Table\\Table\:\:getSQLToCreateForeignKey\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Table/Table.php - - message: "#^Parameter \\#3 \\$foreignDb of method PhpMyAdmin\\\\Table\\\\Table\\:\\:getSQLToCreateForeignKey\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#3 \$foreignDb of method PhpMyAdmin\\Table\\Table\:\:getSQLToCreateForeignKey\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Table/Table.php - - message: "#^Parameter \\#4 \\$foreignTable of method PhpMyAdmin\\\\Table\\\\Table\\:\\:getSQLToCreateForeignKey\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#4 \$foreignTable of method PhpMyAdmin\\Table\\Table\:\:getSQLToCreateForeignKey\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Table/Table.php - - message: "#^Parameter \\#4 \\$foreignTable of method PhpMyAdmin\\\\Table\\\\Table\\:\\:getSQLToCreateForeignKey\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#4 \$foreignTable of method PhpMyAdmin\\Table\\Table\:\:getSQLToCreateForeignKey\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Table/Table.php - - message: "#^Parameter \\#5 \\$foreignField of method PhpMyAdmin\\\\Table\\\\Table\\:\\:getSQLToCreateForeignKey\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#5 \$foreignField of method PhpMyAdmin\\Table\\Table\:\:getSQLToCreateForeignKey\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Table/Table.php - - message: "#^Parameter \\#6 \\$name of method PhpMyAdmin\\\\Table\\\\Table\\:\\:getSQLToCreateForeignKey\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#6 \$name of method PhpMyAdmin\\Table\\Table\:\:getSQLToCreateForeignKey\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Table/Table.php - - message: "#^Property PhpMyAdmin\\\\Table\\\\Table\\:\\:\\$uiprefs \\(array\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Table\\Table\:\:\$uiprefs \(array\\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/Table/Table.php - - message: "#^Argument of an invalid type array\\\\|null supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type array\\|null supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 2 path: src/Table/TableMover.php - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" + message: '#^Binary operation "\.\=" between mixed and "\\n\\nSET SQL_MODE\=''NO…" results in an error\.$#' + identifier: assignOp.invalid count: 1 path: src/Table/TableMover.php - - message: "#^Cannot call method has\\(\\) on PhpMyAdmin\\\\SqlParser\\\\Components\\\\OptionsArray\\|null\\.$#" - count: 2 - path: src/Table/TableMover.php - - - - message: "#^Cannot cast mixed to string\\.$#" - count: 2 - path: src/Table/TableMover.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: src/Table/TableMover.php - - - - message: "#^Only booleans are allowed in a negated boolean, bool\\|string given\\.$#" - count: 1 - path: src/Table/TableMover.php - - - - message: "#^Parameter \\#1 \\$str of method PhpMyAdmin\\\\DatabaseInterface\\:\\:quoteString\\(\\) expects string, string\\|null given\\.$#" + message: '#^Binary operation "\.\=" between mixed and non\-falsy\-string results in an error\.$#' + identifier: assignOp.invalid count: 6 path: src/Table/TableMover.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Call to function in_array\(\) requires parameter \#3 to be set\.$#' + identifier: function.strict + count: 1 + path: src/Table/TableMover.php + + - + message: '#^Cannot call method has\(\) on PhpMyAdmin\\SqlParser\\Components\\OptionsArray\|null\.$#' + identifier: method.nonObject + count: 2 + path: src/Table/TableMover.php + + - + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string + count: 2 + path: src/Table/TableMover.php + + - + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed + count: 1 + path: src/Table/TableMover.php + + - + message: '#^Only booleans are allowed in a negated boolean, bool\|string given\.$#' + identifier: booleanNot.exprNotBoolean + count: 1 + path: src/Table/TableMover.php + + - + message: '#^Parameter \#1 \$str of method PhpMyAdmin\\DatabaseInterface\:\:quoteString\(\) expects string, string\|null given\.$#' + identifier: argument.type + count: 6 + path: src/Table/TableMover.php + + - + message: '#^Binary operation "\." between mixed and ''twig'' results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Template.php - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 1 + path: src/Template.php + + - + message: '#^Call to function in_array\(\) requires parameter \#3 to be set\.$#' + identifier: function.strict count: 1 path: src/Theme/Theme.php - - message: "#^Parameter \\#1 \\$name of method PhpMyAdmin\\\\Theme\\\\Theme\\:\\:setName\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$name of method PhpMyAdmin\\Theme\\Theme\:\:setName\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Theme/Theme.php - - message: "#^Parameter \\#1 \\$version of method PhpMyAdmin\\\\Theme\\\\Theme\\:\\:setVersion\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$version of method PhpMyAdmin\\Theme\\Theme\:\:setVersion\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Theme/Theme.php - - message: "#^Property PhpMyAdmin\\\\Theme\\\\Theme\\:\\:\\$filesizeInfo \\(int\\) does not accept int\\<0, max\\>\\|false\\.$#" + message: '#^Property PhpMyAdmin\\Theme\\Theme\:\:\$filesizeInfo \(int\) does not accept int\<0, max\>\|false\.$#' + identifier: assign.propertyType count: 1 path: src/Theme/Theme.php - - message: "#^Property PhpMyAdmin\\\\Theme\\\\Theme\\:\\:\\$mtimeInfo \\(int\\) does not accept int\\|false\\.$#" + message: '#^Property PhpMyAdmin\\Theme\\Theme\:\:\$mtimeInfo \(int\) does not accept int\|false\.$#' + identifier: assign.propertyType count: 1 path: src/Theme/Theme.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 4 path: src/Theme/ThemeManager.php - - message: "#^Left side of && is always true\\.$#" + message: '#^Left side of && is always true\.$#' + identifier: booleanAnd.leftAlwaysTrue count: 1 path: src/Theme/ThemeManager.php - - message: "#^Method PhpMyAdmin\\\\Theme\\\\ThemeManager\\:\\:getColorModeCookie\\(\\) should return string\\|false but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\Theme\\ThemeManager\:\:getColorModeCookie\(\) should return string\|false but returns mixed\.$#' + identifier: return.type count: 1 path: src/Theme/ThemeManager.php - - message: "#^Method PhpMyAdmin\\\\Theme\\\\ThemeManager\\:\\:getThemeCookie\\(\\) should return string\\|false but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\Theme\\ThemeManager\:\:getThemeCookie\(\) should return string\|false but returns mixed\.$#' + identifier: return.type count: 1 path: src/Theme/ThemeManager.php - - message: "#^Only booleans are allowed in &&, string\\|false given on the left side\\.$#" + message: '#^Only booleans are allowed in &&, string\|false given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 1 path: src/Theme/ThemeManager.php - - message: "#^Property PhpMyAdmin\\\\Theme\\\\ThemeManager\\:\\:\\$activeTheme \\(string\\) does not accept string\\|null\\.$#" + message: '#^Property PhpMyAdmin\\Theme\\ThemeManager\:\:\$activeTheme \(string\) does not accept string\|null\.$#' + identifier: assign.propertyType count: 1 path: src/Theme/ThemeManager.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between '' WHERE FIND_IN_SET\(\\'''' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Tracking/Tracker.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 4 path: src/Tracking/Tracker.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 7 path: src/Tracking/Tracker.php - - message: "#^Cannot access offset string on mixed\\.$#" + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Tracking/Tracker.php - - message: "#^Cannot access property \\$dest on PhpMyAdmin\\\\SqlParser\\\\Components\\\\IntoKeyword\\|null\\.$#" + message: '#^Cannot access property \$dest on PhpMyAdmin\\SqlParser\\Components\\IntoKeyword\|null\.$#' + identifier: property.nonObject count: 1 path: src/Tracking/Tracker.php - - message: "#^Cannot access property \\$table on PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#" + message: '#^Cannot access property \$table on PhpMyAdmin\\SqlParser\\Components\\Expression\|null\.$#' + identifier: property.nonObject count: 6 path: src/Tracking/Tracker.php - - message: "#^Cannot access property \\$table on PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|string\\|null\\.$#" + message: '#^Cannot access property \$table on PhpMyAdmin\\SqlParser\\Components\\Expression\|string\|null\.$#' + identifier: property.nonObject count: 1 path: src/Tracking/Tracker.php - - message: "#^Cannot access property \\$tokens on PhpMyAdmin\\\\SqlParser\\\\TokensList\\|null\\.$#" + message: '#^Cannot access property \$tokens on PhpMyAdmin\\SqlParser\\TokensList\|null\.$#' + identifier: property.nonObject count: 1 path: src/Tracking/Tracker.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 1 path: src/Tracking/Tracker.php - - message: "#^Method PhpMyAdmin\\\\Tracking\\\\Tracker\\:\\:isTracked\\(\\) should return bool but returns mixed\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed count: 1 path: src/Tracking/Tracker.php - - message: "#^Offset 0 does not exist on array\\\\|null\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 7 + path: src/Tracking/Tracker.php + + - + message: '#^Method PhpMyAdmin\\Tracking\\Tracker\:\:isTracked\(\) should return bool but returns mixed\.$#' + identifier: return.type + count: 1 + path: src/Tracking/Tracker.php + + - + message: '#^Offset 0 might not exist on array\\|null\.$#' + identifier: offsetAccess.notFound count: 4 path: src/Tracking/Tracker.php - - message: "#^Offset 0 does not exist on array\\\\|null\\.$#" + message: '#^Offset 0 might not exist on array\\|null\.$#' + identifier: offsetAccess.notFound count: 2 path: src/Tracking/Tracker.php - - message: "#^Parameter \\#1 \\$str of method PhpMyAdmin\\\\DatabaseInterface\\:\\:quoteString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$str of method PhpMyAdmin\\DatabaseInterface\:\:quoteString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Tracking/Tracker.php - - message: "#^Parameter \\#2 \\$tableName of static method PhpMyAdmin\\\\Tracking\\\\Tracker\\:\\:createVersion\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$tableName of static method PhpMyAdmin\\Tracking\\Tracker\:\:createVersion\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: src/Tracking/Tracker.php - - message: "#^Parameter \\#2 \\$tableName of static method PhpMyAdmin\\\\Tracking\\\\Tracker\\:\\:isTracked\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$tableName of static method PhpMyAdmin\\Tracking\\Tracker\:\:isTracked\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Tracking/Tracker.php - - message: "#^Parameter \\#2 \\$tablename of static method PhpMyAdmin\\\\Tracking\\\\Tracker\\:\\:getVersion\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$tablename of static method PhpMyAdmin\\Tracking\\Tracker\:\:getVersion\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Tracking/Tracker.php - - message: "#^Parameter \\#3 \\$statement of static method PhpMyAdmin\\\\Tracking\\\\Tracker\\:\\:getVersion\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#3 \$statement of static method PhpMyAdmin\\Tracking\\Tracker\:\:getVersion\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: src/Tracking/Tracker.php - - message: "#^Static property PhpMyAdmin\\\\Current\\:\\:\\$database \\(string\\) does not accept bool\\|float\\|int\\|string\\.$#" + message: '#^Static property PhpMyAdmin\\Current\:\:\$database \(string\) does not accept bool\|float\|int\|string\.$#' + identifier: assign.propertyType count: 1 path: src/Tracking/Tracker.php - - message: "#^Static property PhpMyAdmin\\\\Current\\:\\:\\$database \\(string\\) does not accept string\\|null\\.$#" + message: '#^Static property PhpMyAdmin\\Current\:\:\$database \(string\) does not accept string\|null\.$#' + identifier: assign.propertyType count: 3 path: src/Tracking/Tracker.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between "/\*NOTRACK\*/\\n" and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Tracking/Tracking.php - - message: "#^Cannot access offset 'COLUMNS' on mixed\\.$#" + message: '#^Binary operation "\.\=" between non\-falsy\-string and mixed results in an error\.$#' + identifier: assignOp.invalid count: 1 path: src/Tracking/Tracking.php - - message: "#^Cannot access offset 'INDEXES' on mixed\\.$#" + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Tracking/Tracking.php - - message: "#^Cannot access offset 'id' on mixed\\.$#" + message: '#^Cannot access offset ''COLUMNS'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Tracking/Tracking.php - - message: "#^Cannot access offset 'statement' on mixed\\.$#" + message: '#^Cannot access offset ''INDEXES'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Tracking/Tracking.php + + - + message: '#^Cannot access offset ''id'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/Tracking/Tracking.php + + - + message: '#^Cannot access offset ''statement'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Tracking/Tracking.php - - message: "#^Cannot access offset 'timestamp' on mixed\\.$#" + message: '#^Cannot access offset ''timestamp'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Tracking/Tracking.php - - message: "#^Cannot access offset 'username' on mixed\\.$#" + message: '#^Cannot access offset ''username'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Tracking/Tracking.php - - message: "#^Only numeric types are allowed in \\-, int\\<0, max\\>\\|false given on the left side\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 15 + path: src/Tracking/Tracking.php + + - + message: '#^Only numeric types are allowed in \-, int\<0, max\>\|false given on the left side\.$#' + identifier: minus.leftNonNumeric count: 2 path: src/Tracking/Tracking.php - - message: "#^Parameter \\#1 \\$columns of method PhpMyAdmin\\\\Tracking\\\\Tracking\\:\\:getHtmlForColumns\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#1 \$columns of method PhpMyAdmin\\Tracking\\Tracking\:\:getHtmlForColumns\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Tracking/Tracking.php - - message: "#^Parameter \\#1 \\$indexes of method PhpMyAdmin\\\\Tracking\\\\Tracking\\:\\:getHtmlForIndexes\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#1 \$indexes of method PhpMyAdmin\\Tracking\\Tracking\:\:getHtmlForIndexes\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 1 path: src/Tracking/Tracking.php - - message: "#^Parameter \\#1 \\$params of static method PhpMyAdmin\\\\Url\\:\\:getCommon\\(\\) expects array\\, array given\\.$#" + message: '#^Parameter \#1 \$params of static method PhpMyAdmin\\Url\:\:getCommon\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: src/Tracking/Tracking.php - - message: "#^Parameter \\#1 \\$str of method PhpMyAdmin\\\\DatabaseInterface\\:\\:quoteString\\(\\) expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$str of method PhpMyAdmin\\DatabaseInterface\:\:quoteString\(\) expects string, string\|null given\.$#' + identifier: argument.type count: 2 path: src/Tracking/Tracking.php - - message: "#^Parameter \\#2 \\$tableName of method PhpMyAdmin\\\\DatabaseInterface\\:\\:getTable\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$tableName of method PhpMyAdmin\\DatabaseInterface\:\:getTable\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Tracking/Tracking.php - - message: "#^Parameter \\#2 \\$tableName of static method PhpMyAdmin\\\\Tracking\\\\Tracker\\:\\:createVersion\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$tableName of static method PhpMyAdmin\\Tracking\\Tracker\:\:createVersion\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Tracking/Tracking.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 3 path: src/Transformations.php - - message: "#^Method PhpMyAdmin\\\\Transformations\\:\\:getClassName\\(\\) should return class\\-string\\ but returns string\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 3 + path: src/Transformations.php + + - + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 4 + path: src/Transformations.php + + - + message: '#^Method PhpMyAdmin\\Transformations\:\:getClassName\(\) should return class\-string\ but returns string\.$#' + identifier: return.type count: 1 path: src/Transformations.php - - message: "#^Only booleans are allowed in a negated boolean, resource\\|false given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, resource\|false given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Transformations.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Triggers/Triggers.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between ''\'' and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Triggers/Triggers.php - - message: "#^Cannot access an offset on mixed\\.$#" + message: '#^Binary operation "\.\=" between non\-falsy\-string and mixed results in an error\.$#' + identifier: assignOp.invalid + count: 1 + path: src/Triggers/Triggers.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 1 + path: src/Triggers/Triggers.php + + - + message: '#^Cannot access an offset on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 7 path: src/Triggers/Triggers.php - - message: "#^Cannot call method getCreateSql\\(\\) on PhpMyAdmin\\\\Triggers\\\\Trigger\\|null\\.$#" + message: '#^Cannot call method getCreateSql\(\) on PhpMyAdmin\\Triggers\\Trigger\|null\.$#' + identifier: method.nonObject count: 1 path: src/Triggers/Triggers.php - - message: "#^Cannot call method getDropSql\\(\\) on PhpMyAdmin\\\\Triggers\\\\Trigger\\|null\\.$#" + message: '#^Cannot call method getDropSql\(\) on PhpMyAdmin\\Triggers\\Trigger\|null\.$#' + identifier: method.nonObject count: 1 path: src/Triggers/Triggers.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 7 path: src/Triggers/Triggers.php - - message: "#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: booleanNot.exprNotBoolean count: 4 path: src/Triggers/Triggers.php - - message: "#^Parameter \\#1 \\$haystack of function str_contains expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$haystack of function str_contains expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Triggers/Triggers.php - - message: "#^Parameter \\#1 \\$identifier of static method PhpMyAdmin\\\\Util\\:\\:backquote\\(\\) expects string\\|Stringable\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#' + identifier: argument.type count: 3 path: src/Triggers/Triggers.php - - message: "#^Parameter \\#1 \\$message of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:getMessage\\(\\) expects PhpMyAdmin\\\\Message\\|string, mixed given\\.$#" + message: '#^Parameter \#1 \$message of static method PhpMyAdmin\\Html\\Generator\:\:getMessage\(\) expects PhpMyAdmin\\Message\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Triggers/Triggers.php - - message: "#^Parameter \\#2 \\$string of function explode expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$string of function explode expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Triggers/Triggers.php - - message: "#^Parameter \\#3 \\$name of method PhpMyAdmin\\\\Triggers\\\\Triggers\\:\\:getTriggerByName\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#3 \$name of method PhpMyAdmin\\Triggers\\Triggers\:\:getTriggerByName\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Triggers/Triggers.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/TwoFactor.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/TwoFactor.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 1 + path: src/Types.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: src/UniqueCondition.php - - message: "#^Only booleans are allowed in &&, bool\\|string given on the left side\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 3 + path: src/UniqueCondition.php + + - + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 1 path: src/UniqueCondition.php - - message: "#^Parameter \\#1 \\$row of method PhpMyAdmin\\\\UniqueCondition\\:\\:getConditionValue\\(\\) expects float\\|int\\|string\\|null, mixed given\\.$#" + message: '#^Only booleans are allowed in &&, bool\|string given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 1 path: src/UniqueCondition.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Parameter \#1 \$row of method PhpMyAdmin\\UniqueCondition\:\:getConditionValue\(\) expects float\|int\|string\|null, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/UniqueCondition.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 3 path: src/Url.php - - message: "#^Call to function base64_decode\\(\\) requires parameter \\#2 to be set\\.$#" + message: '#^Call to function base64_decode\(\) requires parameter \#2 to be set\.$#' + identifier: function.strict count: 1 path: src/Url.php - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" + message: '#^Call to function in_array\(\) requires parameter \#3 to be set\.$#' + identifier: function.strict count: 1 path: src/Url.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 1 path: src/Url.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 4 path: src/Url.php - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' + identifier: booleanNot.exprNotBoolean count: 2 path: src/Url.php - - message: "#^Parameter \\#1 \\$params of static method PhpMyAdmin\\\\Url\\:\\:getCommon\\(\\) expects array\\, array given\\.$#" + message: '#^Parameter \#1 \$params of static method PhpMyAdmin\\Url\:\:getCommon\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: src/Url.php - - message: "#^Parameter \\#2 \\$pre of static method PhpMyAdmin\\\\Url\\:\\:getHiddenFields\\(\\) expects string, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#2 \$pre of static method PhpMyAdmin\\Url\:\:getHiddenFields\(\) expects string, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Url.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/UserPassword.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/UserPassword.php - - message: "#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/UserPassword.php - - message: "#^Parameter \\#1 \\$password of method PhpMyAdmin\\\\Server\\\\Privileges\\:\\:getHashedPassword\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$password of method PhpMyAdmin\\Server\\Privileges\:\:getHashedPassword\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/UserPassword.php - - message: "#^Parameter \\#4 \\$authPlugin of method PhpMyAdmin\\\\UserPassword\\:\\:getChangePasswordQueryAlterUserMySQL\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#4 \$authPlugin of method PhpMyAdmin\\UserPassword\:\:getChangePasswordQueryAlterUserMySQL\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/UserPassword.php - - message: "#^Parameter \\#6 \\$origAuthPlugin of method PhpMyAdmin\\\\UserPassword\\:\\:changePassUrlParamsAndSubmitQuery\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#6 \$origAuthPlugin of method PhpMyAdmin\\UserPassword\:\:changePassUrlParamsAndSubmitQuery\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/UserPassword.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/UserPreferences.php - - message: "#^Cannot access offset 'userprefs' on mixed\\.$#" + message: '#^Cannot access offset ''userprefs'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/UserPreferences.php - - message: "#^Cannot access offset non\\-falsy\\-string on mixed\\.$#" + message: '#^Cannot access offset non\-falsy\-string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/UserPreferences.php - - message: "#^Method PhpMyAdmin\\\\UserPreferences\\:\\:apply\\(\\) should return array but returns mixed\\.$#" + message: '#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/UserPreferences.php - - message: "#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Only booleans are allowed in an if condition, string\|false\|null given\.$#' + identifier: if.condNotBoolean count: 1 path: src/UserPreferences.php - - message: "#^Only booleans are allowed in an if condition, string\\|false\\|null given\\.$#" + message: '#^Parameter \#1 \$params of static method PhpMyAdmin\\Url\:\:getCommonRaw\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: src/UserPreferences.php - - message: "#^Parameter \\#1 \\$params of static method PhpMyAdmin\\\\Url\\:\\:getCommonRaw\\(\\) expects array\\, array given\\.$#" + message: '#^Parameter \#1 \$path of static method PhpMyAdmin\\Core\:\:arrayWrite\(\) expects string, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/UserPreferences.php - - message: "#^Parameter \\#1 \\$path of static method PhpMyAdmin\\\\Core\\:\\:arrayWrite\\(\\) expects string, \\(int\\|string\\) given\\.$#" - count: 1 - path: src/UserPreferences.php - - - - message: "#^Parameter \\#1 \\$str of method PhpMyAdmin\\\\DatabaseInterface\\:\\:quoteString\\(\\) expects string, string\\|false given\\.$#" + message: '#^Parameter \#1 \$str of method PhpMyAdmin\\DatabaseInterface\:\:quoteString\(\) expects string, string\|false given\.$#' + identifier: argument.type count: 2 path: src/UserPreferences.php - - message: "#^Ternary operator condition is always true\\.$#" + message: '#^Ternary operator condition is always true\.$#' + identifier: ternary.alwaysTrue count: 1 path: src/UserPreferences.php - - message: "#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed count: 1 path: src/UserPrivilegesFactory.php - - message: "#^Only booleans are allowed in \\|\\|, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given on the left side\\.$#" + message: '#^Only booleans are allowed in a negated boolean, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/UserPrivilegesFactory.php - - message: "#^Parameter \\#1 \\$database of class PhpMyAdmin\\\\UserPrivileges constructor expects bool, mixed given\\.$#" + message: '#^Only booleans are allowed in \|\|, PhpMyAdmin\\Dbal\\ResultInterface\|false given on the left side\.$#' + identifier: booleanOr.leftNotBoolean count: 1 path: src/UserPrivilegesFactory.php - - message: "#^Parameter \\#2 \\$table of class PhpMyAdmin\\\\UserPrivileges constructor expects bool, mixed given\\.$#" + message: '#^Parameter \#1 \$database of class PhpMyAdmin\\UserPrivileges constructor expects bool, mixed given\.$#' + identifier: argument.type count: 1 path: src/UserPrivilegesFactory.php - - message: "#^Parameter \\#3 \\$column of class PhpMyAdmin\\\\UserPrivileges constructor expects bool, mixed given\\.$#" + message: '#^Parameter \#2 \$table of class PhpMyAdmin\\UserPrivileges constructor expects bool, mixed given\.$#' + identifier: argument.type count: 1 path: src/UserPrivilegesFactory.php - - message: "#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, string\\|null given\\.$#" + message: '#^Parameter \#3 \$column of class PhpMyAdmin\\UserPrivileges constructor expects bool, mixed given\.$#' + identifier: argument.type count: 1 path: src/UserPrivilegesFactory.php - - message: "#^Parameter \\#4 \\$routines of class PhpMyAdmin\\\\UserPrivileges constructor expects bool, mixed given\\.$#" + message: '#^Parameter \#3 \$subject of function preg_replace expects array\\|string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/UserPrivilegesFactory.php - - message: "#^Parameter \\#5 \\$isReload of class PhpMyAdmin\\\\UserPrivileges constructor expects bool, mixed given\\.$#" + message: '#^Parameter \#4 \$routines of class PhpMyAdmin\\UserPrivileges constructor expects bool, mixed given\.$#' + identifier: argument.type count: 1 path: src/UserPrivilegesFactory.php - - message: "#^Parameter \\#6 \\$isCreateDatabase of class PhpMyAdmin\\\\UserPrivileges constructor expects bool, mixed given\\.$#" + message: '#^Parameter \#5 \$isReload of class PhpMyAdmin\\UserPrivileges constructor expects bool, mixed given\.$#' + identifier: argument.type count: 1 path: src/UserPrivilegesFactory.php - - message: "#^Parameter \\#7 \\$databaseToCreate of class PhpMyAdmin\\\\UserPrivileges constructor expects string, mixed given\\.$#" + message: '#^Parameter \#6 \$isCreateDatabase of class PhpMyAdmin\\UserPrivileges constructor expects bool, mixed given\.$#' + identifier: argument.type count: 1 path: src/UserPrivilegesFactory.php - - message: "#^Parameter \\#8 \\$databasesToTest of class PhpMyAdmin\\\\UserPrivileges constructor expects array\\\\|false, mixed given\\.$#" + message: '#^Parameter \#7 \$databaseToCreate of class PhpMyAdmin\\UserPrivileges constructor expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/UserPrivilegesFactory.php - - message: "#^Property PhpMyAdmin\\\\UserPrivileges\\:\\:\\$databaseToCreate \\(string\\) does not accept string\\|null\\.$#" + message: '#^Parameter \#8 \$databasesToTest of class PhpMyAdmin\\UserPrivileges constructor expects array\\|false, mixed given\.$#' + identifier: argument.type + count: 1 + path: src/UserPrivilegesFactory.php + + - + message: '#^Property PhpMyAdmin\\UserPrivileges\:\:\$databaseToCreate \(string\) does not accept string\|null\.$#' + identifier: assign.propertyType count: 2 path: src/UserPrivilegesFactory.php - - message: "#^Property PhpMyAdmin\\\\UserPrivileges\\:\\:\\$databasesToTest \\(array\\\\|false\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\UserPrivileges\:\:\$databasesToTest \(array\\|false\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: src/UserPrivilegesFactory.php - - message: "#^Binary operation \"\\.\" between bool\\|float\\|int\\|string and array\\\\|string\\|false results in an error\\.$#" + message: '#^Binary operation "\." between bool\|float\|int\|string and array\\|string\|false results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Util.php - - message: "#^Binary operation \"\\.\" between non\\-empty\\-string and array\\\\|string\\|false results in an error\\.$#" + message: '#^Binary operation "\." between mixed and '', '' results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: src/Util.php - - message: "#^Call to deprecated function strftime\\(\\)\\.$#" + message: '#^Binary operation "\." between non\-empty\-string and array\\|string\|false results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Util.php + + - + message: '#^Call to deprecated function strftime\(\)\.$#' + identifier: function.deprecated count: 2 path: src/Util.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 8 path: src/Util.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 9 path: src/Util.php - - message: "#^Cannot access offset 'Cardinality' on mixed\\.$#" + message: '#^Cannot access offset ''Cardinality'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Util.php - - message: "#^Cannot access offset 'Column_name' on mixed\\.$#" + message: '#^Cannot access offset ''Column_name'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Util.php - - message: "#^Cannot access offset 'Comment' on mixed\\.$#" + message: '#^Cannot access offset ''Comment'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Util.php - - message: "#^Cannot access offset 'Key_name' on mixed\\.$#" + message: '#^Cannot access offset ''Key_name'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Util.php - - message: "#^Cannot access offset 'Non_unique' on mixed\\.$#" + message: '#^Cannot access offset ''Non_unique'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Util.php - - message: "#^Cannot access offset 'Seq_in_index' on mixed\\.$#" + message: '#^Cannot access offset ''Seq_in_index'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: src/Util.php - - message: "#^Cannot access offset 'Sub_part' on mixed\\.$#" + message: '#^Cannot access offset ''Sub_part'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/Util.php - - message: "#^Cannot access offset 'table_limit_offset' on mixed\\.$#" + message: '#^Cannot access offset ''table_limit_offset'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: src/Util.php - - message: "#^Cannot access offset 'table_limit_offset…' on mixed\\.$#" + message: '#^Cannot access offset ''table_limit_offset_db'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/Util.php - - message: "#^Cannot cast mixed to string\\.$#" + message: '#^Cannot cast mixed to string\.$#' + identifier: cast.string count: 1 path: src/Util.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 2 path: src/Util.php - - message: "#^Foreach overwrites \\$quote with its value variable\\.$#" + message: '#^Foreach overwrites \$quote with its value variable\.$#' + identifier: foreach.valueOverwrite count: 1 path: src/Util.php - - message: "#^Method PhpMyAdmin\\\\Util\\:\\:getDbInfo\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Loose comparison via "\!\=" is not allowed\.$#' + identifier: notEqual.notAllowed + count: 4 + path: src/Util.php + + - + message: '#^Loose comparison via "\=\=" is not allowed\.$#' + identifier: equal.notAllowed + count: 7 + path: src/Util.php + + - + message: '#^Method PhpMyAdmin\\Util\:\:getDbInfo\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Util.php - - message: "#^Method PhpMyAdmin\\\\Util\\:\\:getTableListPosition\\(\\) should return int but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\Util\:\:getTableListPosition\(\) should return int but returns mixed\.$#' + identifier: return.type count: 1 path: src/Util.php - - message: "#^Offset 1 does not exist on array\\{0\\?\\: string, 1\\?\\: string\\}\\.$#" + message: '#^Offset 1 might not exist on array\{0\?\: string, 1\?\: string\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Util.php - - message: "#^Offset int\\<1, 6\\> on array\\{string, string, string, string, string, string, string\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset int\<1, 6\> on array\{string, string, string, string, string, string, string\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: src/Util.php - - message: "#^Only booleans are allowed in a negated boolean, int\\<0, 2\\> given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, int\<0, 2\> given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: src/Util.php - - message: "#^Only booleans are allowed in an if condition, int\\<0, max\\>\\|false given\\.$#" + message: '#^Only booleans are allowed in an if condition, int\<0, max\>\|false given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Util.php - - message: "#^Only booleans are allowed in an if condition, string\\|false\\|null given\\.$#" + message: '#^Only booleans are allowed in an if condition, string\|false\|null given\.$#' + identifier: if.condNotBoolean count: 3 path: src/Util.php - - message: "#^Only numeric types are allowed in \\+, int\\<0, max\\>\\|false given on the left side\\.$#" + message: '#^Only numeric types are allowed in \+, int\<0, max\>\|false given on the left side\.$#' + identifier: plus.leftNonNumeric count: 1 path: src/Util.php - - message: "#^Only numeric types are allowed in \\-, int\\<0, max\\>\\|false given on the left side\\.$#" + message: '#^Only numeric types are allowed in \-, int\<0, max\>\|false given on the left side\.$#' + identifier: minus.leftNonNumeric count: 1 path: src/Util.php - - message: "#^Parameter \\#1 \\$callback of function array_map expects \\(callable\\(string\\|null\\)\\: mixed\\)\\|null, callable\\(string\\)\\: string given\\.$#" + message: '#^Parameter \#1 \$callback of function array_map expects \(callable\(string\|null\)\: mixed\)\|null, callable\(string\)\: string given\.$#' + identifier: argument.type count: 1 path: src/Util.php - - message: "#^Parameter \\#1 \\$str of function strtr expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$str of function strtr expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Util.php - - message: "#^Parameter \\#1 \\$str of method PhpMyAdmin\\\\DatabaseInterface\\:\\:escapeMysqlWildcards\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$str of method PhpMyAdmin\\DatabaseInterface\:\:escapeMysqlWildcards\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Util.php - - message: "#^Parameter \\#2 \\$array of function array_key_exists expects array, mixed given\\.$#" + message: '#^Parameter \#2 \$array of function array_key_exists expects array, mixed given\.$#' + identifier: argument.type count: 1 path: src/Util.php - - message: "#^Parameter \\#2 \\$table of method PhpMyAdmin\\\\DatabaseInterface\\:\\:getTablesFull\\(\\) expects array\\|string, mixed given\\.$#" + message: '#^Parameter \#2 \$table of method PhpMyAdmin\\DatabaseInterface\:\:getTablesFull\(\) expects array\\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Util.php - - message: "#^Variable static method call on PhpMyAdmin\\\\Util\\.$#" + message: '#^Variable static method call on PhpMyAdmin\\Util\.$#' + identifier: staticMethod.dynamicName count: 1 path: src/Util.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Utils/ForeignKey.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 4 path: src/Utils/ForeignKey.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 1 path: src/Utils/ForeignKey.php - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" + message: '#^Short ternary operator is not allowed\. Use null coalesce operator if applicable or consider using long ternary\.$#' + identifier: ternary.shortNotAllowed count: 1 path: src/Utils/ForeignKey.php - - message: "#^Method PhpMyAdmin\\\\Utils\\\\FormatConverter\\:\\:binaryToIp\\(\\) should return string\\|false but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\Utils\\FormatConverter\:\:binaryToIp\(\) should return string\|false but returns mixed\.$#' + identifier: return.type count: 2 path: src/Utils/FormatConverter.php - - message: "#^Method PhpMyAdmin\\\\Utils\\\\FormatConverter\\:\\:ipToBinary\\(\\) should return string but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\Utils\\FormatConverter\:\:ipToBinary\(\) should return string but returns mixed\.$#' + identifier: return.type count: 1 path: src/Utils/FormatConverter.php - - message: "#^Parameter \\#1 \\$haystack of function str_starts_with expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$haystack of function str_starts_with expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Utils/FormatConverter.php - - message: "#^Parameter \\#1 \\$ip of function inet_pton expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$ip of function inet_pton expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Utils/FormatConverter.php - - message: "#^Parameter \\#1 \\$string of function bin2hex expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function bin2hex expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Utils/FormatConverter.php - - message: "#^Parameter \\#1 \\$string of function substr expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function substr expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Utils/FormatConverter.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: src/Utils/Gis.php - - message: "#^Only booleans are allowed in an if condition, PhpMyAdmin\\\\Dbal\\\\ResultInterface\\|false given\\.$#" + message: '#^Only booleans are allowed in an if condition, PhpMyAdmin\\Dbal\\ResultInterface\|false given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Utils/Gis.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: src/Utils/HttpRequest.php - - message: "#^Method PhpMyAdmin\\\\Utils\\\\HttpRequest\\:\\:response\\(\\) should return bool\\|string\\|null but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\Utils\\HttpRequest\:\:response\(\) should return bool\|string\|null but returns mixed\.$#' + identifier: return.type count: 1 path: src/Utils/HttpRequest.php - - message: "#^Offset 1 does not exist on array\\{0\\?\\: string, 1\\?\\: numeric\\-string\\}\\.$#" + message: '#^Offset 1 might not exist on array\{0\?\: string, 1\?\: numeric\-string\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Utils/HttpRequest.php - - message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" + message: '#^Only booleans are allowed in an if condition, string\|false given\.$#' + identifier: if.condNotBoolean count: 1 path: src/Utils/HttpRequest.php - - message: "#^Variable \\$http_response_header in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Parameter \#3 \$value of function curl_setopt expects array\|string, mixed given\.$#' + identifier: argument.type count: 1 path: src/Utils/HttpRequest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Parameter \#3 \$value of function curl_setopt expects bool, int given\.$#' + identifier: argument.type + count: 1 + path: src/Utils/HttpRequest.php + + - + message: '#^Parameter \#3 \$value of function curl_setopt expects non\-empty\-string, string given\.$#' + identifier: argument.type + count: 3 + path: src/Utils/HttpRequest.php + + - + message: '#^Variable \$http_response_header in isset\(\) always exists and is not nullable\.$#' + identifier: isset.variable + count: 1 + path: src/Utils/HttpRequest.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/Utils/SessionCache.php - - message: "#^Cannot access offset string on mixed\\.$#" + message: '#^Cannot access offset string on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 8 path: src/Utils/SessionCache.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between ''6\.0\.0\-dev'' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/Version.php + + - + message: '#^Binary operation "\+" between mixed and 21600 results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: src/VersionInformation.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: src/VersionInformation.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/VersionInformation.php - - message: "#^Cannot access offset 'response' on mixed\\.$#" + message: '#^Cannot access offset ''response'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/VersionInformation.php - - message: "#^Cannot access offset 'timestamp' on mixed\\.$#" + message: '#^Cannot access offset ''timestamp'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/VersionInformation.php - - message: "#^Cannot access offset 'version_check' on mixed\\.$#" + message: '#^Cannot access offset ''version_check'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/VersionInformation.php - - message: "#^Parameter \\#1 \\$json of function json_decode expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$json of function json_decode expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/VersionInformation.php - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" + message: '#^Short ternary operator is not allowed\. Use null coalesce operator if applicable or consider using long ternary\.$#' + identifier: ternary.shortNotAllowed count: 1 path: src/VersionInformation.php - - message: "#^Match arm comparison between 7 and 7 is always true\\.$#" + message: '#^Match arm comparison between 7 and 7 is always true\.$#' + identifier: match.alwaysTrue count: 1 path: src/WebAuthn/CBORDecoder.php - - message: "#^Match arm is unreachable because previous comparison is always true\\.$#" - count: 1 - path: src/WebAuthn/CBORDecoder.php - - - - message: "#^Anonymous class implements deprecated interface Webauthn\\\\PublicKeyCredentialSourceRepository\\.$#" + message: '#^Anonymous class implements deprecated interface Webauthn\\PublicKeyCredentialSourceRepository\.$#' + identifier: class.implementsDeprecatedInterface count: 1 path: src/WebAuthn/WebauthnLibServer.php - - message: """ - #^Call to deprecated method allowCredentials\\(\\) of class Webauthn\\\\PublicKeyCredentialRequestOptions\\: - since 4\\.7\\.0\\. No replacement\\. Please use the property directly\\.$# - """ + message: ''' + #^Call to deprecated method allowCredentials\(\) of class Webauthn\\PublicKeyCredentialRequestOptions\: + since 4\.7\.0\. No replacement\. Please use the property directly\.$# + ''' + identifier: method.deprecated count: 1 path: src/WebAuthn/WebauthnLibServer.php - - message: """ - #^Call to deprecated method createFromArray\\(\\) of class Webauthn\\\\AuthenticatorSelectionCriteria\\: - since 4\\.8\\.0\\. Please use \\{Webauthn\\\\Denormalizer\\\\WebauthnSerializerFactory\\} for converting the object\\.$# - """ + message: ''' + #^Call to deprecated method createFromArray\(\) of class Webauthn\\AuthenticatorSelectionCriteria\: + since 4\.8\.0\. Please use \{Webauthn\\Denormalizer\\WebauthnSerializerFactory\} for converting the object\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/WebAuthn/WebauthnLibServer.php - - message: """ - #^Call to deprecated method createFromArray\\(\\) of class Webauthn\\\\PublicKeyCredentialCreationOptions\\: - since 4\\.8\\.0\\. Please use \\{Webauthn\\\\Denormalizer\\\\WebauthnSerializerFactory\\} for converting the object\\.$# - """ + message: ''' + #^Call to deprecated method createFromArray\(\) of class Webauthn\\PublicKeyCredentialCreationOptions\: + since 4\.8\.0\. Please use \{Webauthn\\Denormalizer\\WebauthnSerializerFactory\} for converting the object\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/WebAuthn/WebauthnLibServer.php - - message: """ - #^Call to deprecated method createFromArray\\(\\) of class Webauthn\\\\PublicKeyCredentialRequestOptions\\: - since 4\\.8\\.0\\. Please use \\{Webauthn\\\\Denormalizer\\\\WebauthnSerializerFactory\\} for converting the object\\.$# - """ + message: ''' + #^Call to deprecated method createFromArray\(\) of class Webauthn\\PublicKeyCredentialRequestOptions\: + since 4\.8\.0\. Please use \{Webauthn\\Denormalizer\\WebauthnSerializerFactory\} for converting the object\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: src/WebAuthn/WebauthnLibServer.php - - message: """ - #^Call to deprecated method createFromArray\\(\\) of class Webauthn\\\\PublicKeyCredentialSource\\: - since 4\\.8\\.0\\. Please use \\{Webauthn\\\\Denormalizer\\\\WebauthnSerializerFactory\\} for converting the object\\.$# - """ + message: ''' + #^Call to deprecated method createFromArray\(\) of class Webauthn\\PublicKeyCredentialSource\: + since 4\.8\.0\. Please use \{Webauthn\\Denormalizer\\WebauthnSerializerFactory\} for converting the object\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: src/WebAuthn/WebauthnLibServer.php - - message: """ - #^Call to deprecated method getId\\(\\) of class Webauthn\\\\PublicKeyCredentialRpEntity\\: - since 4\\.7\\.0\\. Please use the property directly\\.$# - """ + message: ''' + #^Call to deprecated method getId\(\) of class Webauthn\\PublicKeyCredentialRpEntity\: + since 4\.7\.0\. Please use the property directly\.$# + ''' + identifier: method.deprecated count: 1 path: src/WebAuthn/WebauthnLibServer.php - - message: """ - #^Call to deprecated method getId\\(\\) of class Webauthn\\\\PublicKeyCredentialUserEntity\\: - since 4\\.7\\.0\\. Please use the property directly\\.$# - """ + message: ''' + #^Call to deprecated method getId\(\) of class Webauthn\\PublicKeyCredentialUserEntity\: + since 4\.7\.0\. Please use the property directly\.$# + ''' + identifier: method.deprecated count: 2 path: src/WebAuthn/WebauthnLibServer.php - - message: """ - #^Call to deprecated method getPublicKeyCredentialId\\(\\) of class Webauthn\\\\PublicKeyCredentialSource\\: - since 4\\.7\\.0\\. Please use the property directly\\.$# - """ + message: ''' + #^Call to deprecated method getPublicKeyCredentialId\(\) of class Webauthn\\PublicKeyCredentialSource\: + since 4\.7\.0\. Please use the property directly\.$# + ''' + identifier: method.deprecated count: 1 path: src/WebAuthn/WebauthnLibServer.php - - message: """ - #^Call to deprecated method getRawId\\(\\) of class Webauthn\\\\PublicKeyCredential\\: - since 4\\.7\\.0\\. Please use the property directly\\.$# - """ + message: ''' + #^Call to deprecated method getRawId\(\) of class Webauthn\\PublicKeyCredential\: + since 4\.7\.0\. Please use the property directly\.$# + ''' + identifier: method.deprecated count: 1 path: src/WebAuthn/WebauthnLibServer.php - - message: """ - #^Call to deprecated method getResponse\\(\\) of class Webauthn\\\\PublicKeyCredential\\: - since 4\\.7\\.0\\. Please use the property directly\\.$# - """ + message: ''' + #^Call to deprecated method getResponse\(\) of class Webauthn\\PublicKeyCredential\: + since 4\.7\.0\. Please use the property directly\.$# + ''' + identifier: method.deprecated count: 2 path: src/WebAuthn/WebauthnLibServer.php - - message: """ - #^Call to deprecated method getUserHandle\\(\\) of class Webauthn\\\\PublicKeyCredentialSource\\: - since 4\\.7\\.0\\. Please use the property directly\\.$# - """ + message: ''' + #^Call to deprecated method getUserHandle\(\) of class Webauthn\\PublicKeyCredentialSource\: + since 4\.7\.0\. Please use the property directly\.$# + ''' + identifier: method.deprecated count: 1 path: src/WebAuthn/WebauthnLibServer.php - - message: """ - #^Call to deprecated method setAttestation\\(\\) of class Webauthn\\\\PublicKeyCredentialCreationOptions\\: - since 4\\.7\\.0\\. Please use the \\{self\\:\\:create\\} instead\\.$# - """ + message: ''' + #^Call to deprecated method setAttestation\(\) of class Webauthn\\PublicKeyCredentialCreationOptions\: + since 4\.7\.0\. Please use the \{self\:\:create\} instead\.$# + ''' + identifier: method.deprecated count: 1 path: src/WebAuthn/WebauthnLibServer.php - - message: """ - #^Call to deprecated method setAuthenticatorSelection\\(\\) of class Webauthn\\\\PublicKeyCredentialCreationOptions\\: - since 4\\.7\\.0\\. Please use the \\{self\\:\\:create\\} instead\\.$# - """ + message: ''' + #^Call to deprecated method setAuthenticatorSelection\(\) of class Webauthn\\PublicKeyCredentialCreationOptions\: + since 4\.7\.0\. Please use the \{self\:\:create\} instead\.$# + ''' + identifier: method.deprecated count: 1 path: src/WebAuthn/WebauthnLibServer.php - - message: """ - #^Call to deprecated method setExtensions\\(\\) of class Webauthn\\\\PublicKeyCredentialOptions\\: - since 4\\.7\\.0\\. Please use the \\{self\\:\\:create\\} instead\\.$# - """ + message: ''' + #^Call to deprecated method setExtensions\(\) of class Webauthn\\PublicKeyCredentialOptions\: + since 4\.7\.0\. Please use the \{self\:\:create\} instead\.$# + ''' + identifier: method.deprecated count: 2 path: src/WebAuthn/WebauthnLibServer.php - - message: """ - #^Call to deprecated method setRpId\\(\\) of class Webauthn\\\\PublicKeyCredentialRequestOptions\\: - since 4\\.7\\.0\\. Please use the property directly\\.$# - """ + message: ''' + #^Call to deprecated method setRpId\(\) of class Webauthn\\PublicKeyCredentialRequestOptions\: + since 4\.7\.0\. Please use the property directly\.$# + ''' + identifier: method.deprecated count: 1 path: src/WebAuthn/WebauthnLibServer.php - - message: """ - #^Call to deprecated method setTimeout\\(\\) of class Webauthn\\\\PublicKeyCredentialOptions\\: - since 4\\.7\\.0\\. Please use the \\{self\\:\\:create\\} instead\\.$# - """ + message: ''' + #^Call to deprecated method setTimeout\(\) of class Webauthn\\PublicKeyCredentialOptions\: + since 4\.7\.0\. Please use the \{self\:\:create\} instead\.$# + ''' + identifier: method.deprecated count: 2 path: src/WebAuthn/WebauthnLibServer.php - - message: """ - #^Call to deprecated method setUserVerification\\(\\) of class Webauthn\\\\PublicKeyCredentialRequestOptions\\: - since 4\\.7\\.0\\. Please use the property directly\\.$# - """ + message: ''' + #^Call to deprecated method setUserVerification\(\) of class Webauthn\\PublicKeyCredentialRequestOptions\: + since 4\.7\.0\. Please use the property directly\.$# + ''' + identifier: method.deprecated count: 1 path: src/WebAuthn/WebauthnLibServer.php - - message: """ - #^Call to method create\\(\\) of deprecated class Webauthn\\\\PublicKeyCredentialLoader\\: - since 4\\.8\\.0 and will be removed in 5\\.0\\.0\\. Please use the Symfony serializer instead$# - """ + message: ''' + #^Call to method create\(\) of deprecated class Webauthn\\PublicKeyCredentialLoader\: + since 4\.8\.0 and will be removed in 5\.0\.0\. Please use the Symfony serializer instead$# + ''' + identifier: staticMethod.deprecatedClass count: 2 path: src/WebAuthn/WebauthnLibServer.php - - message: "#^Call to static method Webmozart\\\\Assert\\\\Assert\\:\\:isInstanceOf\\(\\) with Webauthn\\\\PublicKeyCredentialCreationOptions and 'Webauthn\\\\\\\\PublicKeyCredentialCreationOptions' will always evaluate to true\\.$#" + message: '#^Call to static method Webmozart\\Assert\\Assert\:\:isInstanceOf\(\) with Webauthn\\PublicKeyCredentialCreationOptions and ''Webauthn\\\\PublicKeyCredentialCreationOptions'' will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: src/WebAuthn/WebauthnLibServer.php - - message: "#^Call to static method Webmozart\\\\Assert\\\\Assert\\:\\:isInstanceOf\\(\\) with Webauthn\\\\PublicKeyCredentialRequestOptions and 'Webauthn\\\\\\\\PublicKeyCredentialRequestOptions' will always evaluate to true\\.$#" + message: '#^Call to static method Webmozart\\Assert\\Assert\:\:isInstanceOf\(\) with Webauthn\\PublicKeyCredentialRequestOptions and ''Webauthn\\\\PublicKeyCredentialRequestOptions'' will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: src/WebAuthn/WebauthnLibServer.php - - message: "#^Cannot access offset 'authenticatorData' on mixed\\.$#" + message: '#^Cannot access offset ''authenticatorData'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: src/WebAuthn/WebauthnLibServer.php - - message: "#^Cannot access offset 'clientDataJSON' on mixed\\.$#" + message: '#^Cannot access offset ''clientDataJSON'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: src/WebAuthn/WebauthnLibServer.php - - message: "#^Cannot access offset 'response' on mixed\\.$#" + message: '#^Cannot access offset ''response'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 6 path: src/WebAuthn/WebauthnLibServer.php - - message: """ - #^Instantiation of deprecated class Webauthn\\\\AuthenticationExtensions\\\\AuthenticationExtensionsClientInputs\\: - since 4\\.8\\.0\\. Use \\{Webauthn\\\\AuthenticationExtensions\\\\AuthenticationExtensions\\} instead\\.$# - """ + message: ''' + #^Instantiation of deprecated class Webauthn\\AuthenticationExtensions\\AuthenticationExtensionsClientInputs\: + since 4\.8\.0\. Use \{Webauthn\\AuthenticationExtensions\\AuthenticationExtensions\} instead\.$# + ''' + identifier: new.deprecated count: 2 path: src/WebAuthn/WebauthnLibServer.php - - message: """ - #^Instantiation of deprecated class Webauthn\\\\TokenBinding\\\\IgnoreTokenBindingHandler\\: - Since 4\\.3\\.0 and will be removed in 5\\.0\\.0$# - """ + message: ''' + #^Instantiation of deprecated class Webauthn\\TokenBinding\\IgnoreTokenBindingHandler\: + Since 4\.3\.0 and will be removed in 5\.0\.0$# + ''' + identifier: new.deprecated count: 2 path: src/WebAuthn/WebauthnLibServer.php - - message: "#^Parameter \\#1 \\$haystack of function str_ends_with expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$haystack of function str_ends_with expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/WebAuthn/WebauthnLibServer.php - - message: "#^Parameter \\#1 \\$string of function rtrim expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function rtrim expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/WebAuthn/WebauthnLibServer.php - - message: "#^Parameter \\#1 \\$string of function sodium_base642bin expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function sodium_base642bin expects string, mixed given\.$#' + identifier: argument.type count: 3 path: src/WebAuthn/WebauthnLibServer.php - - message: "#^Return type of method PhpMyAdmin\\\\WebAuthn\\\\WebauthnLibServer\\:\\:createPublicKeyCredentialSourceRepository\\(\\) has typehint with deprecated interface Webauthn\\\\PublicKeyCredentialSourceRepository\\.$#" + message: '#^Return type of method PhpMyAdmin\\WebAuthn\\WebauthnLibServer\:\:createPublicKeyCredentialSourceRepository\(\) has typehint with deprecated interface Webauthn\\PublicKeyCredentialSourceRepository\.$#' + identifier: return.deprecatedInterface count: 1 path: src/WebAuthn/WebauthnLibServer.php - - message: "#^Method PhpMyAdmin\\\\ZipExtension\\:\\:getContents\\(\\) should return array\\{error\\: string, data\\: string\\} but returns array\\{error\\: '', data\\: string\\|false\\}\\.$#" + message: '#^Method PhpMyAdmin\\ZipExtension\:\:getContents\(\) should return array\{error\: string, data\: string\} but returns array\{error\: '''', data\: string\|false\}\.$#' + identifier: return.type count: 1 path: src/ZipExtension.php - - message: "#^Method PhpMyAdmin\\\\ZipExtension\\:\\:getContents\\(\\) should return array\\{error\\: string, data\\: string\\} but returns array\\{error\\: string, data\\: string\\|false\\}\\.$#" + message: '#^Method PhpMyAdmin\\ZipExtension\:\:getContents\(\) should return array\{error\: string, data\: string\} but returns array\{error\: string, data\: string\|false\}\.$#' + identifier: return.type count: 1 path: src/ZipExtension.php - - message: "#^Parameter \\#1 \\$data of function gzcompress expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$data of function gzcompress expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/ZipExtension.php - - message: "#^Parameter \\#1 \\$keys of function array_combine expects array\\, array given\\.$#" + message: '#^Parameter \#1 \$keys of function array_combine expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: src/ZipExtension.php - - message: "#^Parameter \\#1 \\$string of function crc32 expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function crc32 expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/ZipExtension.php - - message: "#^Parameter \\#1 \\$string of function strlen expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function strlen expects string, mixed given\.$#' + identifier: argument.type count: 1 path: src/ZipExtension.php - - message: "#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#3 \$subject of function str_replace expects array\\|string, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/ZipExtension.php - - message: "#^Cannot access offset 'Console' on mixed\\.$#" + message: '#^Cannot access offset ''Console'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/config.e2e.inc.php - - message: "#^Cannot access offset 'Mode' on mixed\\.$#" + message: '#^Cannot access offset ''Mode'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/config.e2e.inc.php - - message: "#^Cannot access offset 'Servers' on mixed\\.$#" + message: '#^Cannot access offset ''Servers'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: tests/config.e2e.inc.php - - message: "#^Cannot access offset 'UploadDir' on mixed\\.$#" + message: '#^Cannot access offset ''UploadDir'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/config.e2e.inc.php - - message: "#^Cannot access offset 'auth_type' on mixed\\.$#" + message: '#^Cannot access offset ''auth_type'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/config.e2e.inc.php - - message: "#^Cannot access offset 'host' on mixed\\.$#" + message: '#^Cannot access offset ''host'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/config.e2e.inc.php - - message: "#^Cannot access offset 'verbose' on mixed\\.$#" + message: '#^Cannot access offset ''verbose'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/config.e2e.inc.php - - message: "#^Cannot access offset 1 on mixed\\.$#" + message: '#^Cannot access offset 1 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: tests/config.e2e.inc.php - - message: "#^Implicit array creation is not allowed \\- variable \\$cfg might not exist\\.$#" + message: '#^Implicit array creation is not allowed \- variable \$cfg might not exist\.$#' + identifier: variable.implicitArray count: 1 path: tests/config.e2e.inc.php - - message: "#^Call to function is_string\\(\\) with non\\-falsy\\-string will always evaluate to true\\.$#" + message: '#^Binary operation "\." between ''Test failed, get…'' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: tests/end-to-end/TestBase.php + + - + message: '#^Binary operation "\." between ''ajax_message_num_'' and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: tests/end-to-end/TestBase.php + + - + message: '#^Call to function is_string\(\) with non\-falsy\-string will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 2 path: tests/end-to-end/TestBase.php - - message: "#^Cannot access property \\$public_url on mixed\\.$#" + message: '#^Cannot access property \$public_url on mixed\.$#' + identifier: property.nonObject count: 1 path: tests/end-to-end/TestBase.php - - message: "#^Class PhpMyAdmin\\\\Tests\\\\Selenium\\\\TestBase has an uninitialized property \\$sessionId\\. Give it default value or assign it in the constructor\\.$#" + message: '#^Class PhpMyAdmin\\Tests\\Selenium\\TestBase has an uninitialized property \$sessionId\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized count: 1 path: tests/end-to-end/TestBase.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#' + identifier: empty.notAllowed count: 5 path: tests/end-to-end/TestBase.php - - message: """ - #^Fetching deprecated class constant CAPABILITY_W3C of class Facebook\\\\WebDriver\\\\Chrome\\\\ChromeOptions\\: + message: '#^Dead catch \- Facebook\\WebDriver\\Exception\\InvalidSelectorException is never thrown in the try block\.$#' + identifier: catch.neverThrown + count: 1 + path: tests/end-to-end/TestBase.php + + - + message: '#^Dead catch \- InvalidArgumentException is never thrown in the try block\.$#' + identifier: catch.neverThrown + count: 1 + path: tests/end-to-end/TestBase.php + + - + message: ''' + #^Fetching deprecated class constant CAPABILITY_W3C of class Facebook\\WebDriver\\Chrome\\ChromeOptions\: Use CAPABILITY instead$# - """ + ''' + identifier: classConstant.deprecated count: 1 path: tests/end-to-end/TestBase.php - - message: "#^Only booleans are allowed in &&, string given on the left side\\.$#" + message: '#^Only booleans are allowed in &&, string given on the left side\.$#' + identifier: booleanAnd.leftNotBoolean count: 2 path: tests/end-to-end/TestBase.php - - message: "#^Only booleans are allowed in a negated boolean, int given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, int given\.$#' + identifier: booleanNot.exprNotBoolean count: 2 path: tests/end-to-end/TestBase.php - - message: "#^Only booleans are allowed in a negated boolean, string\\|null given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, string\|null given\.$#' + identifier: booleanNot.exprNotBoolean count: 1 path: tests/end-to-end/TestBase.php - - message: "#^Only booleans are allowed in an elseif condition, string\\|false given\\.$#" + message: '#^Only booleans are allowed in an elseif condition, string\|false given\.$#' + identifier: elseif.condNotBoolean count: 1 path: tests/end-to-end/TestBase.php - - message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" + message: '#^Only booleans are allowed in an if condition, string\|false given\.$#' + identifier: if.condNotBoolean count: 2 path: tests/end-to-end/TestBase.php - - message: "#^Parameter \\#1 \\$by of method Facebook\\\\WebDriver\\\\Remote\\\\RemoteWebDriver\\:\\:findElement\\(\\) expects Facebook\\\\WebDriver\\\\WebDriverBy, mixed given\\.$#" + message: '#^Parameter \#1 \$by of method Facebook\\WebDriver\\Remote\\RemoteWebDriver\:\:findElement\(\) expects Facebook\\WebDriver\\WebDriverBy, mixed given\.$#' + identifier: argument.type count: 1 path: tests/end-to-end/TestBase.php - - message: "#^Parameter \\#1 \\$by of static method Facebook\\\\WebDriver\\\\WebDriverExpectedCondition\\:\\:presenceOfElementLocated\\(\\) expects Facebook\\\\WebDriver\\\\WebDriverBy, mixed given\\.$#" + message: '#^Parameter \#1 \$by of static method Facebook\\WebDriver\\WebDriverExpectedCondition\:\:presenceOfElementLocated\(\) expects Facebook\\WebDriver\\WebDriverBy, mixed given\.$#' + identifier: argument.type count: 2 path: tests/end-to-end/TestBase.php - - message: "#^Parameter \\#1 \\$by of static method Facebook\\\\WebDriver\\\\WebDriverExpectedCondition\\:\\:visibilityOfElementLocated\\(\\) expects Facebook\\\\WebDriver\\\\WebDriverBy, mixed given\\.$#" + message: '#^Parameter \#1 \$by of static method Facebook\\WebDriver\\WebDriverExpectedCondition\:\:visibilityOfElementLocated\(\) expects Facebook\\WebDriver\\WebDriverBy, mixed given\.$#' + identifier: argument.type count: 1 path: tests/end-to-end/TestBase.php - - message: "#^Parameter \\#1 \\$handle of function curl_errno expects CurlHandle, \\(CurlHandle\\|false\\) given\\.$#" + message: '#^Parameter \#1 \$handle of function curl_errno expects CurlHandle, \(CurlHandle\|false\) given\.$#' + identifier: argument.type count: 2 path: tests/end-to-end/TestBase.php - - message: "#^Parameter \\#1 \\$handle of function curl_error expects CurlHandle, \\(CurlHandle\\|false\\) given\\.$#" + message: '#^Parameter \#1 \$handle of function curl_error expects CurlHandle, \(CurlHandle\|false\) given\.$#' + identifier: argument.type count: 3 path: tests/end-to-end/TestBase.php - - message: "#^Parameter \\#1 \\$handle of function curl_exec expects CurlHandle, \\(CurlHandle\\|false\\) given\\.$#" + message: '#^Parameter \#1 \$handle of function curl_exec expects CurlHandle, \(CurlHandle\|false\) given\.$#' + identifier: argument.type count: 2 path: tests/end-to-end/TestBase.php - - message: "#^Parameter \\#1 \\$handle of function curl_setopt expects CurlHandle, \\(CurlHandle\\|false\\) given\\.$#" + message: '#^Parameter \#1 \$handle of function curl_setopt expects CurlHandle, \(CurlHandle\|false\) given\.$#' + identifier: argument.type count: 9 path: tests/end-to-end/TestBase.php - - message: "#^Parameter \\#1 \\$handle of method Facebook\\\\WebDriver\\\\Remote\\\\RemoteTargetLocator\\:\\:window\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$handle of method Facebook\\WebDriver\\Remote\\RemoteTargetLocator\:\:window\(\) expects string, mixed given\.$#' + identifier: argument.type count: 3 path: tests/end-to-end/TestBase.php - - message: "#^Property PhpMyAdmin\\\\Tests\\\\Selenium\\\\TestBase\\:\\:\\$sqlWindowHandle \\(string\\|null\\) does not accept mixed\\.$#" + message: '#^Parameter \#3 \$value of function curl_setopt expects array\|string, string\|false given\.$#' + identifier: argument.type count: 1 path: tests/end-to-end/TestBase.php - - message: "#^Strict comparison using \\=\\=\\= between Facebook\\\\WebDriver\\\\Remote\\\\RemoteWebDriver and null will always evaluate to false\\.$#" + message: '#^Parameter \#3 \$value of function curl_setopt expects bool, int given\.$#' + identifier: argument.type + count: 2 + path: tests/end-to-end/TestBase.php + + - + message: '#^Parameter \#3 \$value of function curl_setopt expects non\-empty\-string, string given\.$#' + identifier: argument.type + count: 2 + path: tests/end-to-end/TestBase.php + + - + message: '#^Property PhpMyAdmin\\Tests\\Selenium\\TestBase\:\:\$sqlWindowHandle \(string\|null\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: tests/end-to-end/TestBase.php - - message: "#^Variable static method call on Facebook\\\\WebDriver\\\\WebDriverBy\\.$#" + message: '#^Strict comparison using \=\=\= between Facebook\\WebDriver\\Remote\\RemoteWebDriver and null will always evaluate to false\.$#' + identifier: identical.alwaysFalse + count: 1 + path: tests/end-to-end/TestBase.php + + - + message: '#^Variable static method call on Facebook\\WebDriver\\WebDriverBy\.$#' + identifier: staticMethod.dynamicName count: 4 path: tests/end-to-end/TestBase.php - - message: "#^Cannot access offset 'Servers' on mixed\\.$#" + message: '#^Cannot access offset ''Servers'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 5 path: tests/test_data/config.inc.php - - message: "#^Cannot access offset 'auth_type' on mixed\\.$#" + message: '#^Cannot access offset ''auth_type'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/test_data/config.inc.php - - message: "#^Cannot access offset 'host' on mixed\\.$#" + message: '#^Cannot access offset ''host'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/test_data/config.inc.php - - message: "#^Cannot access offset 'port' on mixed\\.$#" + message: '#^Cannot access offset ''port'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/test_data/config.inc.php - - message: "#^Cannot access offset 'socket' on mixed\\.$#" + message: '#^Cannot access offset ''socket'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/test_data/config.inc.php - - message: "#^Cannot access offset 'verbose' on mixed\\.$#" + message: '#^Cannot access offset ''verbose'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/test_data/config.inc.php - - message: "#^Cannot access offset 1 on mixed\\.$#" + message: '#^Cannot access offset 1 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 5 path: tests/test_data/config.inc.php - - message: "#^Implicit array creation is not allowed \\- variable \\$cfg might not exist\\.$#" + message: '#^Implicit array creation is not allowed \- variable \$cfg might not exist\.$#' + identifier: variable.implicitArray count: 1 path: tests/test_data/config.inc.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/AbstractTestCase.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Advisory/AdvisorTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'formula' and array\\{id\\: non\\-empty\\-string, name\\: string, precondition\\?\\: non\\-empty\\-string, formula\\: non\\-empty\\-string, test\\: non\\-empty\\-string, issue\\: string, recommendation\\: string, justification\\: string, \\.\\.\\.\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''formula'' and array\{id\: non\-empty\-string, name\: string, precondition\?\: non\-empty\-string, formula\: non\-empty\-string, test\: non\-empty\-string, issue\: string, recommendation\: string, justification\: string, \.\.\.\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/Advisory/RulesTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'id' and array\\{id\\: non\\-empty\\-string, name\\: string, precondition\\?\\: non\\-empty\\-string, formula\\: non\\-empty\\-string, test\\: non\\-empty\\-string, issue\\: string, recommendation\\: string, justification\\: string, \\.\\.\\.\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''id'' and array\{id\: non\-empty\-string, name\: string, precondition\?\: non\-empty\-string, formula\: non\-empty\-string, test\: non\-empty\-string, issue\: string, recommendation\: string, justification\: string, \.\.\.\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/Advisory/RulesTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'issue' and array\\{id\\: non\\-empty\\-string, name\\: string, precondition\\?\\: non\\-empty\\-string, formula\\: non\\-empty\\-string, test\\: non\\-empty\\-string, issue\\: string, recommendation\\: string, justification\\: string, \\.\\.\\.\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''issue'' and array\{id\: non\-empty\-string, name\: string, precondition\?\: non\-empty\-string, formula\: non\-empty\-string, test\: non\-empty\-string, issue\: string, recommendation\: string, justification\: string, \.\.\.\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/Advisory/RulesTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'justification' and array\\{id\\: non\\-empty\\-string, name\\: string, precondition\\?\\: non\\-empty\\-string, formula\\: non\\-empty\\-string, test\\: non\\-empty\\-string, issue\\: string, recommendation\\: string, justification\\: string, \\.\\.\\.\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''justification'' and array\{id\: non\-empty\-string, name\: string, precondition\?\: non\-empty\-string, formula\: non\-empty\-string, test\: non\-empty\-string, issue\: string, recommendation\: string, justification\: string, \.\.\.\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/Advisory/RulesTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'name' and array\\{id\\: non\\-empty\\-string, name\\: string, precondition\\?\\: non\\-empty\\-string, formula\\: non\\-empty\\-string, test\\: non\\-empty\\-string, issue\\: string, recommendation\\: string, justification\\: string, \\.\\.\\.\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''name'' and array\{id\: non\-empty\-string, name\: string, precondition\?\: non\-empty\-string, formula\: non\-empty\-string, test\: non\-empty\-string, issue\: string, recommendation\: string, justification\: string, \.\.\.\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/Advisory/RulesTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'recommendation' and array\\{id\\: non\\-empty\\-string, name\\: string, precondition\\?\\: non\\-empty\\-string, formula\\: non\\-empty\\-string, test\\: non\\-empty\\-string, issue\\: string, recommendation\\: string, justification\\: string, \\.\\.\\.\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''recommendation'' and array\{id\: non\-empty\-string, name\: string, precondition\?\: non\-empty\-string, formula\: non\-empty\-string, test\: non\-empty\-string, issue\: string, recommendation\: string, justification\: string, \.\.\.\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/Advisory/RulesTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'test' and array\\{id\\: non\\-empty\\-string, name\\: string, precondition\\?\\: non\\-empty\\-string, formula\\: non\\-empty\\-string, test\\: non\\-empty\\-string, issue\\: string, recommendation\\: string, justification\\: string, \\.\\.\\.\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''test'' and array\{id\: non\-empty\-string, name\: string, precondition\?\: non\-empty\-string, formula\: non\-empty\-string, test\: non\-empty\-string, issue\: string, recommendation\: string, justification\: string, \.\.\.\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/Advisory/RulesTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 3 path: tests/unit/BookmarkTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 3 path: tests/unit/BookmarkTest.php - - message: "#^Parameter \\#2 \\$haystack of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$haystack of static method PHPUnit\\Framework\\Assert\:\:assertStringContainsString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 3 path: tests/unit/BrowseForeignersTest.php - - message: "#^Parameter \\#2 \\$string of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringEndsWith\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$string of static method PHPUnit\\Framework\\Assert\:\:assertStringEndsWith\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: tests/unit/BrowseForeignersTest.php - - message: "#^Parameter \\#2 \\$string of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringStartsWith\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$string of static method PHPUnit\\Framework\\Assert\:\:assertStringStartsWith\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: tests/unit/BrowseForeignersTest.php - - message: "#^Missing call to parent\\:\\:setUp\\(\\) method\\.$#" + message: '#^Missing call to parent\:\:setUp\(\) method\.$#' + identifier: phpunit.callParent count: 1 path: tests/unit/CacheTest.php - - message: "#^Class PhpMyAdmin\\\\Tests\\\\Command\\\\SetVersionCommandTest has an uninitialized property \\$command\\. Give it default value or assign it in the constructor\\.$#" + message: '#^Class PhpMyAdmin\\Tests\\Command\\SetVersionCommandTest has an uninitialized property \$command\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized count: 1 path: tests/unit/Command/SetVersionCommandTest.php - - message: "#^Missing call to parent\\:\\:setUp\\(\\) method\\.$#" + message: '#^Missing call to parent\:\:setUp\(\) method\.$#' + identifier: phpunit.callParent count: 1 path: tests/unit/Command/SetVersionCommandTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Command/TwigLintCommandTest.php - - message: "#^Parameter \\#1 \\$array of function sort expects TArray of array\\, mixed given\\.$#" + message: '#^Parameter \#1 \$array of function sort expects TArray of array\, mixed given\.$#' + identifier: argument.type count: 2 path: tests/unit/Command/TwigLintCommandTest.php - - message: "#^Cannot access offset 'port' on mixed\\.$#" + message: '#^Parameter \#1 \$array of function sort expects an array of values castable to string, mixed given\.$#' + identifier: argument.type + count: 1 + path: tests/unit/Command/TwigLintCommandTest.php + + - + message: '#^Binary operation "\." between mixed and ''\.abc'' results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: tests/unit/Config/ConfigFileTest.php - - message: "#^Argument of an invalid type array\\\\|bool\\|int\\<0, max\\>\\|string\\>\\|bool\\|int\\<1, max\\>\\|string\\|null supplied for foreach, only iterables are supported\\.$#" + message: '#^Binary operation "\." between mixed and ''suffix'' results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: tests/unit/Config/ConfigFileTest.php + + - + message: '#^Cannot access offset ''port'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: tests/unit/Config/ConfigFileTest.php + + - + message: '#^Argument of an invalid type array\\|bool\|int\<0, max\>\|string\>\|bool\|int\<1, max\>\|string\|null supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: tests/unit/Config/DescriptionTest.php - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" + message: '#^Call to function in_array\(\) requires parameter \#3 to be set\.$#' + identifier: function.strict count: 1 path: tests/unit/Config/DescriptionTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertIsArray\\(\\) with array\\, non\\-empty\\-array\\<'AllowDeny'\\|'AllowNoPassword'\\|'AllowRoot'\\|'auth_http_realm'\\|'auth_type'\\|'bookmarktable'\\|'central_columns'\\|'column_info'\\|'compress'\\|'control_compress'\\|'control_hide…'\\|'control_socket'\\|'control_ssl'\\|'control_ssl_ca'\\|'control_ssl_ca_path'\\|'control_ssl_cert'\\|'control_ssl_ciphers'\\|'control_ssl_key'\\|'control_ssl_verify'\\|'controlhost'\\|'controlpass'\\|'controlport'\\|'controluser'\\|'designer_settings'\\|'DisableIS'\\|'export_templates'\\|'favorite'\\|'hide_db'\\|'history'\\|'host'\\|'LogoutURL'\\|'MaxTableUiprefs'\\|'navigationhiding'\\|'only_db'\\|'password'\\|'pdf_pages'\\|'pmadb'\\|'port'\\|'recent'\\|'relation'\\|'savedsearches'\\|'SessionTimeZone'\\|'SignonCookieParams'\\|'SignonScript'\\|'SignonSession'\\|'SignonURL'\\|'socket'\\|'ssl'\\|'ssl_ca'\\|'ssl_ca_path'\\|'ssl_cert'\\|'ssl_ciphers'\\|'ssl_key'\\|'ssl_verify'\\|'table_coords'\\|'table_info'\\|'table_uiprefs'\\|'tracking'\\|'user'\\|'userconfig'\\|'usergroups'\\|'users'\\|'verbose', array\\\\|bool\\|int\\<0, max\\>\\|string\\>\\|bool\\|int\\<1, max\\>\\|string\\|null\\>\\> will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertIsArray\(\) with array\, non\-empty\-array\<''AllowDeny''\|''AllowNoPassword''\|''AllowRoot''\|''auth_http_realm''\|''auth_type''\|''bookmarktable''\|''central_columns''\|''column_info''\|''compress''\|''control_compress''\|''control_hide…''\|''control_socket''\|''control_ssl''\|''control_ssl_ca''\|''control_ssl_ca_path''\|''control_ssl_cert''\|''control_ssl_ciphers''\|''control_ssl_key''\|''control_ssl_verify''\|''controlhost''\|''controlpass''\|''controlport''\|''controluser''\|''designer_settings''\|''DisableIS''\|''export_templates''\|''favorite''\|''hide_db''\|''history''\|''host''\|''LogoutURL''\|''MaxTableUiprefs''\|''navigationhiding''\|''only_db''\|''password''\|''pdf_pages''\|''pmadb''\|''port''\|''recent''\|''relation''\|''savedsearches''\|''SessionTimeZone''\|''SignonCookieParams''\|''SignonScript''\|''SignonSession''\|''SignonURL''\|''socket''\|''ssl''\|''ssl_ca''\|''ssl_ca_path''\|''ssl_cert''\|''ssl_ciphers''\|''ssl_key''\|''ssl_verify''\|''table_coords''\|''table_info''\|''table_uiprefs''\|''tracking''\|''user''\|''userconfig''\|''usergroups''\|''users''\|''verbose'', array\\|bool\|int\<0, max\>\|string\>\|bool\|int\<1, max\>\|string\|null\>\> will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/Config/DescriptionTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertIsArray\\(\\) with non\\-empty\\-array\\<'AllowDeny'\\|'AllowNoPassword'\\|'AllowRoot'\\|'auth_http_realm'\\|'auth_type'\\|'bookmarktable'\\|'central_columns'\\|'column_info'\\|'compress'\\|'control_compress'\\|'control_hide…'\\|'control_socket'\\|'control_ssl'\\|'control_ssl_ca'\\|'control_ssl_ca_path'\\|'control_ssl_cert'\\|'control_ssl_ciphers'\\|'control_ssl_key'\\|'control_ssl_verify'\\|'controlhost'\\|'controlpass'\\|'controlport'\\|'controluser'\\|'designer_settings'\\|'DisableIS'\\|'export_templates'\\|'favorite'\\|'hide_db'\\|'history'\\|'host'\\|'LogoutURL'\\|'MaxTableUiprefs'\\|'navigationhiding'\\|'only_db'\\|'password'\\|'pdf_pages'\\|'pmadb'\\|'port'\\|'recent'\\|'relation'\\|'savedsearches'\\|'SessionTimeZone'\\|'SignonCookieParams'\\|'SignonScript'\\|'SignonSession'\\|'SignonURL'\\|'socket'\\|'ssl'\\|'ssl_ca'\\|'ssl_ca_path'\\|'ssl_cert'\\|'ssl_ciphers'\\|'ssl_key'\\|'ssl_verify'\\|'table_coords'\\|'table_info'\\|'table_uiprefs'\\|'tracking'\\|'user'\\|'userconfig'\\|'usergroups'\\|'users'\\|'verbose', array\\\\|bool\\|int\\<0, max\\>\\|string\\>\\|bool\\|int\\<1, max\\>\\|string\\|null\\> will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertIsArray\(\) with non\-empty\-array\<''AllowDeny''\|''AllowNoPassword''\|''AllowRoot''\|''auth_http_realm''\|''auth_type''\|''bookmarktable''\|''central_columns''\|''column_info''\|''compress''\|''control_compress''\|''control_hide…''\|''control_socket''\|''control_ssl''\|''control_ssl_ca''\|''control_ssl_ca_path''\|''control_ssl_cert''\|''control_ssl_ciphers''\|''control_ssl_key''\|''control_ssl_verify''\|''controlhost''\|''controlpass''\|''controlport''\|''controluser''\|''designer_settings''\|''DisableIS''\|''export_templates''\|''favorite''\|''hide_db''\|''history''\|''host''\|''LogoutURL''\|''MaxTableUiprefs''\|''navigationhiding''\|''only_db''\|''password''\|''pdf_pages''\|''pmadb''\|''port''\|''recent''\|''relation''\|''savedsearches''\|''SessionTimeZone''\|''SignonCookieParams''\|''SignonScript''\|''SignonSession''\|''SignonURL''\|''socket''\|''ssl''\|''ssl_ca''\|''ssl_ca_path''\|''ssl_cert''\|''ssl_ciphers''\|''ssl_key''\|''ssl_verify''\|''table_coords''\|''table_info''\|''table_uiprefs''\|''tracking''\|''user''\|''userconfig''\|''usergroups''\|''users''\|''verbose'', array\\|bool\|int\<0, max\>\|string\>\|bool\|int\<1, max\>\|string\|null\> will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/Config/DescriptionTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNotNull\\(\\) with array\\\\|bool\\|int\\<0, max\\>\\|string will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertNotNull\(\) with array\\|bool\|int\<0, max\>\|string will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/Config/DescriptionTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNotNull\\(\\) with string will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertNotNull\(\) with string will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 3 path: tests/unit/Config/DescriptionTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Config/FormDisplayTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertIsString\\(\\) with '' will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertIsString\(\) with '''' will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/Config/FormDisplayTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\) with ''\\|'; Compressed export…'\\|'Compressed export…'\\|'Compressed import…' and null will always evaluate to false\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertSame\(\) with ''''\|''; Compressed export…''\|''Compressed export…''\|''Compressed import…'' and null will always evaluate to false\.$#' + identifier: staticMethod.impossibleType count: 1 path: tests/unit/Config/FormDisplayTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertTrue\\(\\) with null will always evaluate to false\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertTrue\(\) with null will always evaluate to false\.$#' + identifier: staticMethod.impossibleType count: 1 path: tests/unit/Config/FormDisplayTest.php - - message: "#^Cannot access offset 'pma_testform' on mixed\\.$#" + message: '#^Cannot access offset ''pma_testform'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Config/FormDisplayTest.php - - message: "#^Offset 1 does not exist on array\\{0\\?\\: string, 1\\?\\: numeric\\-string\\}\\.$#" + message: '#^Offset 1 might not exist on array\{0\?\: string, 1\?\: numeric\-string\}\.$#' + identifier: offsetAccess.notFound count: 1 path: tests/unit/Config/FormTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Config/Forms/FormListTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'PhpMyAdmin\\\\\\\\Config\\\\\\\\Forms\\\\\\\\BaseFormList' and PhpMyAdmin\\\\Config\\\\Forms\\\\BaseFormList will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''PhpMyAdmin\\\\Config\\\\Forms\\\\BaseFormList'' and PhpMyAdmin\\Config\\Forms\\BaseFormList will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/Config/Forms/FormListTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNotNull\\(\\) with string will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertNotNull\(\) with string will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/Config/Forms/FormListTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Config/PageSettingsTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 3 path: tests/unit/Config/PageSettingsTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Config/ServerConfigChecksTest.php - - message: "#^Cannot access offset 'AllowArbitraryServer' on mixed\\.$#" + message: '#^Cannot access offset ''AllowArbitraryServer'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: tests/unit/Config/ServerConfigChecksTest.php - - message: "#^Cannot access offset 'BZipDump' on mixed\\.$#" + message: '#^Cannot access offset ''BZipDump'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: tests/unit/Config/ServerConfigChecksTest.php - - message: "#^Cannot access offset 'GZipDump' on mixed\\.$#" + message: '#^Cannot access offset ''GZipDump'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: tests/unit/Config/ServerConfigChecksTest.php - - message: "#^Cannot access offset 'LoginCookieStore' on mixed\\.$#" + message: '#^Cannot access offset ''LoginCookieStore'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: tests/unit/Config/ServerConfigChecksTest.php - - message: "#^Cannot access offset 'LoginCookieValidity' on mixed\\.$#" + message: '#^Cannot access offset ''LoginCookieValidity'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: tests/unit/Config/ServerConfigChecksTest.php - - message: "#^Cannot access offset 'SaveDir' on mixed\\.$#" + message: '#^Cannot access offset ''SaveDir'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: tests/unit/Config/ServerConfigChecksTest.php - - message: "#^Cannot access offset 'Servers' on mixed\\.$#" + message: '#^Cannot access offset ''Servers'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: tests/unit/Config/ServerConfigChecksTest.php - - message: "#^Cannot access offset 'TempDir' on mixed\\.$#" + message: '#^Cannot access offset ''TempDir'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: tests/unit/Config/ServerConfigChecksTest.php - - message: "#^Cannot access offset 'ZipDump' on mixed\\.$#" + message: '#^Cannot access offset ''ZipDump'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: tests/unit/Config/ServerConfigChecksTest.php - - message: "#^Cannot access offset 'blowfish_secret' on mixed\\.$#" + message: '#^Cannot access offset ''blowfish_secret'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 6 path: tests/unit/Config/ServerConfigChecksTest.php - - message: "#^Cannot access offset 'error' on mixed\\.$#" + message: '#^Cannot access offset ''error'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Config/ServerConfigChecksTest.php - - message: "#^Cannot access offset 'notice' on mixed\\.$#" + message: '#^Cannot access offset ''notice'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Config/ServerConfigChecksTest.php - - message: "#^Parameter \\#1 \\$array of function array_keys expects array, mixed given\\.$#" + message: '#^PHPDoc tag @var with type mixed is not subtype of native type mixed\.$#' + identifier: varTag.nativeType + count: 3 + path: tests/unit/Config/ServerConfigChecksTest.php + + - + message: '#^Parameter \#1 \$array of function array_keys expects array, mixed given\.$#' + identifier: argument.type count: 2 path: tests/unit/Config/ServerConfigChecksTest.php - - message: "#^Property PhpMyAdmin\\\\Tests\\\\Config\\\\ServerConfigChecksTest\\:\\:\\$sessionID \\(string\\) does not accept mixed\\.$#" + message: '#^Property PhpMyAdmin\\Tests\\Config\\ServerConfigChecksTest\:\:\$sessionID \(string\) does not accept mixed\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/Config/ServerConfigChecksTest.php - - message: "#^Variable property access on PhpMyAdmin\\\\Config\\\\Settings\\\\Schema\\.$#" + message: '#^Variable property access on PhpMyAdmin\\Config\\Settings\\Schema\.$#' + identifier: property.dynamicName count: 1 path: tests/unit/Config/Settings/SchemaTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'PhpMyAdmin\\\\\\\\Config\\\\\\\\Settings\\\\\\\\Console' and PhpMyAdmin\\\\Config\\\\Settings\\\\Console will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''PhpMyAdmin\\\\Config\\\\Settings\\\\Console'' and PhpMyAdmin\\Config\\Settings\\Console will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/Config/SettingsTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'PhpMyAdmin\\\\\\\\Config\\\\\\\\Settings\\\\\\\\Export' and PhpMyAdmin\\\\Config\\\\Settings\\\\Export will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''PhpMyAdmin\\\\Config\\\\Settings\\\\Export'' and PhpMyAdmin\\Config\\Settings\\Export will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/Config/SettingsTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'PhpMyAdmin\\\\\\\\Config\\\\\\\\Settings\\\\\\\\Import' and PhpMyAdmin\\\\Config\\\\Settings\\\\Import will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''PhpMyAdmin\\\\Config\\\\Settings\\\\Import'' and PhpMyAdmin\\Config\\Settings\\Import will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/Config/SettingsTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'PhpMyAdmin\\\\\\\\Config\\\\\\\\Settings\\\\\\\\Schema' and PhpMyAdmin\\\\Config\\\\Settings\\\\Schema will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''PhpMyAdmin\\\\Config\\\\Settings\\\\Schema'' and PhpMyAdmin\\Config\\Settings\\Schema will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/Config/SettingsTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'PhpMyAdmin\\\\\\\\Config\\\\\\\\Settings\\\\\\\\SqlQueryBox' and PhpMyAdmin\\\\Config\\\\Settings\\\\SqlQueryBox will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''PhpMyAdmin\\\\Config\\\\Settings\\\\SqlQueryBox'' and PhpMyAdmin\\Config\\Settings\\SqlQueryBox will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/Config/SettingsTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'PhpMyAdmin\\\\\\\\Config\\\\\\\\Settings\\\\\\\\Transformations' and PhpMyAdmin\\\\Config\\\\Settings\\\\Transformations will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''PhpMyAdmin\\\\Config\\\\Settings\\\\Transformations'' and PhpMyAdmin\\Config\\Settings\\Transformations will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/Config/SettingsTest.php - - message: "#^Variable property access on PhpMyAdmin\\\\Config\\\\Settings\\.$#" + message: '#^Variable property access on PhpMyAdmin\\Config\\Settings\.$#' + identifier: property.dynamicName count: 1 path: tests/unit/Config/SettingsTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 15 path: tests/unit/ConfigStorage/RelationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with arguments 'relation', array\\{version\\: string, user\\: string\\|null, db\\: string\\|null, bookmark\\: string\\|null, central_columns\\: string\\|null, column_info\\: string\\|null, designer_settings\\: string\\|null, export_templates\\: string\\|null, \\.\\.\\.\\} and 'The cache is…' will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with arguments ''relation'', array\{version\: string, user\: string\|null, db\: string\|null, bookmark\: string\|null, central_columns\: string\|null, column_info\: string\|null, designer_settings\: string\|null, export_templates\: string\|null, \.\.\.\} and ''The cache is…'' will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 3 path: tests/unit/ConfigStorage/RelationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\) with '' and '' will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertSame\(\) with '''' and '''' will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 2 path: tests/unit/ConfigStorage/RelationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\) with 'db_pma' and 'db_pma' will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertSame\(\) with ''db_pma'' and ''db_pma'' will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/ConfigStorage/RelationTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept array\\{\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept array\{\}\.$#' + identifier: assign.propertyType count: 6 path: tests/unit/ConfigStorage/RelationTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/ConfigTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'Server' and array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\} will always evaluate to false\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''Server'' and array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\} will always evaluate to false\.$#' + identifier: staticMethod.impossibleType count: 1 path: tests/unit/ConfigTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertIsArray\\(\\) with array\\, array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\> will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertIsArray\(\) with array\, array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\> will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/ConfigTest.php - - message: "#^Only booleans are allowed in &&, int\\<0, 2\\> given on the right side\\.$#" + message: '#^Only booleans are allowed in &&, int\<0, 2\> given on the right side\.$#' + identifier: booleanAnd.rightNotBoolean count: 2 path: tests/unit/ConfigTest.php - - message: "#^Only booleans are allowed in an elseif condition, string\\|false given\\.$#" + message: '#^Only booleans are allowed in an elseif condition, string\|false given\.$#' + identifier: elseif.condNotBoolean count: 3 path: tests/unit/ConfigTest.php - - message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" + message: '#^Only booleans are allowed in an if condition, string\|false given\.$#' + identifier: if.condNotBoolean count: 1 path: tests/unit/ConfigTest.php - - message: "#^Parameter \\#1 \\$haystack of function str_contains expects string, array\\ given\\.$#" + message: '#^Parameter \#1 \$haystack of function str_contains expects string, array\ given\.$#' + identifier: argument.type count: 1 path: tests/unit/ConfigTest.php - - message: "#^Parameter \\#1 \\$haystack of function str_contains expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$haystack of function str_contains expects string, mixed given\.$#' + identifier: argument.type count: 1 path: tests/unit/ConfigTest.php - - message: "#^Parameter \\#1 \\$source of method PhpMyAdmin\\\\Config\\:\\:loadAndCheck\\(\\) expects string\\|null, mixed given\\.$#" + message: '#^Parameter \#1 \$server of class PhpMyAdmin\\Config\\Settings\\Server constructor expects array\, array\ given\.$#' + identifier: argument.type + count: 2 + path: tests/unit/ConfigTest.php + + - + message: '#^Parameter \#1 \$source of method PhpMyAdmin\\Config\:\:loadAndCheck\(\) expects string\|null, mixed given\.$#' + identifier: argument.type count: 1 path: tests/unit/ConfigTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/ConsoleTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/BrowseForeignersControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/CheckRelationsControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Controllers/Console/Bookmark/AddControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Console/Bookmark/RefreshControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Controllers/Database/EventsControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Database/PrivilegesControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Database/PrivilegesControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Controllers/Database/RoutinesControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Database/Structure/RealRowCountControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 3 path: tests/unit/Controllers/Database/StructureControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 5 path: tests/unit/Controllers/Database/StructureControllerTest.php - - message: "#^Cannot access offset 'COUNTED' on mixed\\.$#" + message: '#^Cannot access offset ''COUNTED'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: tests/unit/Controllers/Database/StructureControllerTest.php - - message: "#^Cannot access offset 'Data_free' on mixed\\.$#" + message: '#^Cannot access offset ''Data_free'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Controllers/Database/StructureControllerTest.php - - message: "#^Cannot access offset 'ENGINE' on mixed\\.$#" + message: '#^Cannot access offset ''ENGINE'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: tests/unit/Controllers/Database/StructureControllerTest.php - - message: "#^Cannot access offset 'Rows' on mixed\\.$#" + message: '#^Cannot access offset ''Rows'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Controllers/Database/StructureControllerTest.php - - message: "#^Cannot access offset 'TABLE_ROWS' on mixed\\.$#" + message: '#^Cannot access offset ''TABLE_ROWS'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Controllers/Database/StructureControllerTest.php - - message: "#^Cannot use array destructuring on mixed\\.$#" + message: '#^Cannot use array destructuring on mixed\.$#' + identifier: offsetAccess.nonArray count: 8 path: tests/unit/Controllers/Database/StructureControllerTest.php - - message: "#^Parameter \\#2 \\$array of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayNotHasKey\\(\\) expects array\\|ArrayAccess, mixed given\\.$#" + message: '#^Parameter \#2 \$array of static method PHPUnit\\Framework\\Assert\:\:assertArrayNotHasKey\(\) expects array\|ArrayAccess, mixed given\.$#' + identifier: argument.type count: 1 path: tests/unit/Controllers/Database/StructureControllerTest.php - - message: "#^Parameter \\#2 \\$haystack of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$haystack of static method PHPUnit\\Framework\\Assert\:\:assertStringContainsString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 4 path: tests/unit/Controllers/Database/StructureControllerTest.php - - message: "#^Parameter \\#2 \\$haystack of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringNotContainsString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$haystack of static method PHPUnit\\Framework\\Assert\:\:assertStringNotContainsString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: tests/unit/Controllers/Database/StructureControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Controllers/Export/ExportControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Export/Template/CreateControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Export/Template/DeleteControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Export/Template/LoadControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Export/Template/UpdateControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Controllers/Import/ImportControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Controllers/NavigationControllerTest.php - - message: "#^Parameter \\#2 \\$haystack of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$haystack of static method PHPUnit\\Framework\\Assert\:\:assertStringContainsString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 4 path: tests/unit/Controllers/NavigationControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Normalization/AddNewPrimaryControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Normalization/CreateNewColumnControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Operations/TableControllerTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/Controllers/Operations/TableControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/PhpInfoControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Server/BinlogControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Server/BinlogControllerTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/Controllers/Server/BinlogControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Server/CollationsControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Server/CollationsControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Server/Databases/CreateControllerTest.php - - message: "#^Parameter \\#2 \\$haystack of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$haystack of static method PHPUnit\\Framework\\Assert\:\:assertStringContainsString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 3 path: tests/unit/Controllers/Server/Databases/CreateControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Server/Databases/DestroyControllerTest.php - - message: "#^Parameter \\#2 \\$haystack of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$haystack of static method PHPUnit\\Framework\\Assert\:\:assertStringContainsString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: tests/unit/Controllers/Server/Databases/DestroyControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Controllers/Server/DatabasesControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Server/DatabasesControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Server/EnginesControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Server/EnginesControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Server/PluginsControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Controllers/Server/PrivilegesControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Server/ShowEngineControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Server/ShowEngineControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ - count: 1 - path: tests/unit/Controllers/Server/Status/AdvisorControllerTest.php - - - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: '#^@readonly property PhpMyAdmin\\Server\\Status\\Data\:\:\$dataLoaded is assigned outside of its declaring class\.$#' + identifier: property.readOnlyByPhpDocAssignOutOfClass count: 2 path: tests/unit/Controllers/Server/Status/AdvisorControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 1 + path: tests/unit/Controllers/Server/Status/AdvisorControllerTest.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 2 + path: tests/unit/Controllers/Server/Status/AdvisorControllerTest.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Server/Status/Monitor/GeneralLogControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Server/Status/Monitor/GeneralLogControllerTest.php - - message: "#^Cannot access offset 'numRows' on mixed\\.$#" + message: '#^Cannot access offset ''numRows'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Controllers/Server/Status/Monitor/GeneralLogControllerTest.php - - message: "#^Cannot access offset 'rows' on mixed\\.$#" + message: '#^Cannot access offset ''rows'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Controllers/Server/Status/Monitor/GeneralLogControllerTest.php - - message: "#^Cannot access offset 'sum' on mixed\\.$#" + message: '#^Cannot access offset ''sum'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Controllers/Server/Status/Monitor/GeneralLogControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Server/Status/Monitor/LogVarsControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Server/Status/Monitor/LogVarsControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Server/Status/Monitor/QueryAnalyzerControllerTest.php - - message: "#^Cannot access offset 'affectedRows' on mixed\\.$#" + message: '#^Cannot access offset ''affectedRows'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Controllers/Server/Status/Monitor/QueryAnalyzerControllerTest.php - - message: "#^Cannot access offset 'explain' on mixed\\.$#" + message: '#^Cannot access offset ''explain'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Controllers/Server/Status/Monitor/QueryAnalyzerControllerTest.php - - message: "#^Cannot access offset 'profiling' on mixed\\.$#" + message: '#^Cannot access offset ''profiling'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Controllers/Server/Status/Monitor/QueryAnalyzerControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Server/Status/Monitor/SlowLogControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Server/Status/Monitor/SlowLogControllerTest.php - - message: "#^Cannot access offset 'numRows' on mixed\\.$#" + message: '#^Cannot access offset ''numRows'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Controllers/Server/Status/Monitor/SlowLogControllerTest.php - - message: "#^Cannot access offset 'rows' on mixed\\.$#" + message: '#^Cannot access offset ''rows'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Controllers/Server/Status/Monitor/SlowLogControllerTest.php - - message: "#^Cannot access offset 'sum' on mixed\\.$#" + message: '#^Cannot access offset ''sum'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Controllers/Server/Status/Monitor/SlowLogControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Server/Status/MonitorControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Server/Status/MonitorControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Controllers/Server/Status/Processes/RefreshControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Controllers/Server/Status/Processes/RefreshControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Server/Status/ProcessesControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Server/Status/ProcessesControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^@readonly property PhpMyAdmin\\Server\\Status\\Data\:\:\$status is assigned outside of its declaring class\.$#' + identifier: property.readOnlyByPhpDocAssignOutOfClass count: 1 path: tests/unit/Controllers/Server/Status/QueriesControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: '#^@readonly property PhpMyAdmin\\Server\\Status\\Data\:\:\$usedQueries is assigned outside of its declaring class\.$#' + identifier: property.readOnlyByPhpDocAssignOutOfClass count: 1 path: tests/unit/Controllers/Server/Status/QueriesControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "/" between \(float\|int\) and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: tests/unit/Controllers/Server/Status/QueriesControllerTest.php + + - + message: '#^Binary operation "/" between 3600 and mixed results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: tests/unit/Controllers/Server/Status/QueriesControllerTest.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 1 + path: tests/unit/Controllers/Server/Status/QueriesControllerTest.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 1 + path: tests/unit/Controllers/Server/Status/QueriesControllerTest.php + + - + message: '#^@readonly property PhpMyAdmin\\Server\\Status\\Data\:\:\$status is assigned outside of its declaring class\.$#' + identifier: property.readOnlyByPhpDocAssignOutOfClass + count: 6 + path: tests/unit/Controllers/Server/Status/StatusControllerTest.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Controllers/Server/Status/StatusControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 3 path: tests/unit/Controllers/Server/Status/StatusControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Server/Status/VariablesControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Server/Status/VariablesControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Server/VariablesControllerTest.php - - message: "#^Cannot use array destructuring on mixed\\.$#" + message: '#^Cannot use array destructuring on mixed\.$#' + identifier: offsetAccess.nonArray count: 7 path: tests/unit/Controllers/Server/VariablesControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Controllers/Sql/EnumValuesControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Controllers/Sql/SetValuesControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Table/AddFieldControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Controllers/Table/ChangeControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Table/CreateControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Table/DeleteRowsControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Controllers/Table/DropColumnConfirmationControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Table/ExportControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Table/ImportControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Table/IndexRenameControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Table/IndexesControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Table/PrivilegesControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Table/PrivilegesControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Table/RelationControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 3 path: tests/unit/Controllers/Table/ReplaceControllerTest.php - - message: "#^PHPDoc tag @var for variable \\$result has no value type specified in iterable type array\\.$#" + message: '#^PHPDoc tag @var for variable \$result has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 2 path: tests/unit/Controllers/Table/ReplaceControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Table/SqlControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Table/Structure/ChangeControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 4 path: tests/unit/Controllers/Table/Structure/SpatialControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 4 path: tests/unit/Controllers/Table/Structure/UniqueControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Table/StructureControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Controllers/Table/TrackingControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Controllers/Table/ZoomSearchControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Controllers/ThemeSetControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Controllers/Triggers/IndexControllerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 6 path: tests/unit/CoreTest.php - - message: "#^Cannot access offset 'arr' on mixed\\.$#" + message: '#^Cannot access offset ''arr1'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 5 path: tests/unit/CoreTest.php - - message: "#^Cannot access offset 'arr1' on mixed\\.$#" - count: 5 - path: tests/unit/CoreTest.php - - - - message: "#^Cannot access offset 'int' on mixed\\.$#" + message: '#^Cannot access offset ''not_existing'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/CoreTest.php - - message: "#^Cannot access offset 'not_existing' on mixed\\.$#" - count: 1 - path: tests/unit/CoreTest.php - - - - message: "#^Cannot access offset 'sarr' on mixed\\.$#" - count: 14 - path: tests/unit/CoreTest.php - - - - message: "#^Cannot access offset 'str' on mixed\\.$#" - count: 1 - path: tests/unit/CoreTest.php - - - - message: "#^Cannot access offset 0 on mixed\\.$#" + message: '#^Cannot access offset 0 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 11 path: tests/unit/CoreTest.php - - message: "#^Cannot access offset 1 on mixed\\.$#" + message: '#^Cannot access offset 1 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 6 path: tests/unit/CoreTest.php - - message: "#^Cannot access offset 2 on mixed\\.$#" + message: '#^Cannot access offset 2 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: tests/unit/CoreTest.php - - message: "#^Parameter \\#2 \\$array of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayNotHasKey\\(\\) expects array\\|ArrayAccess, mixed given\\.$#" - count: 12 + message: '#^Parameter \#2 \$array of static method PHPUnit\\Framework\\Assert\:\:assertArrayNotHasKey\(\) expects array\|ArrayAccess, mixed given\.$#' + identifier: argument.type + count: 9 path: tests/unit/CoreTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/CreateAddFieldTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 4 path: tests/unit/Crypto/CryptoTest.php - - message: "#^Parameter \\#1 \\$string of function mb_strlen expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function mb_strlen expects string, mixed given\.$#' + identifier: argument.type count: 1 path: tests/unit/Crypto/CryptoTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Database/CentralColumnsTest.php - - message: "#^Parameter \\#1 \\$needle of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$needle of static method PHPUnit\\Framework\\Assert\:\:assertStringContainsString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: tests/unit/Database/CentralColumnsTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\.$#' + identifier: assign.propertyType count: 2 path: tests/unit/Database/CentralColumnsTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 4 path: tests/unit/Database/Designer/CommonTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 7 path: tests/unit/Database/Designer/CommonTest.php - - message: "#^Class PhpMyAdmin\\\\Tests\\\\Database\\\\Designer\\\\CommonTest has an uninitialized property \\$designerCommon\\. Give it default value or assign it in the constructor\\.$#" + message: '#^Class PhpMyAdmin\\Tests\\Database\\Designer\\CommonTest has an uninitialized property \$designerCommon\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized count: 1 path: tests/unit/Database/Designer/CommonTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Database/DesignerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 4 path: tests/unit/Database/DesignerTest.php - - message: "#^Class PhpMyAdmin\\\\Tests\\\\Database\\\\DesignerTest has an uninitialized property \\$designer\\. Give it default value or assign it in the constructor\\.$#" + message: '#^Class PhpMyAdmin\\Tests\\Database\\DesignerTest has an uninitialized property \$designer\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized count: 1 path: tests/unit/Database/DesignerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Database/EventsTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Database/EventsTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Database/RoutinesTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Database/RoutinesTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Database/SearchTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ - count: 7 - path: tests/unit/DatabaseInterfaceTest.php - - - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: '#^@readonly property PhpMyAdmin\\Config\\Settings\\Debug\:\:\$sql is assigned outside of its declaring class\.$#' + identifier: property.readOnlyByPhpDocAssignOutOfClass count: 2 path: tests/unit/DatabaseInterfaceTest.php - - message: "#^Parameter \\#2 \\$result of method PhpMyAdmin\\\\Tests\\\\Stubs\\\\DbiDummy\\:\\:addResult\\(\\) expects array\\\\>\\|bool, array\\\\>\\|false given\\.$#" + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 7 + path: tests/unit/DatabaseInterfaceTest.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 2 + path: tests/unit/DatabaseInterfaceTest.php + + - + message: '#^Parameter \#2 \$result of method PhpMyAdmin\\Tests\\Stubs\\DbiDummy\:\:addResult\(\) expects bool\|list\\>, array\\>\|false given\.$#' + identifier: argument.type count: 1 path: tests/unit/DatabaseInterfaceTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/DatabaseInterfaceTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Dbal/DbiDummyTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 10 path: tests/unit/Display/ResultsTest.php - - message: "#^Cannot access offset '2b7b3faf4b48255e478…' on mixed\\.$#" + message: '#^Cannot access offset ''2b7b3faf4b48255e47876f6d5bd2da35'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Display/ResultsTest.php - - message: "#^Cannot access offset '5ce1ef88afb4e13d3b8…' on mixed\\.$#" + message: '#^Cannot access offset ''5ce1ef88afb4e13d3b8c0a55c2c9657a'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Display/ResultsTest.php - - message: "#^Cannot access offset 'display_binary' on mixed\\.$#" + message: '#^Cannot access offset ''display_binary'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: tests/unit/Display/ResultsTest.php - - message: "#^Cannot access offset 'display_blob' on mixed\\.$#" + message: '#^Cannot access offset ''display_blob'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: tests/unit/Display/ResultsTest.php - - message: "#^Cannot access offset 'geoOption' on mixed\\.$#" + message: '#^Cannot access offset ''geoOption'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: tests/unit/Display/ResultsTest.php - - message: "#^Cannot access offset 'hide_transformation' on mixed\\.$#" + message: '#^Cannot access offset ''hide_transformation'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: tests/unit/Display/ResultsTest.php - - message: "#^Cannot access offset 'max_rows' on mixed\\.$#" + message: '#^Cannot access offset ''max_rows'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 6 path: tests/unit/Display/ResultsTest.php - - message: "#^Cannot access offset 'pftext' on mixed\\.$#" + message: '#^Cannot access offset ''pftext'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: tests/unit/Display/ResultsTest.php - - message: "#^Cannot access offset 'pos' on mixed\\.$#" + message: '#^Cannot access offset ''pos'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: tests/unit/Display/ResultsTest.php - - message: "#^Cannot access offset 'possible_as_geometry' on mixed\\.$#" + message: '#^Cannot access offset ''possible_as_geometry'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: tests/unit/Display/ResultsTest.php - - message: "#^Cannot access offset 'query' on mixed\\.$#" + message: '#^Cannot access offset ''query'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: tests/unit/Display/ResultsTest.php - - message: "#^Cannot access offset 'relational_display' on mixed\\.$#" + message: '#^Cannot access offset ''relational_display'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: tests/unit/Display/ResultsTest.php - - message: "#^Cannot access offset 'repeat_cells' on mixed\\.$#" + message: '#^Cannot access offset ''repeat_cells'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: tests/unit/Display/ResultsTest.php - - message: "#^Method PhpMyAdmin\\\\Tests\\\\Display\\\\ResultsTest\\:\\:dataProviderForTestGetDataCellForNonNumericColumns\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method PhpMyAdmin\\Tests\\Display\\ResultsTest\:\:dataProviderForTestGetDataCellForNonNumericColumns\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 3 path: tests/unit/Display/ResultsTest.php - - message: "#^Method PhpMyAdmin\\\\Tests\\\\Display\\\\ResultsTest\\:\\:dataProviderForTestHandleNonPrintableContents\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method PhpMyAdmin\\Tests\\Display\\ResultsTest\:\:dataProviderForTestHandleNonPrintableContents\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 2 path: tests/unit/Display/ResultsTest.php - - message: "#^Parameter \\#1 \\$string of function htmlspecialchars_decode expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$string of function htmlspecialchars_decode expects string, mixed given\.$#' + identifier: argument.type count: 1 path: tests/unit/Display/ResultsTest.php - - message: "#^Parameter \\#2 \\$haystack of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$haystack of static method PHPUnit\\Framework\\Assert\:\:assertStringContainsString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 4 path: tests/unit/Display/ResultsTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\.$#' + identifier: assign.propertyType count: 3 path: tests/unit/Display/ResultsTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/EncodingTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 4 path: tests/unit/Error/ErrorHandlerTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/Error/ErrorHandlerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 4 path: tests/unit/Error/ErrorReportTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Export/ExportTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Export/ExportTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Export/OptionsTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/Export/OptionsTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 3 path: tests/unit/FileListingTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^@readonly property PhpMyAdmin\\Config\\Settings\\Debug\:\:\$sql is assigned outside of its declaring class\.$#' + identifier: property.readOnlyByPhpDocAssignOutOfClass + count: 2 + path: tests/unit/FooterTest.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 5 path: tests/unit/FooterTest.php - - message: "#^Cannot access offset 'queries' on mixed\\.$#" + message: '#^Cannot access offset ''queries'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/FooterTest.php - - message: "#^Cannot access offset 'data_length' on mixed\\.$#" + message: '#^Cannot access offset ''data_length'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: tests/unit/Gis/Ds/PolygonTest.php - - message: "#^Parameter \\#1 \\$points of static method PhpMyAdmin\\\\Gis\\\\Ds\\\\Polygon\\:\\:fromXYArray\\(\\) expects non\\-empty\\-array\\, mixed given\\.$#" + message: '#^Parameter \#1 \$points of static method PhpMyAdmin\\Gis\\Ds\\Polygon\:\:fromXYArray\(\) expects non\-empty\-list\, mixed given\.$#' + identifier: argument.type count: 2 path: tests/unit/Gis/Ds/PolygonTest.php - - message: "#^Cannot access offset 'data_length' on mixed\\.$#" + message: '#^Cannot access offset ''data_length'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: tests/unit/Gis/GisMultiPolygonTest.php - - message: "#^Cannot access offset 0 on mixed\\.$#" + message: '#^Cannot access offset 0 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Gis/GisMultiPolygonTest.php - - message: "#^Cannot access offset 'data_length' on mixed\\.$#" + message: '#^Cannot access offset ''data_length'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Gis/GisPolygonTest.php - - message: "#^Cannot access offset 'y' on mixed\\.$#" + message: '#^Cannot access offset ''y'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Gis/GisPolygonTest.php - - message: "#^Cannot access offset 3 on mixed\\.$#" + message: '#^Cannot access offset 3 on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Gis/GisPolygonTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Parameter \#1 \$gitLocation of method PhpMyAdmin\\Git\:\:isGitRevision\(\) expects string\|null, mixed given\.$#' + identifier: argument.type + count: 1 + path: tests/unit/GitTest.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 4 path: tests/unit/HeaderTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/HeaderTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/HeaderTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 13 path: tests/unit/Html/GeneratorTest.php - - message: "#^Parameter \\#1 \\$urlPath of static method PhpMyAdmin\\\\Html\\\\Generator\\:\\:linkOrButton\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$urlPath of static method PhpMyAdmin\\Html\\Generator\:\:linkOrButton\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: tests/unit/Html/GeneratorTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept array\\{ssl\\: false, host\\: '127\\.0\\.0\\.1'\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept array\{ssl\: false, host\: ''127\.0\.0\.1''\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/Html/GeneratorTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept array\\{ssl\\: false, host\\: 'custom\\.host'\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept array\{ssl\: false, host\: ''custom\.host''\}\.$#' + identifier: assign.propertyType count: 2 path: tests/unit/Html/GeneratorTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept array\\{ssl\\: false, ssl_verify\\: true, host\\: 'custom\\.host'\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept array\{ssl\: false, ssl_verify\: true, host\: ''custom\.host''\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/Html/GeneratorTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept array\\{ssl\\: true, ssl_verify\\: false, host\\: 'custom\\.host'\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept array\{ssl\: true, ssl_verify\: false, host\: ''custom\.host''\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/Html/GeneratorTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept array\\{ssl\\: true, ssl_verify\\: true, host\\: 'custom\\.host'\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept array\{ssl\: true, ssl_verify\: true, host\: ''custom\.host''\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/Html/GeneratorTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept array\\{ssl\\: true, ssl_verify\\: true, ssl_ca\\: '/etc/ssl/ca\\.crt', host\\: 'custom\\.host'\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept array\{ssl\: true, ssl_verify\: true, ssl_ca\: ''/etc/ssl/ca\.crt'', host\: ''custom\.host''\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/Html/GeneratorTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/Html/GeneratorTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Html/MySQLDocumentationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertTrue\\(\\) with true will always evaluate to true\\.$#" + message: '#^Binary operation "\." between mixed and ''/'' results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: tests/unit/I18n/LanguageManagerTest.php + + - + message: '#^Binary operation "\." between mixed and ''/cs/LC_MESSAGES…'' results in an error\.$#' + identifier: binaryOp.invalid + count: 1 + path: tests/unit/I18n/LanguageManagerTest.php + + - + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertTrue\(\) with true will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/Import/AjaxTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Import/ImportTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/Import/ImportTest.php - - message: "#^Cannot access an offset on mixed\\.$#" + message: '#^Cannot access an offset on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: tests/unit/IndexTest.php - - message: "#^Parameter \\#1 \\$columns of method PhpMyAdmin\\\\Index\\:\\:addColumns\\(\\) expects array, mixed given\\.$#" + message: '#^Parameter \#1 \$columns of method PhpMyAdmin\\Index\:\:addColumns\(\) expects array\, mixed given\.$#' + identifier: argument.type count: 2 path: tests/unit/IndexTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 35 path: tests/unit/InsertEditTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/InsertEditTest.php - - message: "#^Cannot access offset 'foreign_db' on mixed\\.$#" + message: '#^Cannot access offset ''foreign_db'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: tests/unit/InsertEditTest.php - - message: "#^Cannot access offset 'isNeedToRecheck' on mixed\\.$#" - count: 3 - path: tests/unit/InsertEditTest.php - - - - message: "#^Cannot access offset 'relational_display' on mixed\\.$#" + message: '#^Cannot access offset ''relational_display'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/InsertEditTest.php - - message: "#^Cannot access offset 'truncatableFieldVal…' on mixed\\.$#" - count: 2 - path: tests/unit/InsertEditTest.php - - - - message: "#^Cannot cast bool\\|float\\|int\\|object to string\\.$#" + message: '#^Cannot cast bool\|float\|int\|object to string\.$#' + identifier: cast.string count: 1 path: tests/unit/InsertEditTest.php - - message: "#^Method PhpMyAdmin\\\\Tests\\\\InsertEditTest\\:\\:parseString\\(\\) should return string but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\Tests\\InsertEditTest\:\:parseString\(\) should return string but returns mixed\.$#' + identifier: return.type count: 1 path: tests/unit/InsertEditTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\.$#' + identifier: assign.propertyType count: 2 path: tests/unit/InsertEditTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/IpAllowDenyTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/ListDatabaseTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 3 path: tests/unit/Navigation/NavigationTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Navigation/NavigationTreeTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Navigation/Nodes/NodeDatabaseChildTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Navigation/Nodes/NodeDatabaseTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Navigation/Nodes/NodeTableTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 7 path: tests/unit/Navigation/Nodes/NodeTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept array\\<'AllowDeny'\\|'AllowNoPassword'\\|'AllowRoot'\\|'auth_http_realm'\\|'auth_type'\\|'bookmarktable'\\|'central_columns'\\|'column_info'\\|'compress'\\|'control_compress'\\|'control_hide…'\\|'control_socket'\\|'control_ssl'\\|'control_ssl_ca'\\|'control_ssl_ca_path'\\|'control_ssl_cert'\\|'control_ssl_ciphers'\\|'control_ssl_key'\\|'control_ssl_verify'\\|'controlhost'\\|'controlpass'\\|'controlport'\\|'controluser'\\|'designer_settings'\\|'DisableIS'\\|'export_templates'\\|'favorite'\\|'history'\\|'host'\\|'LogoutURL'\\|'MaxTableUiprefs'\\|'navigationhiding'\\|'only_db'\\|'password'\\|'pdf_pages'\\|'pmadb'\\|'port'\\|'recent'\\|'relation'\\|'savedsearches'\\|'SessionTimeZone'\\|'SignonCookieParams'\\|'SignonScript'\\|'SignonSession'\\|'SignonURL'\\|'socket'\\|'ssl'\\|'ssl_ca'\\|'ssl_ca_path'\\|'ssl_cert'\\|'ssl_ciphers'\\|'ssl_key'\\|'ssl_verify'\\|'table_coords'\\|'table_info'\\|'table_uiprefs'\\|'tracking'\\|'user'\\|'userconfig'\\|'usergroups'\\|'users'\\|'verbose', array\\\\|bool\\|int\\<0, max\\>\\|string\\>\\|bool\\|int\\<1, max\\>\\|string\\|null\\>\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept array\<''AllowDeny''\|''AllowNoPassword''\|''AllowRoot''\|''auth_http_realm''\|''auth_type''\|''bookmarktable''\|''central_columns''\|''column_info''\|''compress''\|''control_compress''\|''control_hide…''\|''control_socket''\|''control_ssl''\|''control_ssl_ca''\|''control_ssl_ca_path''\|''control_ssl_cert''\|''control_ssl_ciphers''\|''control_ssl_key''\|''control_ssl_verify''\|''controlhost''\|''controlpass''\|''controlport''\|''controluser''\|''designer_settings''\|''DisableIS''\|''export_templates''\|''favorite''\|''history''\|''host''\|''LogoutURL''\|''MaxTableUiprefs''\|''navigationhiding''\|''only_db''\|''password''\|''pdf_pages''\|''pmadb''\|''port''\|''recent''\|''relation''\|''savedsearches''\|''SessionTimeZone''\|''SignonCookieParams''\|''SignonScript''\|''SignonSession''\|''SignonURL''\|''socket''\|''ssl''\|''ssl_ca''\|''ssl_ca_path''\|''ssl_cert''\|''ssl_ciphers''\|''ssl_key''\|''ssl_verify''\|''table_coords''\|''table_info''\|''table_uiprefs''\|''tracking''\|''user''\|''userconfig''\|''usergroups''\|''users''\|''verbose'', array\\|bool\|int\<0, max\>\|string\>\|bool\|int\<1, max\>\|string\|null\>\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/Navigation/Nodes/NodeTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept array\\<'AllowDeny'\\|'AllowNoPassword'\\|'AllowRoot'\\|'auth_http_realm'\\|'auth_type'\\|'bookmarktable'\\|'central_columns'\\|'column_info'\\|'compress'\\|'control_compress'\\|'control_hide…'\\|'control_socket'\\|'control_ssl'\\|'control_ssl_ca'\\|'control_ssl_ca_path'\\|'control_ssl_cert'\\|'control_ssl_ciphers'\\|'control_ssl_key'\\|'control_ssl_verify'\\|'controlhost'\\|'controlpass'\\|'controlport'\\|'controluser'\\|'designer_settings'\\|'DisableIS'\\|'export_templates'\\|'favorite'\\|'history'\\|'host'\\|'LogoutURL'\\|'MaxTableUiprefs'\\|'navigationhiding'\\|'password'\\|'pdf_pages'\\|'pmadb'\\|'port'\\|'recent'\\|'relation'\\|'savedsearches'\\|'SessionTimeZone'\\|'SignonCookieParams'\\|'SignonScript'\\|'SignonSession'\\|'SignonURL'\\|'socket'\\|'ssl'\\|'ssl_ca'\\|'ssl_ca_path'\\|'ssl_cert'\\|'ssl_ciphers'\\|'ssl_key'\\|'ssl_verify'\\|'table_coords'\\|'table_info'\\|'table_uiprefs'\\|'tracking'\\|'user'\\|'userconfig'\\|'usergroups'\\|'users'\\|'verbose', array\\\\|bool\\|int\\<0, max\\>\\|string\\>\\|bool\\|int\\<1, max\\>\\|string\\|null\\>\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept array\<''AllowDeny''\|''AllowNoPassword''\|''AllowRoot''\|''auth_http_realm''\|''auth_type''\|''bookmarktable''\|''central_columns''\|''column_info''\|''compress''\|''control_compress''\|''control_hide…''\|''control_socket''\|''control_ssl''\|''control_ssl_ca''\|''control_ssl_ca_path''\|''control_ssl_cert''\|''control_ssl_ciphers''\|''control_ssl_key''\|''control_ssl_verify''\|''controlhost''\|''controlpass''\|''controlport''\|''controluser''\|''designer_settings''\|''DisableIS''\|''export_templates''\|''favorite''\|''history''\|''host''\|''LogoutURL''\|''MaxTableUiprefs''\|''navigationhiding''\|''password''\|''pdf_pages''\|''pmadb''\|''port''\|''recent''\|''relation''\|''savedsearches''\|''SessionTimeZone''\|''SignonCookieParams''\|''SignonScript''\|''SignonSession''\|''SignonURL''\|''socket''\|''ssl''\|''ssl_ca''\|''ssl_ca_path''\|''ssl_cert''\|''ssl_ciphers''\|''ssl_key''\|''ssl_verify''\|''table_coords''\|''table_info''\|''table_uiprefs''\|''tracking''\|''user''\|''userconfig''\|''usergroups''\|''users''\|''verbose'', array\\|bool\|int\<0, max\>\|string\>\|bool\|int\<1, max\>\|string\|null\>\.$#' + identifier: assign.propertyType count: 2 path: tests/unit/Navigation/Nodes/NodeTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept array\\{\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept array\{\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/Navigation/Nodes/NodeTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 4 path: tests/unit/Navigation/Nodes/ObjectFetcherTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'extra' and array\\{legendText\\: string, headText\\: string, queryError\\: bool, extra\\: PhpMyAdmin\\\\Message\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''extra'' and array\{legendText\: string, headText\: string, queryError\: bool, extra\: PhpMyAdmin\\Message\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'extra' and array\\{legendText\\: string, headText\\: string, subText\\: string, extra\\: string, primary_key\\: string\\|false\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''extra'' and array\{legendText\: string, headText\: string, subText\: string, extra\: string, primary_key\: string\|false\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'extra' and array\\{legendText\\: string, headText\\: string, subText\\: string, extra\\: string, primary_key\\: string\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''extra'' and array\{legendText\: string, headText\: string, subText\: string, extra\: string, primary_key\: string\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'extra' and array\\{legendText\\: string, headText\\: string, subText\\: string, extra\\: string\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''extra'' and array\{legendText\: string, headText\: string, subText\: string, extra\: string\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 2 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'extra' and array\\{legendText\\: string, headText\\: string, subText\\: string, hasPrimaryKey\\: string, extra\\: string\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''extra'' and array\{legendText\: string, headText\: string, subText\: string, hasPrimaryKey\: string, extra\: string\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'hasPrimaryKey' and array\\{legendText\\: string, headText\\: string, subText\\: string, hasPrimaryKey\\: string, extra\\: string\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''hasPrimaryKey'' and array\{legendText\: string, headText\: string, subText\: string, hasPrimaryKey\: string, extra\: string\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'headText' and array\\{legendText\\: string, headText\\: string, queryError\\: bool, extra\\: PhpMyAdmin\\\\Message\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''headText'' and array\{legendText\: string, headText\: string, queryError\: bool, extra\: PhpMyAdmin\\Message\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'headText' and array\\{legendText\\: string, headText\\: string, queryError\\: string\\|false, extra\\?\\: string\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''headText'' and array\{legendText\: string, headText\: string, queryError\: string\|false, extra\?\: string\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'headText' and array\\{legendText\\: string, headText\\: string, subText\\: string, extra\\: string, primary_key\\: string\\|false\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''headText'' and array\{legendText\: string, headText\: string, subText\: string, extra\: string, primary_key\: string\|false\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'headText' and array\\{legendText\\: string, headText\\: string, subText\\: string, extra\\: string, primary_key\\: string\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''headText'' and array\{legendText\: string, headText\: string, subText\: string, extra\: string, primary_key\: string\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'headText' and array\\{legendText\\: string, headText\\: string, subText\\: string, extra\\: string\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''headText'' and array\{legendText\: string, headText\: string, subText\: string, extra\: string\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 2 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'headText' and array\\{legendText\\: string, headText\\: string, subText\\: string, hasPrimaryKey\\: string, extra\\: string\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''headText'' and array\{legendText\: string, headText\: string, subText\: string, hasPrimaryKey\: string, extra\: string\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'legendText' and array\\{legendText\\: string, headText\\: string, queryError\\: bool, extra\\: PhpMyAdmin\\\\Message\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''legendText'' and array\{legendText\: string, headText\: string, queryError\: bool, extra\: PhpMyAdmin\\Message\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'legendText' and array\\{legendText\\: string, headText\\: string, queryError\\: string\\|false, extra\\?\\: string\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''legendText'' and array\{legendText\: string, headText\: string, queryError\: string\|false, extra\?\: string\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'legendText' and array\\{legendText\\: string, headText\\: string, subText\\: string, extra\\: string, primary_key\\: string\\|false\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''legendText'' and array\{legendText\: string, headText\: string, subText\: string, extra\: string, primary_key\: string\|false\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'legendText' and array\\{legendText\\: string, headText\\: string, subText\\: string, extra\\: string, primary_key\\: string\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''legendText'' and array\{legendText\: string, headText\: string, subText\: string, extra\: string, primary_key\: string\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'legendText' and array\\{legendText\\: string, headText\\: string, subText\\: string, extra\\: string\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''legendText'' and array\{legendText\: string, headText\: string, subText\: string, extra\: string\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 2 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'legendText' and array\\{legendText\\: string, headText\\: string, subText\\: string, hasPrimaryKey\\: string, extra\\: string\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''legendText'' and array\{legendText\: string, headText\: string, subText\: string, hasPrimaryKey\: string, extra\: string\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'message' and array\\{queryError\\: bool, message\\: PhpMyAdmin\\\\Message\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''message'' and array\{queryError\: bool, message\: PhpMyAdmin\\Message\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'primary_key' and array\\{legendText\\: string, headText\\: string, subText\\: string, extra\\: string, primary_key\\: string\\|false\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''primary_key'' and array\{legendText\: string, headText\: string, subText\: string, extra\: string, primary_key\: string\|false\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'primary_key' and array\\{legendText\\: string, headText\\: string, subText\\: string, extra\\: string, primary_key\\: string\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''primary_key'' and array\{legendText\: string, headText\: string, subText\: string, extra\: string, primary_key\: string\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'queryError' and array\\{legendText\\: string, headText\\: string, queryError\\: bool, extra\\: PhpMyAdmin\\\\Message\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''queryError'' and array\{legendText\: string, headText\: string, queryError\: bool, extra\: PhpMyAdmin\\Message\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'queryError' and array\\{legendText\\: string, headText\\: string, queryError\\: string\\|false, extra\\?\\: string\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''queryError'' and array\{legendText\: string, headText\: string, queryError\: string\|false, extra\?\: string\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 2 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'queryError' and array\\{queryError\\: bool, message\\: PhpMyAdmin\\\\Message\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''queryError'' and array\{queryError\: bool, message\: PhpMyAdmin\\Message\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'subText' and array\\{legendText\\: string, headText\\: string, subText\\: string, extra\\: string, primary_key\\: string\\|false\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''subText'' and array\{legendText\: string, headText\: string, subText\: string, extra\: string, primary_key\: string\|false\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'subText' and array\\{legendText\\: string, headText\\: string, subText\\: string, extra\\: string, primary_key\\: string\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''subText'' and array\{legendText\: string, headText\: string, subText\: string, extra\: string, primary_key\: string\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'subText' and array\\{legendText\\: string, headText\\: string, subText\\: string, extra\\: string\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''subText'' and array\{legendText\: string, headText\: string, subText\: string, extra\: string\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 2 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'subText' and array\\{legendText\\: string, headText\\: string, subText\\: string, hasPrimaryKey\\: string, extra\\: string\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''subText'' and array\{legendText\: string, headText\: string, subText\: string, hasPrimaryKey\: string, extra\: string\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'PhpMyAdmin\\\\\\\\Message' and PhpMyAdmin\\\\Message will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''PhpMyAdmin\\\\Message'' and PhpMyAdmin\\Message will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/NormalizationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\) with '' and PhpMyAdmin\\\\Message will always evaluate to false\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertSame\(\) with '''' and PhpMyAdmin\\Message will always evaluate to false\.$#' + identifier: staticMethod.impossibleType count: 1 path: tests/unit/NormalizationTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\.$#' + identifier: assign.propertyType count: 2 path: tests/unit/NormalizationTest.php - - message: "#^Method PhpMyAdmin\\\\Tests\\\\Partitioning\\\\TablePartitionDefinitionTest\\:\\:testGetDetails\\(\\) has parameter \\$partitions with no value type specified in iterable type array\\.$#" + message: '#^Method PhpMyAdmin\\Tests\\Partitioning\\TablePartitionDefinitionTest\:\:testGetDetails\(\) has parameter \$partitions with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: tests/unit/Partitioning/TablePartitionDefinitionTest.php - - message: "#^Parameter \\#2 \\$haystack of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$haystack of static method PHPUnit\\Framework\\Assert\:\:assertStringContainsString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 3 path: tests/unit/PdfTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Plugins/Auth/AuthenticationConfigTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept array\\{user\\: 'username', password\\: 'password'\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept array\{user\: ''username'', password\: ''password''\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/Plugins/Auth/AuthenticationConfigTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/Plugins/Auth/AuthenticationConfigTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between mixed and ''/cs/LC_MESSAGES…'' results in an error\.$#' + identifier: binaryOp.invalid + count: 2 + path: tests/unit/Plugins/Auth/AuthenticationCookieTest.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 24 path: tests/unit/Plugins/Auth/AuthenticationCookieTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\) with 32 and 0 will always evaluate to false\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertSame\(\) with 32 and 0 will always evaluate to false\.$#' + identifier: staticMethod.impossibleType count: 1 path: tests/unit/Plugins/Auth/AuthenticationCookieTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\) with array\\{host\\: 'b', port\\: '2', socket\\: true, ssl\\: true, user\\: 'pmaUser2', password\\: 'testPW'\\} and array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\} will always evaluate to false\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertSame\(\) with array\{host\: ''b'', port\: ''2'', socket\: true, ssl\: true, user\: ''pmaUser2'', password\: ''testPW''\} and array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\} will always evaluate to false\.$#' + identifier: staticMethod.impossibleType count: 1 path: tests/unit/Plugins/Auth/AuthenticationCookieTest.php - - message: "#^Cannot access offset 'default' on mixed\\.$#" + message: '#^Cannot access offset ''default'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: tests/unit/Plugins/Auth/AuthenticationCookieTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept array\\{auth_type\\: 'cookie'\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept array\{auth_type\: ''cookie''\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/Plugins/Auth/AuthenticationCookieTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept array\\{host\\: 'a', port\\: 1, socket\\: true, ssl\\: true, user\\: 'pmaUser2'\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept array\{host\: ''a'', port\: 1, socket\: true, ssl\: true, user\: ''pmaUser2''\}\.$#' + identifier: assign.propertyType count: 2 path: tests/unit/Plugins/Auth/AuthenticationCookieTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/Plugins/Auth/AuthenticationCookieTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\.$#' + identifier: assign.propertyType count: 10 path: tests/unit/Plugins/Auth/AuthenticationCookieTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 7 path: tests/unit/Plugins/Auth/AuthenticationHttpTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\) with 'testUser' and 'testUser' will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertSame\(\) with ''testUser'' and ''testUser'' will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/Plugins/Auth/AuthenticationHttpTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept array\\{host\\: 'a', user\\: 'user2'\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept array\{host\: ''a'', user\: ''user2''\}\.$#' + identifier: assign.propertyType count: 2 path: tests/unit/Plugins/Auth/AuthenticationHttpTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\.$#' + identifier: assign.propertyType count: 2 path: tests/unit/Plugins/Auth/AuthenticationHttpTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 13 path: tests/unit/Plugins/Auth/AuthenticationSignonTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\.$#' + identifier: assign.propertyType count: 2 path: tests/unit/Plugins/Auth/AuthenticationSignonTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/Plugins/Auth/AuthenticationSignonTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 3 path: tests/unit/Plugins/AuthenticationPluginFactoryTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^@readonly property PhpMyAdmin\\Config\\Settings\\Debug\:\:\$simple2fa is assigned outside of its declaring class\.$#' + identifier: property.readOnlyByPhpDocAssignOutOfClass count: 2 path: tests/unit/Plugins/AuthenticationPluginTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 2 + path: tests/unit/Plugins/AuthenticationPluginTest.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Plugins/Export/ExportHtmlwordTest.php - - message: "#^Parameter \\#2 \\$haystack of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$haystack of static method PHPUnit\\Framework\\Assert\:\:assertStringContainsString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: tests/unit/Plugins/Export/ExportHtmlwordTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 3 path: tests/unit/Plugins/Export/ExportLatexTest.php - - message: "#^Cannot access offset 'export_type' on mixed\\.$#" + message: '#^Cannot access offset ''export_type'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: tests/unit/Plugins/Export/ExportLatexTest.php - - message: "#^Cannot access offset 'single_table' on mixed\\.$#" + message: '#^Cannot access offset ''single_table'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: tests/unit/Plugins/Export/ExportLatexTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept array\\{host\\: string, port\\: 80, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept array\{host\: string, port\: 80, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/Plugins/Export/ExportLatexTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Plugins/Export/ExportOdtTest.php - - message: "#^Cannot access offset 'export_type' on mixed\\.$#" + message: '#^Cannot access offset ''export_type'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: tests/unit/Plugins/Export/ExportOdtTest.php - - message: "#^Cannot access offset 'single_table' on mixed\\.$#" + message: '#^Cannot access offset ''single_table'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: tests/unit/Plugins/Export/ExportOdtTest.php - - message: "#^Parameter \\#2 \\$haystack of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$haystack of static method PHPUnit\\Framework\\Assert\:\:assertStringContainsString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 11 path: tests/unit/Plugins/Export/ExportOdtTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 9 path: tests/unit/Plugins/Export/ExportSqlTest.php - - message: "#^Cannot access offset 'export_type' on mixed\\.$#" + message: '#^Cannot access offset ''export_type'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: tests/unit/Plugins/Export/ExportSqlTest.php - - message: "#^Cannot access offset 'single_table' on mixed\\.$#" + message: '#^Cannot access offset ''single_table'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: tests/unit/Plugins/Export/ExportSqlTest.php - - message: "#^Parameter \\#2 \\$haystack of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$haystack of static method PHPUnit\\Framework\\Assert\:\:assertStringContainsString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 4 path: tests/unit/Plugins/Export/ExportSqlTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept array\\{host\\: string, port\\: 80, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept array\{host\: string, port\: 80, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/Plugins/Export/ExportSqlTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Plugins/Export/ExportTexytextTest.php - - message: "#^Cannot access offset 'single_table' on mixed\\.$#" + message: '#^Cannot access offset ''single_table'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Plugins/Export/ExportTexytextTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Plugins/Export/ExportXmlTest.php - - message: "#^Cannot access offset 'single_table' on mixed\\.$#" + message: '#^Cannot access offset ''single_table'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Plugins/Export/ExportXmlTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept array\\{host\\: string, port\\: 80, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept array\{host\: string, port\: 80, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/Plugins/Export/ExportXmlTest.php - - message: "#^Parameter \\#2 \\$haystack of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$haystack of static method PHPUnit\\Framework\\Assert\:\:assertStringContainsString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 6 path: tests/unit/Plugins/Import/ImportCsvTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Plugins/Import/ImportLdiTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertTrue\\(\\) with 'auto' will always evaluate to false\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertTrue\(\) with ''auto'' will always evaluate to false\.$#' + identifier: staticMethod.impossibleType count: 1 path: tests/unit/Plugins/Import/ImportLdiTest.php - - message: "#^Cannot call method __toString\\(\\) on mixed\\.$#" + message: '#^Cannot call method __toString\(\) on mixed\.$#' + identifier: method.nonObject count: 1 path: tests/unit/Plugins/Import/ImportLdiTest.php - - message: "#^Parameter \\#2 \\$haystack of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$haystack of static method PHPUnit\\Framework\\Assert\:\:assertStringContainsString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 6 path: tests/unit/Plugins/Import/ImportLdiTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Plugins/Import/ImportOdsTest.php - - message: "#^Parameter \\#2 \\$haystack of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$haystack of static method PHPUnit\\Framework\\Assert\:\:assertStringContainsString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 3 path: tests/unit/Plugins/Import/ImportOdsTest.php - - message: "#^Parameter \\#2 \\$haystack of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$haystack of static method PHPUnit\\Framework\\Assert\:\:assertStringContainsString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 7 path: tests/unit/Plugins/Import/ImportShpTest.php - - message: "#^Parameter \\#2 \\$haystack of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$haystack of static method PHPUnit\\Framework\\Assert\:\:assertStringContainsString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 3 path: tests/unit/Plugins/Import/ImportSqlTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Plugins/Schema/DiaRelationSchemaTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Plugins/Schema/EpsRelationSchemaTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Plugins/Schema/PdfRelationSchemaTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Plugins/Schema/SvgRelationSchemaTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Plugins/Transformations/TransformationPluginsTest.php - - message: "#^Method PhpMyAdmin\\\\Tests\\\\Plugins\\\\Transformations\\\\TransformationPluginsTest\\:\\:testTransformation\\(\\) has parameter \\$applyArgs with no value type specified in iterable type array\\.$#" + message: '#^Method PhpMyAdmin\\Tests\\Plugins\\Transformations\\TransformationPluginsTest\:\:testTransformation\(\) has parameter \$applyArgs with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: tests/unit/Plugins/Transformations/TransformationPluginsTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^PHPDoc tag @var with type array\{backend\: string, settings\: array\\} is not subtype of native type array\{backend\: '''', settings\: array\{\}\}\.$#' + identifier: varTag.nativeType + count: 1 + path: tests/unit/Plugins/TwoFactor/WebAuthnTest.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/PluginsTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/PluginsTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/PluginsTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Replication/ReplicationGuiTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Replication/ReplicationGuiTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/Replication/ReplicationGuiTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 4 path: tests/unit/Routing/RoutingTest.php - - message: "#^Cannot access offset '/' on mixed\\.$#" + message: '#^Cannot access offset ''/'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Routing/RoutingTest.php - - message: "#^Cannot access offset 'GET' on mixed\\.$#" + message: '#^Cannot access offset ''GET'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Routing/RoutingTest.php - - message: "#^Parameter \\#1 \\$directory of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertDirectoryIsWritable\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$directory of static method PHPUnit\\Framework\\Assert\:\:assertDirectoryIsWritable\(\) expects string, mixed given\.$#' + identifier: argument.type count: 3 path: tests/unit/Routing/RoutingTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Server/PluginsTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 3 path: tests/unit/Server/PluginsTest.php - - message: "#^Class PhpMyAdmin\\\\Tests\\\\Server\\\\PluginsTest has an uninitialized property \\$plugins\\. Give it default value or assign it in the constructor\\.$#" + message: '#^Class PhpMyAdmin\\Tests\\Server\\PluginsTest has an uninitialized property \$plugins\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized count: 1 path: tests/unit/Server/PluginsTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 10 path: tests/unit/Server/PrivilegesTest.php - - message: "#^PHPDoc tag @var for variable \\$actual has no value type specified in iterable type array\\.$#" + message: '#^PHPDoc tag @var for variable \$actual has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: tests/unit/Server/PrivilegesTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Server/SelectTest.php - - message: "#^Cannot access offset 'host' on mixed\\.$#" + message: '#^Cannot access offset ''host'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Server/SelectTest.php - - message: "#^Cannot access offset 'only_db' on mixed\\.$#" + message: '#^Cannot access offset ''only_db'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Server/SelectTest.php - - message: "#^Cannot access offset 'port' on mixed\\.$#" + message: '#^Cannot access offset ''port'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Server/SelectTest.php - - message: "#^Cannot access offset 'user' on mixed\\.$#" + message: '#^Cannot access offset ''user'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Server/SelectTest.php - - message: "#^Offset '0' does not exist on array\\, array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\>\\.$#" + message: '#^Offset ''0'' does not exist on array\, array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\>\.$#' + identifier: offsetAccess.notFound count: 1 path: tests/unit/Server/SelectTest.php - - message: "#^Parameter \\#1 \\$needle of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$needle of static method PHPUnit\\Framework\\Assert\:\:assertStringContainsString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 4 path: tests/unit/Server/SelectTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\.$#' + identifier: assign.propertyType count: 3 path: tests/unit/Server/SelectTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'PhpMyAdmin\\\\\\\\Server\\\\\\\\SysInfo\\\\\\\\Base' and PhpMyAdmin\\\\Server\\\\SysInfo\\\\Base will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''PhpMyAdmin\\\\Server\\\\SysInfo\\\\Base'' and PhpMyAdmin\\Server\\SysInfo\\Base will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/Server/SysInfo/SysInfoTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertIsString\(\) with null will always evaluate to false\.$#' + identifier: staticMethod.impossibleType + count: 1 + path: tests/unit/SessionTest.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Setup/IndexTest.php - - message: "#^Cannot access offset '123' on mixed\\.$#" + message: '#^Cannot access offset ''123'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Setup/IndexTest.php - - message: "#^Cannot access offset 'type' on mixed\\.$#" + message: '#^Cannot access offset ''type'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Setup/IndexTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/SqlQueryFormTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/SqlQueryFormTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 5 path: tests/unit/SqlTest.php - - message: "#^Cannot access offset 'max_rows' on mixed\\.$#" + message: '#^Cannot access offset ''max_rows'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 3 path: tests/unit/SqlTest.php - - message: "#^Cannot access offset 'pos' on mixed\\.$#" + message: '#^Cannot access offset ''pos'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/SqlTest.php - - message: "#^Cannot access offset 'tmpval' on mixed\\.$#" + message: '#^Cannot access offset ''tmpval'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: tests/unit/SqlTest.php - - message: "#^Method PhpMyAdmin\\\\Tests\\\\Stubs\\\\DbiDummy\\:\\:affectedRows\\(\\) should return int\\|numeric\\-string but returns mixed\\.$#" + message: '#^Method PhpMyAdmin\\Tests\\Stubs\\DbiDummy\:\:affectedRows\(\) should return int\|numeric\-string but returns mixed\.$#' + identifier: return.type count: 1 path: tests/unit/Stubs/DbiDummy.php - - message: "#^Method PhpMyAdmin\\\\Tests\\\\Stubs\\\\DbiDummy\\:\\:connect\\(\\) never returns null so it can be removed from the return type\\.$#" + message: '#^Method PhpMyAdmin\\Tests\\Stubs\\DbiDummy\:\:connect\(\) never returns null so it can be removed from the return type\.$#' + identifier: return.unusedType count: 1 path: tests/unit/Stubs/DbiDummy.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Stubs/ResponseRenderer.php - - message: "#^Foreach overwrites \\$value with its value variable\\.$#" + message: '#^Foreach overwrites \$value with its value variable\.$#' + identifier: foreach.valueOverwrite count: 1 path: tests/unit/Stubs/ResponseRenderer.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/SystemDatabaseTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Table/ColumnsDefinitionTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Table/SearchTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 2 path: tests/unit/Table/TableTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertFalse\\(\\) with true will always evaluate to false\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertFalse\(\) with true will always evaluate to false\.$#' + identifier: staticMethod.impossibleType count: 1 path: tests/unit/Table/TableTest.php - - message: "#^Cannot access offset 'SCHEMA_TABLES' on mixed\\.$#" + message: '#^Cannot access offset ''SCHEMA_TABLES'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Table/TableTest.php - - message: "#^Offset 'col_order' on array in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset ''col_order'' on non\-empty\-array in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: tests/unit/Table/TableTest.php - - message: "#^Parameter \\#2 \\$haystack of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$haystack of static method PHPUnit\\Framework\\Assert\:\:assertStringContainsString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 3 path: tests/unit/Table/TableTest.php - - message: "#^Parameter \\#2 \\$haystack of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringNotContainsString\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#2 \$haystack of static method PHPUnit\\Framework\\Assert\:\:assertStringNotContainsString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: tests/unit/Table/TableTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Theme/ThemeManagerTest.php - - message: "#^Casting to int something that's already int\\.$#" + message: '#^Casting to int something that''s already int\.$#' + identifier: cast.useless count: 1 path: tests/unit/Theme/ThemeTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 4 path: tests/unit/Tracking/TrackerTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\.$#' + identifier: assign.propertyType count: 4 path: tests/unit/Tracking/TrackerTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Tracking/TrackingTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 3 path: tests/unit/Tracking/TrackingTest.php - - message: "#^Cannot access offset 'statement' on mixed\\.$#" + message: '#^Cannot access offset ''statement'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: tests/unit/Tracking/TrackingTest.php - - message: "#^Cannot access offset 'username' on mixed\\.$#" + message: '#^Cannot access offset ''username'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: tests/unit/Tracking/TrackingTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/TransformationsTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\{ServerDefault\\: 1, ActionLinksMode\\: 'icons'\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{ServerDefault\: 1, ActionLinksMode\: ''icons''\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/TransformationsTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 5 path: tests/unit/Triggers/TriggersTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Triggers/TriggersTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Parameter \#1 \$nodes of class Twig\\Node\\Node constructor expects array\, array\ given\.$#' + identifier: argument.type + count: 2 + path: tests/unit/Twig/Node/Expression/TransExpressionTest.php + + - + message: '#^@readonly property PhpMyAdmin\\Config\\Settings\\Debug\:\:\$simple2fa is assigned outside of its declaring class\.$#' + identifier: property.readOnlyByPhpDocAssignOutOfClass count: 6 path: tests/unit/TwoFactorTest.php - - message: "#^Method PhpMyAdmin\\\\Tests\\\\TwoFactorTest\\:\\:loadResultForConfig\\(\\) has parameter \\$config with no value type specified in iterable type array\\.$#" + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated + count: 6 + path: tests/unit/TwoFactorTest.php + + - + message: '#^Method PhpMyAdmin\\Tests\\TwoFactorTest\:\:loadResultForConfig\(\) has parameter \$config with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: tests/unit/TwoFactorTest.php - - message: "#^Missing call to parent\\:\\:tearDown\\(\\) method\\.$#" + message: '#^Missing call to parent\:\:tearDown\(\) method\.$#' + identifier: phpunit.callParent count: 1 path: tests/unit/TwoFactorTest.php - - message: "#^Parameter \\#1 \\$secret of method PragmaRX\\\\Google2FA\\\\Google2FA\\:\\:oathTotp\\(\\) expects string, mixed given\\.$#" + message: '#^Parameter \#1 \$secret of method PragmaRX\\Google2FA\\Google2FA\:\:oathTotp\(\) expects string, mixed given\.$#' + identifier: argument.type count: 2 path: tests/unit/TwoFactorTest.php - - message: "#^Class PhpMyAdmin\\\\Tests\\\\TypesByDatabaseVersionTest has an uninitialized property \\$object\\. Give it default value or assign it in the constructor\\.$#" + message: '#^Class PhpMyAdmin\\Tests\\TypesByDatabaseVersionTest has an uninitialized property \$object\. Give it default value or assign it in the constructor\.$#' + identifier: property.uninitialized count: 1 path: tests/unit/TypesByDatabaseVersionTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/TypesTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/UniqueConditionTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/UrlRedirectorTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 8 path: tests/unit/UrlTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 6 path: tests/unit/UserPreferencesTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\DatabaseInterface\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\DatabaseInterface\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 8 path: tests/unit/UserPreferencesTest.php - - message: "#^Cannot access offset 'db' on mixed\\.$#" + message: '#^Cannot access offset ''db'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 2 path: tests/unit/UserPreferencesTest.php - - message: "#^Cannot access offset 'server_2' on mixed\\.$#" + message: '#^Cannot access offset ''server_2'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/UserPreferencesTest.php - - message: "#^Cannot access offset 'ts' on mixed\\.$#" + message: '#^Cannot access offset ''ts'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/UserPreferencesTest.php - - message: "#^Cannot access offset 'userprefs' on mixed\\.$#" + message: '#^Cannot access offset ''userprefs'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/UserPreferencesTest.php - - message: "#^Parameter \\#2 \\$haystack of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertCount\\(\\) expects Countable\\|iterable, mixed given\\.$#" + message: '#^Parameter \#2 \$haystack of static method PHPUnit\\Framework\\Assert\:\:assertCount\(\) expects Countable\|iterable, mixed given\.$#' + identifier: argument.type count: 1 path: tests/unit/UserPreferencesTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\.$#' + identifier: assign.propertyType count: 2 path: tests/unit/UserPreferencesTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\{Server/hide_db\\: 'testval123', Server/port\\: '213'\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{Server/hide_db\: ''testval123'', Server/port\: ''213''\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/UserPreferencesTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Binary operation "\." between mixed and ''/cs/LC_MESSAGES…'' results in an error\.$#' + identifier: binaryOp.invalid + count: 2 + path: tests/unit/UtilTest.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 7 path: tests/unit/UtilTest.php - - message: "#^Cannot access offset 'is_superuser' on mixed\\.$#" + message: '#^Cannot access offset ''is_superuser'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/UtilTest.php - - message: "#^Cannot access offset 'mysql_cur_user' on mixed\\.$#" + message: '#^Cannot access offset ''mysql_cur_user'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/UtilTest.php - - message: "#^Cannot access offset 'server_2' on mixed\\.$#" + message: '#^Cannot access offset ''server_2'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: tests/unit/UtilTest.php - - message: "#^Casting to string something that's already string\\.$#" + message: '#^Casting to string something that''s already string\.$#' + identifier: cast.useless count: 1 path: tests/unit/UtilTest.php - - message: "#^Parameter \\#2 \\$array of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayNotHasKey\\(\\) expects array\\|ArrayAccess, mixed given\\.$#" + message: '#^Parameter \#2 \$array of static method PHPUnit\\Framework\\Assert\:\:assertArrayNotHasKey\(\) expects array\|ArrayAccess, mixed given\.$#' + identifier: argument.type count: 2 path: tests/unit/UtilTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\.$#' + identifier: assign.propertyType count: 1 path: tests/unit/UtilTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 1 path: tests/unit/Utils/ForeignKeyTest.php - - message: "#^Only booleans are allowed in a negated boolean, string\\|false given\\.$#" - count: 2 - path: tests/unit/Utils/HttpRequestTest.php - - - - message: "#^Parameter \\#1 \\$haystack of function stripos expects string, mixed given\\.$#" - count: 2 - path: tests/unit/Utils/HttpRequestTest.php - - - - message: "#^Parameter \\#1 \\$needle of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, mixed given\\.$#" + message: '#^Binary operation "\." between ''Not supported in…'' and mixed results in an error\.$#' + identifier: binaryOp.invalid count: 1 path: tests/unit/Utils/HttpRequestTest.php - - message: "#^Parameter \\#2 \\$haystack of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, mixed given\\.$#" + message: '#^Only booleans are allowed in a negated boolean, string\|false given\.$#' + identifier: booleanNot.exprNotBoolean + count: 2 + path: tests/unit/Utils/HttpRequestTest.php + + - + message: '#^Parameter \#1 \$haystack of function stripos expects string, mixed given\.$#' + identifier: argument.type + count: 2 + path: tests/unit/Utils/HttpRequestTest.php + + - + message: '#^Parameter \#1 \$needle of static method PHPUnit\\Framework\\Assert\:\:assertStringContainsString\(\) expects string, mixed given\.$#' + identifier: argument.type count: 1 path: tests/unit/Utils/HttpRequestTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: '#^Parameter \#2 \$haystack of static method PHPUnit\\Framework\\Assert\:\:assertStringContainsString\(\) expects string, mixed given\.$#' + identifier: argument.type + count: 1 + path: tests/unit/Utils/HttpRequestTest.php + + - + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 6 path: tests/unit/Utils/SessionCacheTest.php - - message: "#^Cannot access offset 'server_2' on mixed\\.$#" + message: '#^Cannot access offset ''server_2'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 4 path: tests/unit/Utils/SessionCacheTest.php - - message: "#^Cannot access offset 'test_data' on mixed\\.$#" + message: '#^Cannot access offset ''test_data'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Utils/SessionCacheTest.php - - message: "#^Cannot access offset 'test_data_3' on mixed\\.$#" + message: '#^Cannot access offset ''test_data_3'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/Utils/SessionCacheTest.php - - message: "#^Parameter \\#2 \\$array of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayNotHasKey\\(\\) expects array\\|ArrayAccess, mixed given\\.$#" + message: '#^Parameter \#2 \$array of static method PHPUnit\\Framework\\Assert\:\:assertArrayNotHasKey\(\) expects array\|ArrayAccess, mixed given\.$#' + identifier: argument.type count: 2 path: tests/unit/Utils/SessionCacheTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$selectedServer \\(array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\) does not accept array\\{host\\: string, port\\: string, socket\\: string, ssl\\: bool, ssl_key\\: string\\|null, ssl_cert\\: string\\|null, ssl_ca\\: string\\|null, ssl_ca_path\\: string\\|null, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$selectedServer \(array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\) does not accept array\{host\: string, port\: string, socket\: string, ssl\: bool, ssl_key\: string\|null, ssl_cert\: string\|null, ssl_ca\: string\|null, ssl_ca_path\: string\|null, \.\.\.\}\.$#' + identifier: assign.propertyType count: 5 path: tests/unit/Utils/SessionCacheTest.php - - message: """ - #^Call to deprecated method getInstance\\(\\) of class PhpMyAdmin\\\\Config\\: - Use dependency injection instead\\.$# - """ + message: ''' + #^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\: + Use dependency injection instead\.$# + ''' + identifier: staticMethod.deprecated count: 5 path: tests/unit/VersionInformationTest.php - - message: "#^Cannot access offset 'version_check' on mixed\\.$#" + message: '#^Cannot access offset ''version_check'' on mixed\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: tests/unit/VersionInformationTest.php - - message: "#^Property PhpMyAdmin\\\\Config\\:\\:\\$settings \\(array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\) does not accept array\\{PmaAbsoluteUri\\: string, AuthLog\\: string, AuthLogSuccess\\: bool, PmaNoRelation_DisableWarning\\: bool, SuhosinDisableWarning\\: bool, LoginCookieValidityDisableWarning\\: bool, ReservedWordDisableWarning\\: bool, TranslationWarningThreshold\\: int, \\.\\.\\.\\}\\.$#" + message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\.$#' + identifier: assign.propertyType count: 3 path: tests/unit/VersionInformationTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertIsBool\\(\\) with true will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertIsBool\(\) with true will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/VersionTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertIsInt\\(\\) with 0 will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertIsInt\(\) with 0 will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 2 path: tests/unit/VersionTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertIsInt\\(\\) with 6 will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertIsInt\(\) with 6 will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/VersionTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertIsString\\(\\) with 'dev' will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertIsInt\(\) with 60000 will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/VersionTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertIsString\\(\\) with non\\-falsy\\-string will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertIsString\(\) with ''dev'' will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/VersionTest.php - - message: "#^Call to function base64_decode\\(\\) requires parameter \\#2 to be set\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertIsString\(\) with non\-falsy\-string will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType + count: 1 + path: tests/unit/VersionTest.php + + - + message: '#^Call to function base64_decode\(\) requires parameter \#2 to be set\.$#' + identifier: function.strict count: 1 path: tests/unit/WebAuthn/CBORDecoderTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'attestation' and array\\{challenge\\: non\\-falsy\\-string, rp\\: array\\{name\\: string, id\\: string\\}, user\\: array\\{id\\: string, name\\: string, displayName\\: string\\}, pubKeyCredParams\\: non\\-empty\\-array\\, authenticatorSelection\\: array\\, timeout\\: int\\<1, max\\>, attestation\\: non\\-empty\\-string\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''attestation'' and array\{challenge\: non\-falsy\-string, rp\: array\{name\: string, id\: string\}, user\: array\{id\: string, name\: string, displayName\: string\}, pubKeyCredParams\: non\-empty\-list\, authenticatorSelection\: array\, timeout\: int\<1, max\>, attestation\: non\-empty\-string\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/WebAuthn/CustomServerTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'challenge' and array\\{challenge\\: non\\-empty\\-string, rp\\: array\\{name\\: string, id\\: string\\}, user\\: array\\{id\\: string, name\\: string, displayName\\: string\\}, pubKeyCredParams\\: array\\, authenticatorSelection\\: array\\, timeout\\: int\\<1, max\\>, attestation\\: non\\-empty\\-string\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''challenge'' and array\{challenge\: non\-empty\-string, rp\: array\{name\: string, id\: string\}, user\: array\{id\: string, name\: string, displayName\: string\}, pubKeyCredParams\: list\, authenticatorSelection\: array\, timeout\: int\<1, max\>, attestation\: non\-empty\-string\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/WebAuthn/CustomServerTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'pubKeyCredParams' and array\\{challenge\\: non\\-falsy\\-string, rp\\: array\\{name\\: string, id\\: string\\}, user\\: array\\{id\\: string, name\\: string, displayName\\: string\\}, pubKeyCredParams\\: array\\, authenticatorSelection\\: array\\, timeout\\: int\\<1, max\\>, attestation\\: non\\-empty\\-string\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''pubKeyCredParams'' and array\{challenge\: non\-falsy\-string, rp\: array\{name\: string, id\: string\}, user\: array\{id\: string, name\: string, displayName\: string\}, pubKeyCredParams\: list\, authenticatorSelection\: array\, timeout\: int\<1, max\>, attestation\: non\-empty\-string\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/WebAuthn/CustomServerTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNull\\(\\) with null will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertNull\(\) with null will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/WebAuthn/CustomServerTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'attestation' and array\\{challenge\\: non\\-falsy\\-string, rp\\: array\\{name\\: string, id\\: string\\}, user\\: array\\{id\\: string, name\\: string, displayName\\: string\\}, pubKeyCredParams\\: non\\-empty\\-array\\, authenticatorSelection\\: array\\, timeout\\: int\\<1, max\\>, attestation\\: non\\-empty\\-string\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''attestation'' and array\{challenge\: non\-falsy\-string, rp\: array\{name\: string, id\: string\}, user\: array\{id\: string, name\: string, displayName\: string\}, pubKeyCredParams\: non\-empty\-list\, authenticatorSelection\: array\, timeout\: int\<1, max\>, attestation\: non\-empty\-string\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/WebAuthn/WebauthnLibServerTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'challenge' and array\\{challenge\\: non\\-empty\\-string, rp\\: array\\{name\\: string, id\\: string\\}, user\\: array\\{id\\: string, name\\: string, displayName\\: string\\}, pubKeyCredParams\\: array\\, authenticatorSelection\\: array\\, timeout\\: int\\<1, max\\>, attestation\\: non\\-empty\\-string\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''challenge'' and array\{challenge\: non\-empty\-string, rp\: array\{name\: string, id\: string\}, user\: array\{id\: string, name\: string, displayName\: string\}, pubKeyCredParams\: list\, authenticatorSelection\: array\, timeout\: int\<1, max\>, attestation\: non\-empty\-string\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/WebAuthn/WebauthnLibServerTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'pubKeyCredParams' and array\\{challenge\\: non\\-falsy\\-string, rp\\: array\\{name\\: string, id\\: string\\}, user\\: array\\{id\\: string, name\\: string, displayName\\: string\\}, pubKeyCredParams\\: array\\, authenticatorSelection\\: array\\, timeout\\: int\\<1, max\\>, attestation\\: non\\-empty\\-string\\} will always evaluate to true\\.$#" + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with ''pubKeyCredParams'' and array\{challenge\: non\-falsy\-string, rp\: array\{name\: string, id\: string\}, user\: array\{id\: string, name\: string, displayName\: string\}, pubKeyCredParams\: list\, authenticatorSelection\: array\, timeout\: int\<1, max\>, attestation\: non\-empty\-string\} will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType count: 1 path: tests/unit/WebAuthn/WebauthnLibServerTest.php