Skip to content

Commit 77bbb17

Browse files
authored
Introduce ISO-15924 Scripts (#67)
1 parent 64ceb8d commit 77bbb17

30 files changed

+1269
-21
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ end_of_line = lf
99
charset = utf-8
1010
trim_trailing_whitespace = true
1111
insert_final_newline = true
12-
max_line_length = 200
12+
max_line_length = 300
1313
eclint_block_comment_start = /*
1414
eclint_block_comment = *
1515
eclint_block_comment_end = */
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Daily Scripts spec update
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '55 17 * * *'
7+
8+
jobs:
9+
update-specs:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
- name: Install dependencies
15+
run: composer install
16+
- name: Run standard update command
17+
run: composer update-spec -- --type=script
18+
- name: Run CSFixer
19+
run: composer cs:fix
20+
- name: Create Pull Request
21+
id: cpr
22+
uses: peter-evans/create-pull-request@v4
23+
with:
24+
commit-message: Automatic Scripts spec update from upstream changes
25+
delete-branch: true
26+
title: 'Automatic Scripts spec update'
27+
branch: update-spec/scripts
28+
body: |
29+
This PR makes sure the content of this package is updated with upstream changes in the specs.
30+
labels: |
31+
spec-update
32+
automated pr
33+
reviewers: prinsfrank

dev/DataSource/Country/CountryAlpha2Source.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static function transformName(string $key): ?string
3737
return $key;
3838
}
3939

40-
public static function transformValue(string $value): string|int|null
40+
public static function transformValue(string $value, ?string $key): string|int|null
4141
{
4242
return $value;
4343
}

dev/DataSource/Country/CountryAlpha3Source.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static function transformName(string $key): ?string
3737
return $key;
3838
}
3939

40-
public static function transformValue(string $value): string|int|null
40+
public static function transformValue(string $value, ?string $key): string|int|null
4141
{
4242
return $value;
4343
}

dev/DataSource/Country/CountryNameSource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static function transformName(string $key): ?string
3737
return $key;
3838
}
3939

40-
public static function transformValue(string $value): string|int|null
40+
public static function transformValue(string $value, ?string $key): string|int|null
4141
{
4242
return $value;
4343
}

dev/DataSource/Country/CountryNumericSource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static function transformName(string $key): ?string
3737
return $key;
3838
}
3939

40-
public static function transformValue(string $value): string|int|null
40+
public static function transformValue(string $value, ?string $key): string|int|null
4141
{
4242
return $value;
4343
}

dev/DataSource/Currency/CurrencyAlpha3Source.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static function transformName(string $key): ?string
3535
return $key;
3636
}
3737

38-
public static function transformValue(string $value): string|int|null
38+
public static function transformValue(string $value, ?string $key): string|int|null
3939
{
4040
return $value;
4141
}

dev/DataSource/Currency/CurrencyNameSource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static function transformName(string $key): ?string
3636
return $key;
3737
}
3838

39-
public static function transformValue(string $value): string|int|null
39+
public static function transformValue(string $value, ?string $key): string|int|null
4040
{
4141
return $value;
4242
}

dev/DataSource/Currency/CurrencyNumericSource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static function transformName(string $key): ?string
3535
return $key;
3636
}
3737

38-
public static function transformValue(string $value): string|int|null
38+
public static function transformValue(string $value, ?string $key): string|int|null
3939
{
4040
return $value;
4141
}

dev/DataSource/DataSource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface DataSource
77
{
88
public static function transformName(string $key): ?string;
99

10-
public static function transformValue(string $value): string|int|null;
10+
public static function transformValue(string $value, ?string $key): string|int|null;
1111

1212
/** @return class-string<\BackedEnum> */
1313
public static function getSpecFQN(): string;

0 commit comments

Comments
 (0)