Skip to content

Commit d5d1564

Browse files
Merge pull request #539 from MauricioFauth/new-contexts
Add new contexts for MySQL and MariaDB
2 parents da696b6 + 132fa14 commit d5d1564

14 files changed

+5620
-0
lines changed

psalm-baseline.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,12 @@
623623
<file src="src/Contexts/ContextMariaDb110200.php">
624624
<PropertyTypeCoercion occurrences="1"/>
625625
</file>
626+
<file src="src/Contexts/ContextMariaDb110300.php">
627+
<PropertyTypeCoercion occurrences="1"/>
628+
</file>
629+
<file src="src/Contexts/ContextMariaDb110400.php">
630+
<PropertyTypeCoercion occurrences="1"/>
631+
</file>
626632
<file src="src/Contexts/ContextMySql50000.php">
627633
<PropertyTypeCoercion occurrences="1"/>
628634
</file>
@@ -644,6 +650,12 @@
644650
<file src="src/Contexts/ContextMySql80100.php">
645651
<PropertyTypeCoercion occurrences="1"/>
646652
</file>
653+
<file src="src/Contexts/ContextMySql80200.php">
654+
<PropertyTypeCoercion occurrences="1"/>
655+
</file>
656+
<file src="src/Contexts/ContextMySql80300.php">
657+
<PropertyTypeCoercion occurrences="1"/>
658+
</file>
647659
<file src="src/Exceptions/ParserException.php">
648660
<PossiblyNullPropertyAssignmentValue occurrences="1">
649661
<code>$token</code>

src/Contexts/ContextMariaDb110300.php

Lines changed: 356 additions & 0 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMariaDb110400.php

Lines changed: 356 additions & 0 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMySql80200.php

Lines changed: 356 additions & 0 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMySql80300.php

Lines changed: 356 additions & 0 deletions
Large diffs are not rendered by default.

src/Tools/ContextGenerator.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ class ContextGenerator
6262
'MySql50700' => 'https://dev.mysql.com/doc/refman/5.7/en/keywords.html',
6363
'MySql80000' => 'https://dev.mysql.com/doc/refman/8.0/en/keywords.html',
6464
'MySql80100' => 'https://dev.mysql.com/doc/refman/8.1/en/keywords.html',
65+
'MySql80200' => 'https://dev.mysql.com/doc/refman/8.2/en/keywords.html',
66+
'MySql80300' => 'https://dev.mysql.com/doc/refman/8.3/en/keywords.html',
6567
'MariaDb100000' => 'https://mariadb.com/kb/en/reserved-words/',
6668
'MariaDb100100' => 'https://mariadb.com/kb/en/reserved-words/',
6769
'MariaDb100200' => 'https://mariadb.com/kb/en/reserved-words/',
@@ -77,6 +79,8 @@ class ContextGenerator
7779
'MariaDb110000' => 'https://mariadb.com/kb/en/reserved-words/',
7880
'MariaDb110100' => 'https://mariadb.com/kb/en/reserved-words/',
7981
'MariaDb110200' => 'https://mariadb.com/kb/en/reserved-words/',
82+
'MariaDb110300' => 'https://mariadb.com/kb/en/reserved-words/',
83+
'MariaDb110400' => 'https://mariadb.com/kb/en/reserved-words/',
8084
];
8185

8286
/**

0 commit comments

Comments
 (0)