Skip to content

Commit

Permalink
Allow for tests to run on PHP 8+
Browse files Browse the repository at this point in the history
  • Loading branch information
schlessera committed Aug 13, 2021
1 parent 9f63e52 commit fea4ec8
Showing 1 changed file with 0 additions and 5 deletions.
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

0 comments on commit fea4ec8

Please sign in to comment.