Skip to content

Commit 16bf8c5

Browse files
committed
[TASK] Enable dependabot for all supported branches: Use PHP platform
Dependabot requires `config.platform.php` in composer.json to work correctly. This will avoid troubles like: ``` Problem 1 - Root composer.json requires solarium/solarium 6.3.5 -> satisfiable by solarium/solarium[6.3.5]. - solarium/solarium 6.3.5 requires php ^8.0 -> your php version (7.4.33) does not satisfy that requirement. - solarium/solarium 6.3.5 requires php ^8.0 -> your php version (7.4.33) does not satisfy that requirement. ``` Relates: #3168
1 parent 0be46d5 commit 16bf8c5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ updates:
5555
directory: "/Docker/SolrServer"
5656
schedule:
5757
interval: "daily"
58-
5958
target-branch: "release-11.6.x"
6059
commit-message:
6160
prefix: "[TASK] 11.6.x-dev "

composer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@
7070
"minimum-stability": "stable",
7171
"prefer-stable": true,
7272
"config": {
73+
"platform": {
74+
"php": "8.2"
75+
},
7376
"allow-plugins": true,
7477
"vendor-dir": ".Build/vendor",
7578
"bin-dir": ".Build/bin",
@@ -109,7 +112,8 @@
109112
"tests:restore-git": "echo \"Retore composer.json to initial state:\" && git checkout composer.json",
110113
"tests:env": [
111114
"if [ -z ${TYPO3_VERSION+x} ]; then >&2 echo \"Can not proceed, because env var TYPO3_VERSION is not set\"; exit 1; else echo \"Setup test environment for TYPO3 ${TYPO3_VERSION}\"; fi",
112-
"if echo $TYPO3_VERSION | grep -q \"dev\"; then $COMPOSER_BINARY config minimum-stability dev; fi"
115+
"if echo $TYPO3_VERSION | grep -q \"dev\"; then $COMPOSER_BINARY config minimum-stability dev; fi",
116+
"@composer config --unset platform"
113117
],
114118
"tests:setup": [
115119
"@tests:env",

0 commit comments

Comments
 (0)