Skip to content

Commit 9fa8ca9

Browse files
committed
Merge #570 define context keywords relying on token constants
- Closes #570 Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2 parents 6dc815b + 7968818 commit 9fa8ca9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+28983
-8335
lines changed

phpcs.xml.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
<exclude name="Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps"/>
2020
</rule>
2121

22+
<rule ref="Generic.Files.LineLength.TooLong">
23+
<exclude-pattern>src/Contexts/*</exclude-pattern>
24+
</rule>
25+
2226
<rule ref="SlevomatCodingStandard.ControlStructures.RequireSingleLineCondition"/>
2327
<rule ref="SlevomatCodingStandard.Functions.RequireSingleLineCall"/>
2428
<rule ref="SlevomatCodingStandard.Whitespaces.DuplicateSpaces">

phpstan-baseline.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -800,11 +800,6 @@ parameters:
800800
count: 1
801801
path: src/Tools/ContextGenerator.php
802802

803-
-
804-
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\\.$#"
805-
count: 1
806-
path: src/Tools/ContextGenerator.php
807-
808803
-
809804
message: "#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, array\\<int, string\\>\\|false given\\.$#"
810805
count: 1

psalm-baseline.xml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,9 @@
656656
<file src="src/Contexts/ContextMySql80300.php">
657657
<PropertyTypeCoercion occurrences="1"/>
658658
</file>
659+
<file src="src/Contexts/ContextMySql80400.php">
660+
<PropertyTypeCoercion occurrences="1"/>
661+
</file>
659662
<file src="src/Lexer.php">
660663
<LoopInvalidation occurrences="3">
661664
<code>$this-&gt;last</code>
@@ -1160,15 +1163,6 @@
11601163
<code>is_array($list)</code>
11611164
</RedundantConditionGivenDocblockType>
11621165
</file>
1163-
<file src="src/Tools/ContextGenerator.php">
1164-
<PossiblyNullArgument occurrences="1">
1165-
<code>$options['keywords']</code>
1166-
</PossiblyNullArgument>
1167-
<RedundantCondition occurrences="2">
1168-
<code>++$i !== $count</code>
1169-
<code>++$i !== $count</code>
1170-
</RedundantCondition>
1171-
</file>
11721166
<file src="src/Tools/CustomJsonSerializer.php">
11731167
<MixedAssignment occurrences="2">
11741168
<code>$data[$property]</code>

src/Contexts/ContextMariaDb100000.php

Lines changed: 881 additions & 276 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMariaDb100100.php

Lines changed: 1057 additions & 324 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMariaDb100200.php

Lines changed: 1059 additions & 325 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMariaDb100300.php

Lines changed: 1063 additions & 325 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMariaDb100400.php

Lines changed: 1064 additions & 325 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMariaDb100500.php

Lines changed: 1064 additions & 325 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMariaDb100600.php

Lines changed: 1064 additions & 325 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMariaDb100700.php

Lines changed: 1065 additions & 325 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMariaDb100800.php

Lines changed: 1065 additions & 325 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMariaDb100900.php

Lines changed: 1065 additions & 325 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMariaDb101000.php

Lines changed: 1065 additions & 325 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMariaDb101100.php

Lines changed: 1065 additions & 325 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMariaDb110000.php

Lines changed: 1065 additions & 325 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMariaDb110100.php

Lines changed: 1065 additions & 325 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMariaDb110200.php

Lines changed: 1065 additions & 325 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMariaDb110300.php

Lines changed: 1065 additions & 325 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMariaDb110400.php

Lines changed: 1065 additions & 325 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMySql50000.php

Lines changed: 787 additions & 247 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMySql50100.php

Lines changed: 869 additions & 270 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMySql50500.php

Lines changed: 880 additions & 275 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMySql50600.php

Lines changed: 983 additions & 301 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMySql50700.php

Lines changed: 1057 additions & 324 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMySql80000.php

Lines changed: 1064 additions & 325 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMySql80100.php

Lines changed: 1064 additions & 325 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMySql80200.php

Lines changed: 1064 additions & 325 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMySql80300.php

Lines changed: 1064 additions & 325 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)