Skip to content

Commit

Permalink
Update to support SF 6.4 & ^7.0, remove older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
francois-daneau committed Nov 14, 2024
1 parent f5046dd commit 51f490d
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 21 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@ jobs:
strategy:
matrix:
php:
- '7.2'
- '7.3'
- '7.4'
- '8.1'
symfony-version:
- '~3.4'
- "~4.4"
- "~5.4"
- "~6.4"
- "~7.1"

steps:
- uses: actions/checkout@v2
Expand Down
9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
language: php
php:
- 7.4
- 7.3
- 7.2
- 8.1

env:
- SYMFONY_VERSION="~3.4"
- SYMFONY_VERSION="~4.4"
- SYMFONY_VERSION="~5.4"
- SYMFONY_VERSION="~6.4"
- SYMFONY_VERSION="~7.1"

before_script:
- composer selfupdate
Expand Down
2 changes: 1 addition & 1 deletion Command/BaseMaintenanceCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected function configure()
);
}

protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
$status = $input->getArgument("status");

Expand Down
2 changes: 1 addition & 1 deletion Command/DumpApacheConfCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected function configure()
);
}

protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
$output->writeln(<<<EOF
Open your .htaccess file and paste the following lines before any other rewrite rules:
Expand Down
2 changes: 1 addition & 1 deletion Command/DumpNginxConfCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected function configure()
);
}

protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
$output->writeln(<<<EOF
Open your site configuration file and paste the following lines:
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
public function getConfigTreeBuilder(): TreeBuilder
{

if (method_exists(TreeBuilder::class, 'getRootNode')) {
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Those conditions will ensure that a load balancer cut an instance off during a m

In `composer.json` add the requirement.

The current version requires at least PHP 8.1 and a supported (as at time of release) version of Symfony (4.4, 5.4, 6.0 and 6.1).
The current version requires at least PHP 8.1 and a supported (as at time of release) version of Symfony (4.4, 5.4, 6.4 and 7.1).
```json
"require": {
"corley/maintenance-bundle": "^0.5"
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"target-dir": "Corley/MaintenanceBundle",
"require": {
"php": ">=8.1",
"symfony/framework-bundle": "^4.4|^5.4|^6.0",
"symfony/security-bundle": "^4.4|^5.4|^6.0",
"symfony/console": "^4.4|^5.4|^6.0",
"symfony/dependency-injection": "^4.4|^5.4|^6.0"
"symfony/framework-bundle": "^6.4|^7.0",
"symfony/security-bundle": "^6.4|^7.0",
"symfony/console": "^6.4|^7.0",
"symfony/dependency-injection": "^6.4|^7.0"
},
"require-dev": {
"mikey179/vfsstream": "1.*",
Expand Down

0 comments on commit 51f490d

Please sign in to comment.