Observe the site throws an error. This is due to the plugin using a deprecated function create_function which was removed in PHP version 8.
Change the PHP version to 7.4 in the Settings tab of the app.
Try to activate the test plugin again.
Observe no errors are thrown.
Switch to another app and back again to the Studio app. This will trigger WP-CLI commands to fetch the installed plugins and themes of the running site.
Observe no errors are thrown in the app logs.
Pre-merge Checklist
[x] Have you checked for TypeScript, React or other console errors?
Related to https://github.com/Automattic/studio/issues/468.
Proposed Changes
Testing Instructions
npm start
.create_function
which was removed in PHP version 8.7.4
in the Settings tab of the app.Pre-merge Checklist