Skip to content

Commit

Permalink
Extract tools classes to the Tools namespace
Browse files Browse the repository at this point in the history
Signed-off-by: Maurício Meneghini Fauth <[email protected]>
  • Loading branch information
MauricioFauth committed May 28, 2020
1 parent ee9797b commit b5a01cc
Show file tree
Hide file tree
Showing 6 changed files with 798 additions and 657 deletions.
125 changes: 125 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -1615,6 +1615,131 @@ parameters:
count: 1
path: src/TokensList.php

-
message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Tools\\\\ContextGenerator\\:\\:\\$LABELS_FLAGS type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Tools/ContextGenerator.php

-
message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Tools\\\\ContextGenerator\\:\\:\\$LINKS type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Tools/ContextGenerator.php

-
message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Tools\\\\ContextGenerator\\:\\:sortWords\\(\\) has parameter \\$arr with no value type specified in iterable type array\\.$#"
count: 1
path: src/Tools/ContextGenerator.php

-
message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Tools\\\\ContextGenerator\\:\\:sortWords\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Tools/ContextGenerator.php

-
message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Tools\\\\ContextGenerator\\:\\:readWords\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Tools/ContextGenerator.php

-
message: "#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, array\\<int, string\\>\\|false given\\.$#"
count: 1
path: src/Tools/ContextGenerator.php

-
message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Tools\\\\ContextGenerator\\:\\:printWords\\(\\) has parameter \\$words with no value type specified in iterable type array\\.$#"
count: 1
path: src/Tools/ContextGenerator.php

-
message: "#^Strict comparison using \\=\\=\\= between int and float will always evaluate to false\\.$#"
count: 1
path: src/Tools/ContextGenerator.php

-
message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Tools\\\\ContextGenerator\\:\\:generate\\(\\) has parameter \\$options with no value type specified in iterable type array\\.$#"
count: 1
path: src/Tools/ContextGenerator.php

-
message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Tools\\\\ContextGenerator\\:\\:build\\(\\) has no return typehint specified\\.$#"
count: 1
path: src/Tools/ContextGenerator.php

-
message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Tools\\\\ContextGenerator\\:\\:buildAll\\(\\) has no return typehint specified\\.$#"
count: 1
path: src/Tools/ContextGenerator.php

-
message: "#^Argument of an invalid type array\\<int, string\\>\\|false supplied for foreach, only iterables are supported\\.$#"
count: 1
path: src/Tools/ContextGenerator.php

-
message: "#^Call to function sprintf\\(\\) on a separate line has no effect\\.$#"
count: 1
path: src/Tools/ContextGenerator.php

-
message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Tools\\\\TestGenerator\\:\\:generate\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Tools/TestGenerator.php

-
message: "#^PHPDoc tag @var has no value type specified in iterable type array\\.$#"
count: 2
path: src/Tools/TestGenerator.php

-
message: "#^Access to an undefined property Exception\\:\\:\\$ch\\.$#"
count: 1
path: src/Tools/TestGenerator.php

-
message: "#^Access to an undefined property Exception\\:\\:\\$pos\\.$#"
count: 1
path: src/Tools/TestGenerator.php

-
message: "#^Access to an undefined property Exception\\:\\:\\$token\\.$#"
count: 1
path: src/Tools/TestGenerator.php

-
message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Tools\\\\TestGenerator\\:\\:build\\(\\) has no return typehint specified\\.$#"
count: 1
path: src/Tools/TestGenerator.php

-
message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Tools\\\\TestGenerator\\:\\:buildAll\\(\\) has no return typehint specified\\.$#"
count: 1
path: src/Tools/TestGenerator.php

-
message: "#^Argument of an invalid type array\\<int, string\\>\\|false supplied for foreach, only iterables are supported\\.$#"
count: 1
path: src/Tools/TestGenerator.php

-
message: "#^Parameter \\#1 \\$filename of function is_dir expects string, string\\|null given\\.$#"
count: 1
path: src/Tools/TestGenerator.php

-
message: "#^Parameter \\#1 \\$pathname of function mkdir expects string, string\\|null given\\.$#"
count: 1
path: src/Tools/TestGenerator.php

-
message: "#^Parameter \\#1 \\$str of function substr expects string, string\\|null given\\.$#"
count: 1
path: src/Tools/TestGenerator.php

-
message: "#^Call to function sprintf\\(\\) on a separate line has no effect\\.$#"
count: 2
path: src/Tools/TestGenerator.php

-
message: "#^Method PhpMyAdmin\\\\SqlParser\\\\Translator\\:\\:load\\(\\) has no return typehint specified\\.$#"
count: 1
Expand Down
3 changes: 3 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ parameters:
- bin
- src
- tests
- tools
reportUnmatchedIgnoredErrors: true
inferPrivatePropertyTypeFromConstructor: true
excludes_analyse:
- tools/sami-config.php
Loading

0 comments on commit b5a01cc

Please sign in to comment.