Skip to content

Commit dbc80de

Browse files
committed
Add generic annotation to the UtfString class
Signed-off-by: Maurício Meneghini Fauth <[email protected]>
1 parent 2f8df52 commit dbc80de

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,11 +1540,6 @@ parameters:
15401540
count: 1
15411541
path: src/Tools/TestGenerator.php
15421542

1543-
-
1544-
message: "#^Class PhpMyAdmin\\\\SqlParser\\\\UtfString implements generic interface ArrayAccess but does not specify its types\\: TKey, TValue$#"
1545-
count: 1
1546-
path: src/UtfString.php
1547-
15481543
-
15491544
message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\BufferedQuery\\:\\:__construct\\(\\) has parameter \\$options with no value type specified in iterable type array\\.$#"
15501545
count: 1

src/UtfString.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
* Implements array-like access for UTF-8 strings.
2626
*
2727
* In this library, this class should be used to parse UTF-8 queries.
28+
*
29+
* @implements ArrayAccess<int, string>
2830
*/
2931
class UtfString implements ArrayAccess
3032
{

0 commit comments

Comments
 (0)