Visitar URL original
Merge pull request #19449 from kamil-tekiela/getErrorCount · phpmyadmin/phpmyadmin@7f5cd05 · GitHub
Skip to content

Commit 7f5cd05

Browse files
Merge pull request #19449 from kamil-tekiela/getErrorCount
Removal of $GLOBALS['errors']
2 parents 8138fd1 + ea4d8e4 commit 7f5cd05

11 files changed

Lines changed: 78 additions & 288 deletions

File tree

‎phpstan-baseline.neon‎

Lines changed: 2 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -2127,12 +2127,6 @@ parameters:
21272127
count: 16
21282128
path: src/Controllers/Database/EventsController.php
21292129

2130-
-
2131-
message: '#^Only booleans are allowed in \|\|, int\<0, max\> given on the left side\.$#'
2132-
identifier: booleanOr.leftNotBoolean
2133-
count: 1
2134-
path: src/Controllers/Database/EventsController.php
2135-
21362130
-
21372131
message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#'
21382132
identifier: argument.type
@@ -2151,12 +2145,6 @@ parameters:
21512145
count: 1
21522146
path: src/Controllers/Database/EventsController.php
21532147

2154-
-
2155-
message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#'
2156-
identifier: argument.type
2157-
count: 1
2158-
path: src/Controllers/Database/EventsController.php
2159-
21602148
-
21612149
message: '#^Parameter \#2 \$name of method PhpMyAdmin\\Database\\Events\:\:getDetails\(\) expects string, mixed given\.$#'
21622150
identifier: argument.type
@@ -2304,12 +2292,6 @@ parameters:
23042292
count: 1
23052293
path: src/Controllers/Database/RoutinesController.php
23062294

2307-
-
2308-
message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#'
2309-
identifier: booleanNot.exprNotBoolean
2310-
count: 1
2311-
path: src/Controllers/Database/RoutinesController.php
2312-
23132295
-
23142296
message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#'
23152297
identifier: argument.type
@@ -5745,12 +5727,6 @@ parameters:
57455727
count: 11
57465728
path: src/Controllers/Triggers/IndexController.php
57475729

5748-
-
5749-
message: '#^Only booleans are allowed in \|\|, int\<0, max\> given on the left side\.$#'
5750-
identifier: booleanOr.leftNotBoolean
5751-
count: 1
5752-
path: src/Controllers/Triggers/IndexController.php
5753-
57545730
-
57555731
message: '#^Parameter \#1 \$identifier of static method PhpMyAdmin\\Util\:\:backquote\(\) expects string\|Stringable\|null, mixed given\.$#'
57565732
identifier: argument.type
@@ -5769,12 +5745,6 @@ parameters:
57695745
count: 1
57705746
path: src/Controllers/Triggers/IndexController.php
57715747

5772-
-
5773-
message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#'
5774-
identifier: argument.type
5775-
count: 1
5776-
path: src/Controllers/Triggers/IndexController.php
5777-
57785748
-
57795749
message: '#^Parameter \#3 \$name of method PhpMyAdmin\\Triggers\\Triggers\:\:getTriggerByName\(\) expects string, mixed given\.$#'
57805750
identifier: argument.type
@@ -6579,18 +6549,6 @@ parameters:
65796549
count: 1
65806550
path: src/Database/Designer/Common.php
65816551

6582-
-
6583-
message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#'
6584-
identifier: foreach.nonIterable
6585-
count: 1
6586-
path: src/Database/Events.php
6587-
6588-
-
6589-
message: '#^Binary operation "\." between ''\<li\>'' and mixed results in an error\.$#'
6590-
identifier: binaryOp.invalid
6591-
count: 1
6592-
path: src/Database/Events.php
6593-
65946552
-
65956553
message: '#^Binary operation "\.\=" between non\-falsy\-string and mixed results in an error\.$#'
65966554
identifier: assignOp.invalid
@@ -6606,12 +6564,6 @@ parameters:
66066564
count: 1
66076565
path: src/Database/Events.php
66086566

6609-
-
6610-
message: '#^Cannot access an offset on mixed\.$#'
6611-
identifier: offsetAccess.nonOffsetAccessible
6612-
count: 7
6613-
path: src/Database/Events.php
6614-
66156567
-
66166568
message: '#^Cannot cast mixed to int\.$#'
66176569
identifier: cast.int
@@ -6705,7 +6657,7 @@ parameters:
67056657
-
67066658
message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#'
67076659
identifier: foreach.nonIterable
6708-
count: 3
6660+
count: 2
67096661
path: src/Database/Routines.php
67106662

67116663
-
@@ -6714,12 +6666,6 @@ parameters:
67146666
count: 2
67156667
path: src/Database/Routines.php
67166668

6717-
-
6718-
message: '#^Binary operation "\." between ''\<li\>'' and mixed results in an error\.$#'
6719-
identifier: binaryOp.invalid
6720-
count: 1
6721-
path: src/Database/Routines.php
6722-
67236669
-
67246670
message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#'
67256671
identifier: binaryOp.invalid
@@ -6741,12 +6687,6 @@ parameters:
67416687
count: 3
67426688
path: src/Database/Routines.php
67436689

6744-
-
6745-
message: '#^Cannot access an offset on mixed\.$#'
6746-
identifier: offsetAccess.nonOffsetAccessible
6747-
count: 9
6748-
path: src/Database/Routines.php
6749-
67506690
-
67516691
message: '#^Cannot access offset int\<0, max\> on mixed\.$#'
67526692
identifier: offsetAccess.nonOffsetAccessible
@@ -6804,7 +6744,7 @@ parameters:
68046744
-
68056745
message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#'
68066746
identifier: empty.notAllowed
6807-
count: 22
6747+
count: 21
68086748
path: src/Database/Routines.php
68096749

68106750
-
@@ -6909,12 +6849,6 @@ parameters:
69096849
count: 4
69106850
path: src/Database/Routines.php
69116851

6912-
-
6913-
message: '#^Parameter \#1 \.\.\.\$arrays of function array_merge expects array, mixed given\.$#'
6914-
identifier: argument.type
6915-
count: 1
6916-
path: src/Database/Routines.php
6917-
69186852
-
69196853
message: '#^Parameter \#2 \$array of function implode expects array\|null, list\<string\|null\>\|string given\.$#'
69206854
identifier: argument.type
@@ -18111,18 +18045,6 @@ parameters:
1811118045
count: 1
1811218046
path: src/Transformations.php
1811318047

18114-
-
18115-
message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#'
18116-
identifier: foreach.nonIterable
18117-
count: 1
18118-
path: src/Triggers/Triggers.php
18119-
18120-
-
18121-
message: '#^Binary operation "\." between ''\<li\>'' and mixed results in an error\.$#'
18122-
identifier: binaryOp.invalid
18123-
count: 1
18124-
path: src/Triggers/Triggers.php
18125-
1812618048
-
1812718049
message: '#^Binary operation "\.\=" between non\-falsy\-string and mixed results in an error\.$#'
1812818050
identifier: assignOp.invalid
@@ -18138,12 +18060,6 @@ parameters:
1813818060
count: 1
1813918061
path: src/Triggers/Triggers.php
1814018062

18141-
-
18142-
message: '#^Cannot access an offset on mixed\.$#'
18143-
identifier: offsetAccess.nonOffsetAccessible
18144-
count: 7
18145-
path: src/Triggers/Triggers.php
18146-
1814718063
-
1814818064
message: '#^Cannot call method getCreateSql\(\) on PhpMyAdmin\\Triggers\\Trigger\|null\.$#'
1814918065
identifier: method.nonObject

0 commit comments

Comments
 (0)