Commit 65439ac
authored
fix(tests): pin symfony/deprecation-contracts to ^2.5 in Drupal 9.5 fixture (#4049)
test_web_drupal_95 was crashing during Drupal's install script with a
fatal TypeError on PHP 7.4. The Drupal 9.5 composer.json has no lock
file, so `composer install --ignore-platform-reqs` resolves guzzlehttp/
guzzle to the latest 7.15.1, which pulls in symfony/deprecation-
contracts v3.7.1. That version's trigger_deprecation() signature uses
a `mixed ...$args` variadic typehint, which is only valid on PHP 8.0+
and is a fatal TypeError when the class is loaded/called on PHP 7.4.
--ignore-platform-reqs defeats platform.php's PHP version pin, so
composer happily selects a dependency graph that is incompatible with
the PHP version the job actually runs.
Pin symfony/deprecation-contracts to ^2.5 directly in the fixture's
require block so composer's solver is constrained to a version whose
API is compatible with PHP 7.4, regardless of what guzzle pulls in
transitively.1 parent f8b39c4 commit 65439ac
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
0 commit comments