Skip to content

Commit

Permalink
Update default PHP version to 8.2 (#767)
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekn authored Jan 3, 2025
1 parent 2a676e9 commit 36f29d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ describe( 'JetpackImporter', () => {
const expectedCommand =
'sqlite import studio-backup-sql-2024-08-01-12-00-00.sql --require=/tmp/sqlite-command/command.php';
expect( siteServer?.executeWpCliCommand ).toHaveBeenNthCalledWith( 1, expectedCommand, {
targetPhpVersion: '8.1',
targetPhpVersion: '8.2',
skipPluginsAndThemes: true,
} );
expect( siteServer?.executeWpCliCommand ).toHaveBeenNthCalledWith( 2, expectedCommand, {
targetPhpVersion: '8.1',
targetPhpVersion: '8.2',
skipPluginsAndThemes: true,
} );

Expand Down
2 changes: 1 addition & 1 deletion src/tests/ipc-handlers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe( 'createSite', () => {
id: expect.any( String ),
name: 'Test',
path: '/test',
phpVersion: '8.1',
phpVersion: '8.2',
running: false,
} );
} );
Expand Down
2 changes: 1 addition & 1 deletion vendor/wp-now/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const DEFAULT_PORT = 8881;
/**
* The default PHP version to use when running the WP Now server.
*/
export const DEFAULT_PHP_VERSION = '8.1';
export const DEFAULT_PHP_VERSION = '8.2';

/**
* The default WordPress version to use when running the WP Now server.
Expand Down

0 comments on commit 36f29d0

Please sign in to comment.