Skip to content

Commit

Permalink
Add generic annotation to the UtfString class
Browse files Browse the repository at this point in the history
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
  • Loading branch information
MauricioFauth committed Dec 28, 2021
1 parent 2f8df52 commit dbc80de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Expand Up @@ -1540,11 +1540,6 @@ parameters:
count: 1
path: src/Tools/TestGenerator.php

-
message: "#^Class PhpMyAdmin\\\\SqlParser\\\\UtfString implements generic interface ArrayAccess but does not specify its types\\: TKey, TValue$#"
count: 1
path: src/UtfString.php

-
message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Utils\\\\BufferedQuery\\:\\:__construct\\(\\) has parameter \\$options with no value type specified in iterable type array\\.$#"
count: 1
Expand Down
2 changes: 2 additions & 0 deletions src/UtfString.php
Expand Up @@ -25,6 +25,8 @@
* Implements array-like access for UTF-8 strings.
*
* In this library, this class should be used to parse UTF-8 queries.
*
* @implements ArrayAccess<int, string>
*/
class UtfString implements ArrayAccess
{
Expand Down

0 comments on commit dbc80de

Please sign in to comment.