Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Allow for tests to run on PHP 8+
  • Loading branch information
schlessera committed Aug 13, 2021
commit fea4ec830c6fb1a36971f242f34c626eb4a74a8d
5 changes: 0 additions & 5 deletions templates/plugin-bootstrap.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
* @package {{plugin_package}}
*/

if ( PHP_MAJOR_VERSION >= 8 ) {
echo "The scaffolded tests cannot currently be run on PHP 8.0+. See https://github.com/wp-cli/scaffold-command/issues/285" . PHP_EOL; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
exit( 1 );
}

$_tests_dir = getenv( 'WP_TESTS_DIR' );

if ( ! $_tests_dir ) {
Expand Down