Skip to content

Commit 2257c48

Browse files
committed
add: php8.3
1 parent 6bbee71 commit 2257c48

3 files changed

Lines changed: 13 additions & 11 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Each environment you create in WP Docker is powered by a couple of services you
8080
- **memcached**: a distributed memory object caching system,
8181
- **elasticsearch** (optional): a search and analytics engine.
8282

83-
You can choose to run your environment on different versions of PHP including 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1 or 8.2.
83+
You can choose to run your environment on different versions of PHP including 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2 or 8.3.
8484

8585
WP Docker comes with features that make managing your WordPress development a breeze:
8686

src/commands/create/inquirer.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const { validateNotEmpty, parseHostname, parseProxyUrl } = require( '../../promp
22
const { createDefaultProxy } = require( '../../env-utils' );
33

44
const phpVersions = [
5+
'8.3',
56
'8.2',
67
'8.1',
78
'8.0',
@@ -53,7 +54,7 @@ function marshalWordPress( original, answers ) {
5354

5455
[ 'title', 'username', 'password', 'email' ].forEach( ( key ) => {
5556
if ( answers[key] ) {
56-
wp[ key ] = answers[ key ];
57+
wp[key] = answers[key];
5758
}
5859
} );
5960

@@ -96,7 +97,7 @@ module.exports = function makeInquirer( { prompt } ) {
9697
validate: validateNotEmpty,
9798
filter: parseHostname,
9899
when() {
99-
return ! domain || ( Array.isArray( domain ) && ! domain.length );
100+
return !domain || ( Array.isArray( domain ) && !domain.length );
100101
},
101102
},
102103
{
@@ -105,7 +106,7 @@ module.exports = function makeInquirer( { prompt } ) {
105106
message: 'Are there additional domains the site should respond to?',
106107
default: false,
107108
when() {
108-
return ! domain || ( Array.isArray( domain ) && ! domain.length );
109+
return !domain || ( Array.isArray( domain ) && !domain.length );
109110
},
110111
},
111112
{
@@ -130,7 +131,7 @@ module.exports = function makeInquirer( { prompt } ) {
130131
choices: phpVersions,
131132
default: '7.4',
132133
when() {
133-
return ! phpVersions.includes( php );
134+
return !phpVersions.includes( php );
134135
},
135136
},
136137
{
@@ -147,7 +148,7 @@ module.exports = function makeInquirer( { prompt } ) {
147148
default: 'single',
148149
when( answers ) {
149150
const installWp = answers.wordpress === true;
150-
const wrongType = wordpressType && ! wordpressTypes.map( ( { value } ) => value ).includes( wordpressType );
151+
const wrongType = wordpressType && !wordpressTypes.map( ( { value } ) => value ).includes( wordpressType );
151152
return installWp || wrongType;
152153
},
153154
},
@@ -160,7 +161,7 @@ module.exports = function makeInquirer( { prompt } ) {
160161
},
161162
validate: validateNotEmpty,
162163
when( answers ) {
163-
return answers.wordpress === true || ( wordpress && ! wordpressTitle );
164+
return answers.wordpress === true || ( wordpress && !wordpressTitle );
164165
},
165166
},
166167
{
@@ -170,7 +171,7 @@ module.exports = function makeInquirer( { prompt } ) {
170171
default: 'admin',
171172
validate: validateNotEmpty,
172173
when( answers ) {
173-
return answers.wordpress === true || ( wordpress && ! wordpressUsername );
174+
return answers.wordpress === true || ( wordpress && !wordpressUsername );
174175
},
175176
},
176177
{
@@ -180,7 +181,7 @@ module.exports = function makeInquirer( { prompt } ) {
180181
default: 'password',
181182
validate: validateNotEmpty,
182183
when( answers ) {
183-
return answers.wordpress === true || ( wordpress && ! wordpressPassword );
184+
return answers.wordpress === true || ( wordpress && !wordpressPassword );
184185
},
185186
},
186187
{
@@ -190,7 +191,7 @@ module.exports = function makeInquirer( { prompt } ) {
190191
default: 'admin@example.com',
191192
validate: validateNotEmpty,
192193
when( answers ) {
193-
return answers.wordpress === true || ( wordpress && ! wordpressEmail );
194+
return answers.wordpress === true || ( wordpress && !wordpressEmail );
194195
},
195196
},
196197
{
@@ -199,7 +200,7 @@ module.exports = function makeInquirer( { prompt } ) {
199200
message: 'Do you want to remove the default content?',
200201
default: false,
201202
when( answers ) {
202-
return answers.wordpress === true || ( wordpress && ! wordpressPurify );
203+
return answers.wordpress === true || ( wordpress && !wordpressPurify );
203204
},
204205
},
205206
{

src/docker-images.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ exports.globalImages = {
77
};
88

99
exports.images = {
10+
'php8.3': '10up/wp-php-fpm-dev:8.3-ubuntu',
1011
'php8.2': '10up/wp-php-fpm-dev:8.2-ubuntu',
1112
'php8.1': '10up/wp-php-fpm-dev:8.1-ubuntu',
1213
'php8.0': '10up/wp-php-fpm-dev:8.0-ubuntu',

0 commit comments

Comments
 (0)