Skip to content

Commit

Permalink
Merge pull request #601 from niconoe-/fix/587-add-mariadb-contexts
Browse files Browse the repository at this point in the history
Fix #587: Add MariaDb 11.6 and 11.7 contexts.
  • Loading branch information
MauricioFauth authored Dec 5, 2024
2 parents b14fd66 + f5fda18 commit 77e8675
Show file tree
Hide file tree
Showing 9 changed files with 4,310 additions and 0 deletions.
6 changes: 6 additions & 0 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,12 @@
<file src="src/Contexts/ContextMariaDb110500.php">
<PropertyTypeCoercion occurrences="1"/>
</file>
<file src="src/Contexts/ContextMariaDb110600.php">
<PropertyTypeCoercion occurrences="1"/>
</file>
<file src="src/Contexts/ContextMariaDb110700.php">
<PropertyTypeCoercion occurrences="1"/>
</file>
<file src="src/Contexts/ContextMySql50000.php">
<PropertyTypeCoercion occurrences="1"/>
</file>
Expand Down
1,096 changes: 1,096 additions & 0 deletions src/Contexts/ContextMariaDb110600.php

Large diffs are not rendered by default.

1,103 changes: 1,103 additions & 0 deletions src/Contexts/ContextMariaDb110700.php

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/Tools/ContextGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ class ContextGenerator
'MariaDb110300' => 'https://mariadb.com/kb/en/reserved-words/',
'MariaDb110400' => 'https://mariadb.com/kb/en/reserved-words/',
'MariaDb110500' => 'https://mariadb.com/kb/en/reserved-words/',
'MariaDb110600' => 'https://mariadb.com/kb/en/reserved-words/',
'MariaDb110700' => 'https://mariadb.com/kb/en/reserved-words/',
];

/**
Expand Down
4 changes: 4 additions & 0 deletions tests/Lexer/ContextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ public static function contextNamesProvider(): array
['MariaDb110300'],
['MariaDb110400'],
['MariaDb110500'],
['MariaDb110600'],
['MariaDb110700'],
];
}

Expand Down Expand Up @@ -184,6 +186,8 @@ public static function contextClassesProvider(): array
[Contexts\ContextMariaDb110300::class],
[Contexts\ContextMariaDb110400::class],
[Contexts\ContextMariaDb110500::class],
[Contexts\ContextMariaDb110600::class],
[Contexts\ContextMariaDb110700::class],
];
}

Expand Down
Loading

0 comments on commit 77e8675

Please sign in to comment.