Skip to content

Commit

Permalink
Add symfony 7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
ConstantBqt committed Mar 20, 2024
1 parent 4fb3d47 commit 4e6f741
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .scenarios.lock/symfony6/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"require-dev": {
"dbrekelmans/bdi": "^1.0",
"g1a/composer-test-scenarios": "^3.0",
"matthiasnoback/symfony-config-test": "^4.1",
"matthiasnoback/symfony-config-test": "^4.1|^5.1",
"phpunit/phpunit": "~7.5|~9.3",
"roave/security-advisories": "dev-master"
},
Expand Down
62 changes: 62 additions & 0 deletions .scenarios.lock/symfony7/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"name": "robertfausk/behat-panther-extension",
"type": "behat-extension",
"description": "Symfony Panther extension for Behat",
"keywords": [
"behat",
"gherkin",
"cucumber",
"symfony",
"panther",
"web",
"test",
"browser",
"chrome",
"firefox",
"gui"
],
"license": "MIT",
"authors": [
{
"name": "Robert Freigang",
"email": "robertfreigang@gmx.de"
}
],
"require": {
"symfony/config": "^7.0",
"php": ">=7.2",
"behat/behat": "^3.0.5",
"robertfausk/mink-panther-driver": "^1.0",
"friends-of-behat/mink-extension": "^2.3.0"
},
"require-dev": {
"dbrekelmans/bdi": "^1.0",
"g1a/composer-test-scenarios": "^3.0",
"matthiasnoback/symfony-config-test": "^4.1",
"phpunit/phpunit": "~7.5|~9.3",
"roave/security-advisories": "dev-master"
},
"autoload": {
"psr-4": {
"Robertfausk\\Behat\\PantherExtension\\": "../../src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "../../tests/"
}
},
"config": {
"sort-packages": true,
"allow-plugins": {
"g1a/composer-test-scenarios": true,
"pyrech/composer-changelogs": true
},
"vendor-dir": "../../vendor"
},
"extra": {
"branch-alias": {
"dev-main": "1.1.x-dev"
}
}
}
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"php": ">=7.2",
"behat/behat": "^3.0.5",
"robertfausk/mink-panther-driver": "^1.0",
"symfony/config": "^3.4|^4.0|^5.0|^6.0",
"symfony/config": "^3.4|^4.0|^5.0|^6.0|^7.0",
"friends-of-behat/mink-extension": "^2.3.0"
},
"require-dev": {
Expand Down Expand Up @@ -58,6 +58,11 @@
"dev-main": "1.1.x-dev"
},
"scenarios": {
"symfony7": {
"require": {
"symfony/config": "^7.0"
}
},
"symfony6": {
"require": {
"symfony/config": "^6.0"
Expand Down
11 changes: 10 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ services:
build:
context: .
args:
- PHP_VERSION=8.2-rc
- PHP_VERSION=8.2
volumes:
- .:/var/www/html

php8.3:
tty: true
build:
context: .
args:
- PHP_VERSION=8.3
volumes:
- .:/var/www/html
2 changes: 1 addition & 1 deletion src/ServiceContainer/PantherConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class PantherConfiguration implements ConfigurationInterface
/**
* @inheritDoc
*/
public function getConfigTreeBuilder()
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('panther');
if (\method_exists($treeBuilder, 'getRootNode')) {
Expand Down

0 comments on commit 4e6f741

Please sign in to comment.