@@ -12,10 +12,10 @@ There are 2 key steps to getting ready for a new version of PHP:
12
12
13
13
| Altis | PHP 8.0 | PHP 8.1 | PHP 8.2 | PHP 8.3 |
14
14
| -------| ----------------| ---------------| ----------------| ----------------|
15
- | v20 | | ** Supported** | * Supported* | * Experimental* |
16
- | v19 | | ** Supported** | * Supported* | |
17
- | v18 | ** Deprecated ** | ** Supported** | * Supported* | |
18
- | v17 | ** Deprecated** | ** Supported** | * Experimental * | |
15
+ | v21 | | ** Supported** | ** Supported** | * Experimental* |
16
+ | v20 | | ** Supported** | ** Supported** | * Experimental * |
17
+ | v19 | | ** Supported** | ** Supported** | |
18
+ | v18 | ** Deprecated** | ** Supported** | ** Supported ** | |
19
19
20
20
## Checking PHP Version Compatibility
21
21
@@ -30,7 +30,7 @@ In your `composer.json` you may have some code like the following:
30
30
{
31
31
"config" : {
32
32
"platform" : {
33
- "php" : " 8.1 "
33
+ "php" : " 8.2 "
34
34
}
35
35
}
36
36
}
@@ -74,11 +74,11 @@ First install the standard and dependencies using the following command:
74
74
composer global require dealerdirect/phpcodesniffer-composer-installer phpcompatibility/php-compatibility
75
75
```
76
76
77
- Next run the standard against your codebase for the target PHP version, in this example PHP 8.1 :
77
+ Next run the standard against your codebase for the target PHP version, in this example PHP 8.2 :
78
78
79
79
``` shell
80
80
phpcs -p --standard=PHPCompatibility \
81
- --runtime-set testVersion 8.1 \
81
+ --runtime-set testVersion 8.2 \
82
82
--extensions=php \
83
83
-d memory_limit=1G \
84
84
--ignore=wordpress,vendor/altis,\* /tests/\* .
@@ -111,7 +111,7 @@ e.g. `--ignore=vendor/aws,vendor/guzzlehttp,...`.
111
111
Once you are confident that your application is compatible with the version of PHP to upgrade to you should do the
112
112
following for each environment:
113
113
114
- 1 . Create a support ticket for the target environment with the type "Task", titled "Upgrade to PHP 8.1 ", replacing "8.1 "
114
+ 1 . Create a support ticket for the target environment with the type "Task", titled "Upgrade to PHP 8.2 ", replacing "8.2 "
115
115
with the target version if necessary ( noting that the updated PHP version will not be deployed automatically until
116
116
the next application deployment ).
117
117
2 . Wait for the Altis team to confirm the environment has been updated.
@@ -136,7 +136,7 @@ your PHP version.
136
136
The easiest way to add this is to run:
137
137
138
138
``` sh
139
- composer config platform.php 8.1
139
+ composer config platform.php 8.2
140
140
```
141
141
142
- (Replace 8.1 with your desired new PHP version.)
142
+ (Replace 8.2 with your desired new PHP version.)
0 commit comments