|
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 |
@@ -2900,6 +2902,11 @@ class StringBuilder { |
2900 | 2902 | '8.5' => 'ZEND_STR_8_DOT_5', |
2901 | 2903 | ]; |
2902 | 2904 |
|
| 2905 | + // NEW in 8.6 |
| 2906 | + private const PHP_86_KNOWN = [ |
| 2907 | + "arguments" => "ZEND_STR_ARGUMENTS", |
| 2908 | + ]; |
| 2909 | + |
2903 | 2910 | /** |
2904 | 2911 | * Get an array of three strings: |
2905 | 2912 | * - declaration of zend_string, if needed, or empty otherwise |
@@ -2938,6 +2945,10 @@ public static function getString( |
2938 | 2945 | } |
2939 | 2946 | $include = self::PHP_80_KNOWN; |
2940 | 2947 | switch ($minPhp) { |
| 2948 | + case PHP_86_VERSION_ID: |
| 2949 | + $include = array_merge($include, self::PHP_86_KNOWN); |
| 2950 | + // Intentional fall through |
| 2951 | + |
2941 | 2952 | case PHP_85_VERSION_ID: |
2942 | 2953 | $include = array_merge($include, self::PHP_85_KNOWN); |
2943 | 2954 | // Intentional fall through |
@@ -4127,7 +4138,8 @@ public function __construct(array $fileTags) { |
4127 | 4138 | throw new Exception( |
4128 | 4139 | "Legacy PHP version must be one of: \"" . PHP_70_VERSION_ID . "\" (PHP 7.0), \"" . PHP_80_VERSION_ID . "\" (PHP 8.0), " . |
4129 | 4140 | "\"" . PHP_81_VERSION_ID . "\" (PHP 8.1), \"" . PHP_82_VERSION_ID . "\" (PHP 8.2), \"" . PHP_83_VERSION_ID . "\" (PHP 8.3), " . |
4130 | | - "\"" . PHP_84_VERSION_ID . "\" (PHP 8.4), \"" . PHP_85_VERSION_ID . "\" (PHP 8.5), \"" . $tag->value . "\" provided" |
| 4141 | + "\"" . PHP_84_VERSION_ID . "\" (PHP 8.4), \"" . PHP_85_VERSION_ID . "\" (PHP 8.5), \"" . PHP_86_VERSION_ID . "\" (PHP 8.6), " . |
| 4142 | + $tag->value . "\" provided" |
4131 | 4143 | ); |
4132 | 4144 | } |
4133 | 4145 |
|
|
0 commit comments