Skip to content

Feature/from 5 9 define context keywords relying on token constants #570

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
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,156 changes: 880 additions & 276 deletions src/Contexts/ContextMariaDb100000.php

Large diffs are not rendered by default.

1,380 changes: 1,056 additions & 324 deletions src/Contexts/ContextMariaDb100100.php

Large diffs are not rendered by default.

1,383 changes: 1,058 additions & 325 deletions src/Contexts/ContextMariaDb100200.php

Large diffs are not rendered by default.

1,387 changes: 1,062 additions & 325 deletions src/Contexts/ContextMariaDb100300.php

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

1,033 changes: 786 additions & 247 deletions src/Contexts/ContextMySql50000.php

Large diffs are not rendered by default.

1,138 changes: 868 additions & 270 deletions src/Contexts/ContextMySql50100.php

Large diffs are not rendered by default.

1,154 changes: 879 additions & 275 deletions src/Contexts/ContextMySql50500.php

Large diffs are not rendered by default.

1,283 changes: 982 additions & 301 deletions src/Contexts/ContextMySql50600.php

Large diffs are not rendered by default.

1,380 changes: 1,056 additions & 324 deletions src/Contexts/ContextMySql50700.php

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

Loading
Loading