Skip to content

Commit

Permalink
Merge pull request #539 from MauricioFauth/new-contexts
Browse files Browse the repository at this point in the history
Add new contexts for MySQL and MariaDB
  • Loading branch information
MauricioFauth authored Jan 20, 2024
2 parents da696b6 + 132fa14 commit d5d1564
Show file tree
Hide file tree
Showing 14 changed files with 5,620 additions and 0 deletions.
12 changes: 12 additions & 0 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,12 @@
<file src="src/Contexts/ContextMariaDb110200.php">
<PropertyTypeCoercion occurrences="1"/>
</file>
<file src="src/Contexts/ContextMariaDb110300.php">
<PropertyTypeCoercion occurrences="1"/>
</file>
<file src="src/Contexts/ContextMariaDb110400.php">
<PropertyTypeCoercion occurrences="1"/>
</file>
<file src="src/Contexts/ContextMySql50000.php">
<PropertyTypeCoercion occurrences="1"/>
</file>
Expand All @@ -644,6 +650,12 @@
<file src="src/Contexts/ContextMySql80100.php">
<PropertyTypeCoercion occurrences="1"/>
</file>
<file src="src/Contexts/ContextMySql80200.php">
<PropertyTypeCoercion occurrences="1"/>
</file>
<file src="src/Contexts/ContextMySql80300.php">
<PropertyTypeCoercion occurrences="1"/>
</file>
<file src="src/Exceptions/ParserException.php">
<PossiblyNullPropertyAssignmentValue occurrences="1">
<code>$token</code>
Expand Down
356 changes: 356 additions & 0 deletions src/Contexts/ContextMariaDb110300.php

Large diffs are not rendered by default.

356 changes: 356 additions & 0 deletions src/Contexts/ContextMariaDb110400.php

Large diffs are not rendered by default.

356 changes: 356 additions & 0 deletions src/Contexts/ContextMySql80200.php

Large diffs are not rendered by default.

356 changes: 356 additions & 0 deletions src/Contexts/ContextMySql80300.php

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/Tools/ContextGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ class ContextGenerator
'MySql50700' => 'https://dev.mysql.com/doc/refman/5.7/en/keywords.html',
'MySql80000' => 'https://dev.mysql.com/doc/refman/8.0/en/keywords.html',
'MySql80100' => 'https://dev.mysql.com/doc/refman/8.1/en/keywords.html',
'MySql80200' => 'https://dev.mysql.com/doc/refman/8.2/en/keywords.html',
'MySql80300' => 'https://dev.mysql.com/doc/refman/8.3/en/keywords.html',
'MariaDb100000' => 'https://mariadb.com/kb/en/reserved-words/',
'MariaDb100100' => 'https://mariadb.com/kb/en/reserved-words/',
'MariaDb100200' => 'https://mariadb.com/kb/en/reserved-words/',
Expand All @@ -77,6 +79,8 @@ class ContextGenerator
'MariaDb110000' => 'https://mariadb.com/kb/en/reserved-words/',
'MariaDb110100' => 'https://mariadb.com/kb/en/reserved-words/',
'MariaDb110200' => 'https://mariadb.com/kb/en/reserved-words/',
'MariaDb110300' => 'https://mariadb.com/kb/en/reserved-words/',
'MariaDb110400' => 'https://mariadb.com/kb/en/reserved-words/',
];

/**
Expand Down
Loading

0 comments on commit d5d1564

Please sign in to comment.