diff options
| author | Zhineng Li <[email protected]> | 2026-01-21 11:05:07 +0800 |
|---|---|---|
| committer | Zhineng Li <[email protected]> | 2026-01-21 11:05:07 +0800 |
| commit | a5de9abfebcde99547882e4dd6142ddf096606ef (patch) | |
| tree | 0eed673f181f0eb4b439a26fcbd06bae5b6c86d2 /src/RegistrationNumber.php | |
| parent | 2844a84d2de3054836818fdf5098e50ba1a33eae (diff) | |
| download | vehicle-license-china-a5de9abfebcde99547882e4dd6142ddf096606ef.tar.gz vehicle-license-china-a5de9abfebcde99547882e4dd6142ddf096606ef.zip | |
support php 8.2
Diffstat (limited to 'src/RegistrationNumber.php')
| -rw-r--r-- | src/RegistrationNumber.php | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/RegistrationNumber.php b/src/RegistrationNumber.php index 1b5e936..e560872 100644 --- a/src/RegistrationNumber.php +++ b/src/RegistrationNumber.php @@ -11,7 +11,7 @@ final readonly class RegistrationNumber * * @var string[][] */ - private const array AUTHORITIES = [ + private const AUTHORITIES = [ '京' => [ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', @@ -129,7 +129,7 @@ final readonly class RegistrationNumber /** * @var string[] */ - private const array CLEAN_ENERGY_FIRST_LETTERS = [ + private const CLEAN_ENERGY_FIRST_LETTERS = [ 'D', 'A', 'B', 'C', 'E', 'F', 'G', 'H', 'J', 'K', ]; @@ -137,14 +137,14 @@ final readonly class RegistrationNumber /** * @var string[] */ - private const array BATTERY_ELECTRIC_LETTERS = [ + private const BATTERY_ELECTRIC_LETTERS = [ 'D', 'A', 'B', 'C', 'E', ]; /** * @var string[] */ - private const array AVAILLABLE_SUFFIXS = [ + private const AVAILLABLE_SUFFIXS = [ self::EMBASSY_SUFFIX, self::CONSULATE_SUFFIX, self::POLICE_SUFFIX, @@ -159,32 +159,32 @@ final readonly class RegistrationNumber /** * @var string[] */ - private const array GUANGDONG_Z_SPECIAL_SUFFIXS = [ + private const GUANGDONG_Z_SPECIAL_SUFFIXS = [ self::HONG_KONG_SUFFIX, self::MACAU_SUFFIX, ]; - private const string GUANGDONG_PROVINCE = '粤'; + private const GUANGDONG_PROVINCE = '粤'; - private const string GUANGDONG_SPECIAL_AUTHORITY = 'Z'; + private const GUANGDONG_SPECIAL_AUTHORITY = 'Z'; - private const string EMBASSY_SUFFIX = '使'; + private const EMBASSY_SUFFIX = '使'; - private const string CONSULATE_SUFFIX = '领'; + private const CONSULATE_SUFFIX = '领'; - private const string POLICE_SUFFIX = '警'; + private const POLICE_SUFFIX = '警'; - private const string COACH_SUFFIX = '学'; + private const COACH_SUFFIX = '学'; - private const string TRAILER_SUFFIX = '挂'; + private const TRAILER_SUFFIX = '挂'; - private const string HONG_KONG_SUFFIX = '港'; + private const HONG_KONG_SUFFIX = '港'; - private const string MACAU_SUFFIX = '澳'; + private const MACAU_SUFFIX = '澳'; - private const string TEST_SUFFIX = '试'; + private const TEST_SUFFIX = '试'; - private const string SPECIAL_SUFFIX = '超'; + private const SPECIAL_SUFFIX = '超'; public string $region; |
