|
26 | 26 | const PHP_83_VERSION_ID = 80300; |
27 | 27 | const PHP_84_VERSION_ID = 80400; |
28 | 28 | const PHP_85_VERSION_ID = 80500; |
| 29 | +const PHP_86_VERSION_ID = 80600; |
29 | 30 | const ALL_PHP_VERSION_IDS = [ |
30 | 31 | PHP_70_VERSION_ID, |
31 | 32 | PHP_80_VERSION_ID, |
|
34 | 35 | PHP_83_VERSION_ID, |
35 | 36 | PHP_84_VERSION_ID, |
36 | 37 | PHP_85_VERSION_ID, |
| 38 | + PHP_86_VERSION_ID, |
37 | 39 | ]; |
38 | 40 |
|
39 | 41 | // file_put_contents() but with a success message printed after saving |
@@ -2921,6 +2923,11 @@ class StringBuilder { |
2921 | 2923 | '8.5' => 'ZEND_STR_8_DOT_5', |
2922 | 2924 | ]; |
2923 | 2925 |
|
| 2926 | + // NEW in 8.6 |
| 2927 | + private const PHP_86_KNOWN = [ |
| 2928 | + "arguments" => "ZEND_STR_ARGUMENTS", |
| 2929 | + ]; |
| 2930 | + |
2924 | 2931 | /** |
2925 | 2932 | * Get an array of three strings: |
2926 | 2933 | * - declaration of zend_string, if needed, or empty otherwise |
@@ -2959,6 +2966,10 @@ public static function getString( |
2959 | 2966 | } |
2960 | 2967 | $include = self::PHP_80_KNOWN; |
2961 | 2968 | switch ($minPhp) { |
| 2969 | + case PHP_86_VERSION_ID: |
| 2970 | + $include = array_merge($include, self::PHP_86_KNOWN); |
| 2971 | + // Intentional fall through |
| 2972 | + |
2962 | 2973 | case PHP_85_VERSION_ID: |
2963 | 2974 | $include = array_merge($include, self::PHP_85_KNOWN); |
2964 | 2975 | // Intentional fall through |
@@ -4148,7 +4159,8 @@ public function __construct(array $fileTags) { |
4148 | 4159 | throw new Exception( |
4149 | 4160 | "Legacy PHP version must be one of: \"" . PHP_70_VERSION_ID . "\" (PHP 7.0), \"" . PHP_80_VERSION_ID . "\" (PHP 8.0), " . |
4150 | 4161 | "\"" . PHP_81_VERSION_ID . "\" (PHP 8.1), \"" . PHP_82_VERSION_ID . "\" (PHP 8.2), \"" . PHP_83_VERSION_ID . "\" (PHP 8.3), " . |
4151 | | - "\"" . PHP_84_VERSION_ID . "\" (PHP 8.4), \"" . PHP_85_VERSION_ID . "\" (PHP 8.5), \"" . $tag->value . "\" provided" |
| 4162 | + "\"" . PHP_84_VERSION_ID . "\" (PHP 8.4), \"" . PHP_85_VERSION_ID . "\" (PHP 8.5), \"" . PHP_86_VERSION_ID . "\" (PHP 8.6), " . |
| 4163 | + $tag->value . "\" provided" |
4152 | 4164 | ); |
4153 | 4165 | } |
4154 | 4166 |
|
|
0 commit comments