Skip to content

Commit

Permalink
Merge #570 define context keywords relying on token constants
Browse files Browse the repository at this point in the history
- Closes #570

Signed-off-by: Maurício Meneghini Fauth <[email protected]>
  • Loading branch information
MauricioFauth committed Aug 25, 2024
2 parents 6dc815b + 7968818 commit 9fa8ca9
Show file tree
Hide file tree
Showing 49 changed files with 28,983 additions and 8,335 deletions.
4 changes: 4 additions & 0 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
<exclude name="Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps"/>
</rule>

<rule ref="Generic.Files.LineLength.TooLong">
<exclude-pattern>src/Contexts/*</exclude-pattern>
</rule>

<rule ref="SlevomatCodingStandard.ControlStructures.RequireSingleLineCondition"/>
<rule ref="SlevomatCodingStandard.Functions.RequireSingleLineCall"/>
<rule ref="SlevomatCodingStandard.Whitespaces.DuplicateSpaces">
Expand Down
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -800,11 +800,6 @@ parameters:
count: 1
path: src/Tools/ContextGenerator.php

-
message: "#^Offset 'keywords' on array\\{name\\: string, class\\: string, link\\: string, keywords\\: array\\<int, array\\<int, array\\<int, string\\>\\>\\>\\} in isset\\(\\) always exists and is not nullable\\.$#"
count: 1
path: src/Tools/ContextGenerator.php

-
message: "#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, array\\<int, string\\>\\|false given\\.$#"
count: 1
Expand Down
12 changes: 3 additions & 9 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,9 @@
<file src="src/Contexts/ContextMySql80300.php">
<PropertyTypeCoercion occurrences="1"/>
</file>
<file src="src/Contexts/ContextMySql80400.php">
<PropertyTypeCoercion occurrences="1"/>
</file>
<file src="src/Lexer.php">
<LoopInvalidation occurrences="3">
<code>$this-&gt;last</code>
Expand Down Expand Up @@ -1160,15 +1163,6 @@
<code>is_array($list)</code>
</RedundantConditionGivenDocblockType>
</file>
<file src="src/Tools/ContextGenerator.php">
<PossiblyNullArgument occurrences="1">
<code>$options['keywords']</code>
</PossiblyNullArgument>
<RedundantCondition occurrences="2">
<code>++$i !== $count</code>
<code>++$i !== $count</code>
</RedundantCondition>
</file>
<file src="src/Tools/CustomJsonSerializer.php">
<MixedAssignment occurrences="2">
<code>$data[$property]</code>
Expand Down
1,157 changes: 881 additions & 276 deletions src/Contexts/ContextMariaDb100000.php

Large diffs are not rendered by default.

1,381 changes: 1,057 additions & 324 deletions src/Contexts/ContextMariaDb100100.php

Large diffs are not rendered by default.

1,384 changes: 1,059 additions & 325 deletions src/Contexts/ContextMariaDb100200.php

Large diffs are not rendered by default.

1,388 changes: 1,063 additions & 325 deletions src/Contexts/ContextMariaDb100300.php

Large diffs are not rendered by default.

1,389 changes: 1,064 additions & 325 deletions src/Contexts/ContextMariaDb100400.php

Large diffs are not rendered by default.

1,389 changes: 1,064 additions & 325 deletions src/Contexts/ContextMariaDb100500.php

Large diffs are not rendered by default.

1,389 changes: 1,064 additions & 325 deletions src/Contexts/ContextMariaDb100600.php

Large diffs are not rendered by default.

1,390 changes: 1,065 additions & 325 deletions src/Contexts/ContextMariaDb100700.php

Large diffs are not rendered by default.

1,390 changes: 1,065 additions & 325 deletions src/Contexts/ContextMariaDb100800.php

Large diffs are not rendered by default.

1,390 changes: 1,065 additions & 325 deletions src/Contexts/ContextMariaDb100900.php

Large diffs are not rendered by default.

1,390 changes: 1,065 additions & 325 deletions src/Contexts/ContextMariaDb101000.php

Large diffs are not rendered by default.

1,390 changes: 1,065 additions & 325 deletions src/Contexts/ContextMariaDb101100.php

Large diffs are not rendered by default.

1,390 changes: 1,065 additions & 325 deletions src/Contexts/ContextMariaDb110000.php

Large diffs are not rendered by default.

1,390 changes: 1,065 additions & 325 deletions src/Contexts/ContextMariaDb110100.php

Large diffs are not rendered by default.

1,390 changes: 1,065 additions & 325 deletions src/Contexts/ContextMariaDb110200.php

Large diffs are not rendered by default.

1,390 changes: 1,065 additions & 325 deletions src/Contexts/ContextMariaDb110300.php

Large diffs are not rendered by default.

1,390 changes: 1,065 additions & 325 deletions src/Contexts/ContextMariaDb110400.php

Large diffs are not rendered by default.

1,034 changes: 787 additions & 247 deletions src/Contexts/ContextMySql50000.php

Large diffs are not rendered by default.

1,139 changes: 869 additions & 270 deletions src/Contexts/ContextMySql50100.php

Large diffs are not rendered by default.

1,155 changes: 880 additions & 275 deletions src/Contexts/ContextMySql50500.php

Large diffs are not rendered by default.

1,284 changes: 983 additions & 301 deletions src/Contexts/ContextMySql50600.php

Large diffs are not rendered by default.

1,381 changes: 1,057 additions & 324 deletions src/Contexts/ContextMySql50700.php

Large diffs are not rendered by default.

1,389 changes: 1,064 additions & 325 deletions src/Contexts/ContextMySql80000.php

Large diffs are not rendered by default.

1,389 changes: 1,064 additions & 325 deletions src/Contexts/ContextMySql80100.php

Large diffs are not rendered by default.

1,389 changes: 1,064 additions & 325 deletions src/Contexts/ContextMySql80200.php

Large diffs are not rendered by default.

1,389 changes: 1,064 additions & 325 deletions src/Contexts/ContextMySql80300.php

Large diffs are not rendered by default.

Loading

0 comments on commit 9fa8ca9

Please sign in to comment.