Repository navigation
Commit d296118
committed
Fix the dependency isolation scenarios failing on PHP 7.x
The mu-plugins used a `\Stringable|string` union type, which is a parse
error on the PHP 7.2 to 7.4 jobs in the matrix, so the scenarios failed
with "syntax error, unexpected '|'" rather than exercising anything.
Narrowing an untyped parameter to `string` is the same contravariance
violation and parses on every version the suite runs, so the scenarios
still distinguish a prefixed tree from an unprefixed one: declaring the
class against an unprefixed `psr/log` v1 remains a fatal error, and
succeeds once the bundled copy is prefixed.
Also drop `--format=count` from `wp package list`, which does not offer
that format and made the step fail on argument parsing.
Refs wp-cli/wp-cli#5920
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RHtjyXkZh8X16sBgmidSQi1 parent 8d50385 commit d296118
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
0 commit comments