Skip to content

Commit d9617d4

Browse files
authored
Merge pull request #5587 from wp-cli/fix/use-mustache-fork-for-php-8.1-compat
Use fork on schlessera for Mustache PHP 8.1 fix
2 parents cd25635 + 92e545a commit d9617d4

3 files changed

Lines changed: 17 additions & 14 deletions

File tree

composer.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,16 @@
77
],
88
"homepage": "https://wp-cli.org",
99
"license": "MIT",
10+
"repositories": [
11+
{
12+
"type": "vcs",
13+
"url": "https://github.com/schlessera/mustache.php"
14+
}
15+
],
1016
"require": {
1117
"php": "^5.6 || ^7.0 || ^8.0",
1218
"ext-curl": "*",
13-
"mustache/mustache": "~2.13",
19+
"mustache/mustache": "dev-fix/trim-php-8.1 as 2.13.1",
1420
"rmccue/requests": "^1.8",
1521
"symfony/finder": ">2.7",
1622
"wp-cli/mustangostang-spyc": "^0.6.3",

features/command.feature

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,15 +1125,13 @@ Feature: WP-CLI Commands
11251125
sub-command
11261126
"""
11271127

1128-
# TODO: Throwing deprecations with PHP 8.1+ and WP < 5.9
1129-
When I try `wp test-command sub-command`
1128+
When I run `wp test-command sub-command`
11301129
Then STDOUT should contain:
11311130
"""
11321131
Success: test-command sub-command
11331132
"""
11341133

1135-
# TODO: Throwing deprecations with PHP 8.1+ and WP < 5.9
1136-
When I try `wp unknown-parent child-command`
1134+
When I run `wp unknown-parent child-command`
11371135
Then STDOUT should contain:
11381136
"""
11391137
Success: unknown-parent child-command
@@ -1174,15 +1172,13 @@ Feature: WP-CLI Commands
11741172
sub-command
11751173
"""
11761174

1177-
# TODO: Throwing deprecations with PHP 8.1+ and WP < 5.9
1178-
When I try `wp test-command sub-command`
1175+
When I run `wp test-command sub-command`
11791176
Then STDOUT should contain:
11801177
"""
11811178
Success: test-command sub-command
11821179
"""
11831180

1184-
# TODO: Throwing deprecations with PHP 8.1+ and WP < 5.9
1185-
When I try `wp unknown-parent child-command`
1181+
When I run `wp unknown-parent child-command`
11861182
Then STDOUT should contain:
11871183
"""
11881184
Success: unknown-parent child-command
@@ -1225,15 +1221,13 @@ Feature: WP-CLI Commands
12251221
sub-command
12261222
"""
12271223

1228-
# TODO: Throwing deprecations with PHP 8.1+ and WP < 5.9
1229-
When I try `wp test-command sub-command`
1224+
When I run `wp test-command sub-command`
12301225
Then STDOUT should contain:
12311226
"""
12321227
Success: test-command sub-command
12331228
"""
12341229

1235-
# TODO: Throwing deprecations with PHP 8.1+ and WP < 5.9
1236-
When I try `wp unknown-parent child-command`
1230+
When I run `wp unknown-parent child-command`
12371231
Then STDOUT should contain:
12381232
"""
12391233
Success: unknown-parent child-command

features/config.feature

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ Feature: Have a config file
3434

3535
# TODO: Throwing deprecations with PHP 8.1+ and WP < 5.9
3636
When I try `wp` from 'wp-content'
37-
Then STDOUT should not be empty
37+
Then STDOUT should contain:
38+
"""
39+
wp <command>
40+
"""
3841

3942
Scenario: WP in a subdirectory
4043
Given a WP installation in 'foo'

0 commit comments

Comments
 (0)