From 39dcc51bae4e5c4b723871932b3331f9c236616d Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Tue, 14 Dec 2021 14:47:03 -0500 Subject: [PATCH] Revert addition of the Mustache PHP 8.1 workaround and update dependency --- composer.json | 2 +- php/WP_CLI/Compat/MustacheTokenizer.php | 34 ------------------------- php/utils.php | 2 -- 3 files changed, 1 insertion(+), 37 deletions(-) delete mode 100644 php/WP_CLI/Compat/MustacheTokenizer.php diff --git a/composer.json b/composer.json index 0df77afb4b..c07c68cfd2 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ "require": { "php": "^5.6 || ^7.0 || ^8.0", "ext-curl": "*", - "mustache/mustache": "^2.13", + "mustache/mustache": "^2.14", "rmccue/requests": "^1.8", "symfony/finder": ">2.7", "wp-cli/mustangostang-spyc": "^0.6.3", diff --git a/php/WP_CLI/Compat/MustacheTokenizer.php b/php/WP_CLI/Compat/MustacheTokenizer.php deleted file mode 100644 index 747ae39d74..0000000000 --- a/php/WP_CLI/Compat/MustacheTokenizer.php +++ /dev/null @@ -1,34 +0,0 @@ -setTokenizer( new WP_CLI\Compat\MustacheTokenizer() ); - return $mustache->render( $template, $data ); }