Skip to content

Commit

Permalink
[TASK] Enable dependabot for all supported branches: Use PHP platform
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dkd-kaehm committed Jul 29, 2024
1 parent 8a08572 commit 611af23
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
"minimum-stability": "stable",
"prefer-stable": true,
"config": {
"platform": {
"php": "7.4"
},
"allow-plugins": true,
"vendor-dir": ".Build/vendor",
"bin-dir": ".Build/bin",
Expand Down Expand Up @@ -118,7 +121,8 @@
"tests:restore-git": "echo \"Retore composer.json to initial state:\" && git checkout composer.json",
"tests:env": [
"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",
"if echo $TYPO3_VERSION | grep -q \"dev\"; then $COMPOSER_BINARY config minimum-stability dev; fi"
"if echo $TYPO3_VERSION | grep -q \"dev\"; then $COMPOSER_BINARY config minimum-stability dev; fi",
"@composer config --unset platform"
],
"tests:setup:global-require": [
"echo \"Install global composer dependencies.\"",
Expand Down

0 comments on commit 611af23

Please sign in to comment.