-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop conflict with
symfony/cache
>=6
- Loading branch information
Dominic Tubach
committed
Jun 27, 2024
1 parent
f6e9c70
commit 139ba4a
Showing
4 changed files
with
20 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
|
||
# This script has to be used when installing dependencies for deployment. | ||
# It makes that symfony/cache is not installed as dependency. symfony/cache is | ||
# already installed with CiviCRM. Depending on the CiviCRM version it results in | ||
# this error when symfony/cache 6 and psr/cache 3 are installed: | ||
# PHP Fatal error: Declaration of Symfony\Component\Cache\CacheItem::expiresAt(?DateTimeInterface $expiration): Symfony\Component\ErrorHandler\DebugClassLoader | ||
# must be compatible with Psr\Cache\CacheItemInterface::expiresAt($expiration) | ||
|
||
# In case this extension is actually installed as composer dependency it must | ||
# not replace symfony/cache because it would prevent its installation. | ||
|
||
sed -e 's#^\}#,"replace":{"symfony/cache":"*"}}#' -i composer.json | ||
composer "$@" | ||
code=$? | ||
sed -e 's#,"replace":.*#}#' -i composer.json | ||
|
||
exit $code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters