Skip to content

Commit

Permalink
PHP 8.2 support (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
SRWieZ authored Oct 17, 2024
1 parent 708437a commit a157e71
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions meta/stubs/DefaultGrammars.php.stub
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ namespace Phiki\Grammar;

abstract class DefaultGrammars
{
final const array NAMES_TO_PATHS = [
final const NAMES_TO_PATHS = [
'txt' => __DIR__ . '/../../resources/languages/txt.json',
%s
];

final const array SCOPES_TO_NAMES = [
final const SCOPES_TO_NAMES = [
'text.txt' => 'txt',
%s
];
Expand Down
2 changes: 1 addition & 1 deletion meta/stubs/DefaultThemes.php.stub
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ namespace Phiki\Theme;

abstract class DefaultThemes
{
final const array NAMES_TO_PATHS = [%s];
final const NAMES_TO_PATHS = [%s];
}
4 changes: 2 additions & 2 deletions src/Grammar/DefaultGrammars.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

abstract class DefaultGrammars
{
final const array NAMES_TO_PATHS = [
final const NAMES_TO_PATHS = [
'txt' => __DIR__.'/../../resources/languages/txt.json',
'astro' => __DIR__.'/../../resources/languages/astro.json',
'hy' => __DIR__.'/../../resources/languages/hy.json',
Expand Down Expand Up @@ -221,7 +221,7 @@ abstract class DefaultGrammars
'asm' => __DIR__.'/../../resources/languages/asm.json',
];

final const array SCOPES_TO_NAMES = [
final const SCOPES_TO_NAMES = [
'text.txt' => 'txt',
'source.astro' => 'astro',
'source.hy' => 'hy',
Expand Down
2 changes: 1 addition & 1 deletion src/Theme/DefaultThemes.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

abstract class DefaultThemes
{
final const array NAMES_TO_PATHS = ['one-dark-pro' => __DIR__.'/../../resources/themes/one-dark-pro.json',
final const NAMES_TO_PATHS = ['one-dark-pro' => __DIR__.'/../../resources/themes/one-dark-pro.json',
'solarized-light' => __DIR__.'/../../resources/themes/solarized-light.json',
'vitesse-black' => __DIR__.'/../../resources/themes/vitesse-black.json',
'github-light-default' => __DIR__.'/../../resources/themes/github-light-default.json',
Expand Down

0 comments on commit a157e71

Please sign in to comment.