Skip to content

Commit

Permalink
Update composer modules to add php8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Hardik Gajjar committed Feb 28, 2022
1 parent dcd896f commit 3f6d312
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions src/spryker/application/skeleton/composer-harness.json.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@
"description": "Spryker site for {{ @('workspace.name')|lower }}",
"type": "project",
"require": {
{% if version_compare(@('php.version'), '8.0', '>=') %}
"php": ">= {{ @('php.version') }}",
"spryker/rabbit-mq": "^2.15.0",
"spryker-sdk/composer-constrainer": "^0.2.5",
"spryker-sdk/spryk": "^0.3.3",
"spryker-sdk/spryk-gui": "^0.2.1",
"spryker-sdk/benchmark": "^0.2.2",
"lcobucci/jwt": "~4.0.0",
{% else %}
"php": ">= {{ @('php.version') }}"
{% endif %}
},
"require-dev": {
"behat/behat": "^3.10",
Expand All @@ -14,11 +24,23 @@
"dmore/behat-chrome-extension": "^1.3",
"dmore/chrome-mink-driver": "^2.6",
"jakoch/phantomjs-installer": "^3.0",
"roave/better-reflection": "^4.3.0",
"phpcompatibility/php-compatibility": "dev-master",
"sensiolabs/behat-page-object-extension": "^2.3",
"guzzlehttp/guzzle": "^6.3.0",
{% if version_compare(@('php.version'), '8.0', '>=') %}
"symfony/browser-kit": "^5.1.8",
"codeception/codeception": "^4.1.29",
"codeception/lib-innerbrowser": "^1.3.6",
"spryker/testify": "^3.43.0",
"sllh/composer-versions-check": "^2.0.5",
"spryker/architecture-sniffer": "^0.5.4",
"roave/better-reflection": null,
"roave/signature": null,
"fzaninotto/faker": null
{% else %}
"roave/better-reflection": "^4.3.0",
"symfony/browser-kit": "^5.1.8"
{% endif %}
},
"autoload-dev": {
"psr-4": {
Expand Down Expand Up @@ -61,22 +83,26 @@
],
"compatibility": "bin/phpcs -s --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility/ --runtime-set testVersion {{ @('php.version') }}-",
"phpstan": [
"php -d memory_limit=1024M vendor/bin/phpstan analyze -c phpstan.neon src/ -l 5"
"php -d memory_limit=1280M vendor/bin/phpstan analyze -c phpstan.neon src/ -l 5"
]
},
"config": {
"platform": {
"php": "{{ @('php.version') }}"
"php": "{{ version_compare(@('spryker.demoshop-version'), '202108.0', '<') ? '7.4.10' : '8.0.16' }}"
},
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"sllh/composer-versions-check": true
}
},
{% if version_compare(@('php.version'), '8.0', '>=') %}
"repositories": null
{% else %}
"repositories": [
{
"type": "git",
"url": "https://github.com/spryker-sdk/lib-innerbrowser.git"
}
]
{% endif %}
}

0 comments on commit 3f6d312

Please sign in to comment.