diff options
author | MaurĂcio Meneghini Fauth <mauricio@fauth.dev> | 2022-10-18 02:24:33 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-18 02:24:33 +0300 |
commit | 02161370941332d3ceff1c6462be4e5a8d5e6b4a (patch) | |
tree | b05b88116b03ab13fcbe9cf8a3dc8fa6acac5f9d /phpstan-baseline.neon | |
parent | bc71e6c474d9ba99a0c1d7d0f151b53be95ec1e8 (diff) | |
parent | 7ca71c79df41b9cc9ac96e133cbb7a31b7b2a297 (diff) |
Merge pull request #17799 from kamil-tekiela/js-escaping
Refactor JS escaping mechanism
Diffstat (limited to 'phpstan-baseline.neon')
-rw-r--r-- | phpstan-baseline.neon | 30 |
1 files changed, 5 insertions, 25 deletions
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index ad5d1802fa..33cbded2fb 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -401,6 +401,11 @@ parameters: path: libraries/classes/Config/FormDisplay.php - + message: "#^Cannot cast mixed to string\\.$#" + count: 1 + path: libraries/classes/Config/FormDisplay.php + + - message: "#^Call to function function_exists\\(\\) with 'bzcompress'\\|'gzcompress'\\|'gzencode' will always evaluate to true\\.$#" count: 1 path: libraries/classes/Config/FormDisplay.php @@ -456,11 +461,6 @@ parameters: path: libraries/classes/Config/FormDisplay.php - - message: "#^Parameter \\#1 \\$string of static method PhpMyAdmin\\\\Sanitize\\:\\:escapeJsString\\(\\) expects string, mixed given\\.$#" - count: 2 - path: libraries/classes/Config/FormDisplay.php - - - message: "#^Parameter \\#2 \\$array of function implode expects array\\<string\\>, mixed given\\.$#" count: 1 path: libraries/classes/Config/FormDisplay.php @@ -6986,16 +6986,6 @@ parameters: path: libraries/classes/Sanitize.php - - message: "#^Casting to string something that's already string\\.$#" - count: 2 - path: libraries/classes/Sanitize.php - - - - message: "#^Method PhpMyAdmin\\\\Sanitize\\:\\:escapeJsString\\(\\) should return string but returns string\\|null\\.$#" - count: 1 - path: libraries/classes/Sanitize.php - - - message: "#^Method PhpMyAdmin\\\\Sanitize\\:\\:replaceBBLink\\(\\) has parameter \\$found with no value type specified in iterable type array\\.$#" count: 1 path: libraries/classes/Sanitize.php @@ -7006,11 +6996,6 @@ parameters: path: libraries/classes/Sanitize.php - - message: "#^Parameter \\#1 \\$value of static method PhpMyAdmin\\\\Sanitize\\:\\:formatJsVal\\(\\) expects bool\\|int\\|string, mixed given\\.$#" - count: 1 - path: libraries/classes/Sanitize.php - - - message: "#^Method PhpMyAdmin\\\\SavedSearches\\:\\:getCriterias\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 path: libraries/classes/SavedSearches.php @@ -11026,11 +11011,6 @@ parameters: path: test/classes/SanitizeTest.php - - message: "#^Method PhpMyAdmin\\\\Tests\\\\SanitizeTest\\:\\:escapeDataProvider\\(\\) return type has no value type specified in iterable type array\\.$#" - count: 1 - path: test/classes/SanitizeTest.php - - - message: "#^Method PhpMyAdmin\\\\Tests\\\\SanitizeTest\\:\\:variables\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 path: test/classes/SanitizeTest.php |