Skip to content

Commit 0e75bdc

Browse files
authored
supported versions (#94)
* supported versions - drop support for unmaintained versions - add support for php8.2/8.3 and symfony 7.0 * update copyrights * run static analysis on latest stable version
1 parent 393b76d commit 0e75bdc

File tree

70 files changed

+159
-161
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+159
-161
lines changed

.github/workflows/static-analyse.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
matrix:
1212
php-version:
13-
- "8.0"
13+
- "8.3"
1414
operating-system:
1515
- "ubuntu-latest"
1616
runs-on: ${{ matrix.operating-system }}

.github/workflows/tests.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ jobs:
1010
strategy:
1111
matrix:
1212
symfony-version:
13-
- "5.2.*"
14-
- "6.0.*"
13+
- "5.4.*"
14+
- "6.4.*"
15+
- "7.0.*"
1516
php-version:
16-
- "7.4"
17-
- "8.0"
1817
- "8.1"
18+
- "8.2"
19+
- "8.3"
1920
operating-system:
2021
- "ubuntu-latest"
2122

@@ -47,14 +48,6 @@ jobs:
4748
restore-keys: |
4849
php-${{ matrix.php-version }}-${{ matrix.dependencies }}-composer-
4950
50-
- name: "Require symfony/messenger polyfill for symfony 3.4.*"
51-
if: ${{ matrix.symfony-version == '3.4.*' && matrix.php-version != '8.0' }}
52-
run: "composer require --dev lendable/symfony-messenger-polyfill --no-update"
53-
54-
- name: "Require symfony/messenger"
55-
if: ${{ matrix.symfony-version != '3.4.*' }}
56-
run: "composer require --dev symfony/messenger --no-update"
57-
5851
- name: "Require php-coveralls/php-coveralls"
5952
run: "composer global require php-coveralls/php-coveralls"
6053

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,17 @@
5454
"php": "^7.4|^8.0",
5555
"ext-pdo": "*",
5656
"ext-json": "*",
57-
"symfony/config": "^3.4 || ^4.4 || ^5.2 || ^6.0",
58-
"symfony/dependency-injection": "^3.4 || ^4.4 || ^5.2 || ^6.0",
59-
"symfony/http-kernel": "^3.4 || ^4.4 || ^5.2 || ^6.0",
60-
"symfony/framework-bundle": "^3.4 || ^4.4 || ^5.2 || ^6.0",
61-
"symfony/messenger": "^4.2 || ^4.4 || ^5.2 || ^6.0",
62-
"prooph/event-store": "^7.0"
57+
"symfony/config": "^5.4 || ^6.4 || ^7.0",
58+
"symfony/dependency-injection": "^5.4 || ^6.4 || ^7.0",
59+
"symfony/http-kernel": "^5.4.39 || ^6.4 || ^7.0",
60+
"symfony/framework-bundle": "^5.4 || ^6.4 || ^7.0",
61+
"symfony/messenger": "^5.4 || ^6.4 || ^7.0",
62+
"prooph/event-store": "^7.9.0"
6363
},
6464
"require-dev": {
6565
"prooph/pdo-event-store": "^1.12",
66-
"phpunit/phpunit": "^8 || ^9",
67-
"symfony/yaml" : "^3.4 || ^4.4 || ^5.2 || ^6.0",
66+
"phpunit/phpunit": "^9",
67+
"symfony/yaml" : "^5.4 || ^6.4 || ^7.0",
6868
"bookdown/bookdown": "^1.1",
6969
"prooph/bookdown-template": "^0.3",
7070
"friendsofphp/php-cs-fixer": "^3.5",

src/Command/AbstractProjectionCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
/**
44
* This file is part of prooph/event-store-symfony-bundle.
5-
* (c) 2014-2022 Alexander Miertsch <[email protected]>
6-
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
5+
* (c) 2014-2024 Alexander Miertsch <[email protected]>
6+
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]>
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.

src/Command/FormatsOutput.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
/**
44
* This file is part of prooph/event-store-symfony-bundle.
5-
* (c) 2014-2022 Alexander Miertsch <[email protected]>
6-
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
5+
* (c) 2014-2024 Alexander Miertsch <[email protected]>
6+
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]>
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.

src/Command/ProjectionDeleteCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
/**
44
* This file is part of prooph/event-store-symfony-bundle.
5-
* (c) 2014-2022 Alexander Miertsch <[email protected]>
6-
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
5+
* (c) 2014-2024 Alexander Miertsch <[email protected]>
6+
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]>
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.

src/Command/ProjectionNamesCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
/**
44
* This file is part of prooph/event-store-symfony-bundle.
5-
* (c) 2014-2022 Alexander Miertsch <[email protected]>
6-
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
5+
* (c) 2014-2024 Alexander Miertsch <[email protected]>
6+
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]>
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.
@@ -73,7 +73,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7373

7474
/** @var string|null $filter */
7575
$filter = $input->getArgument(self::ARGUMENT_FILTER);
76-
$regex = $input->getOption(static::OPTION_REGEX);
76+
$regex = $input->getOption(self::OPTION_REGEX);
7777

7878
$output->write(\sprintf('<action>Projection names'));
7979
if ($filter) {

src/Command/ProjectionResetCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
/**
44
* This file is part of prooph/event-store-symfony-bundle.
5-
* (c) 2014-2022 Alexander Miertsch <[email protected]>
6-
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
5+
* (c) 2014-2024 Alexander Miertsch <[email protected]>
6+
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]>
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.

src/Command/ProjectionRunCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
/**
44
* This file is part of prooph/event-store-symfony-bundle.
5-
* (c) 2014-2022 Alexander Miertsch <[email protected]>
6-
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
5+
* (c) 2014-2024 Alexander Miertsch <[email protected]>
6+
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]>
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.
@@ -27,12 +27,12 @@ protected function configure(): void
2727
$this
2828
->setName('event-store:projection:run')
2929
->setDescription('Runs a projection')
30-
->addOption(static::OPTION_RUN_ONCE, 'o', InputOption::VALUE_NONE, 'Loop the projection only once, then exit');
30+
->addOption(self::OPTION_RUN_ONCE, 'o', InputOption::VALUE_NONE, 'Loop the projection only once, then exit');
3131
}
3232

3333
protected function execute(InputInterface $input, OutputInterface $output): int
3434
{
35-
$keepRunning = ! $input->getOption(static::OPTION_RUN_ONCE);
35+
$keepRunning = ! $input->getOption(self::OPTION_RUN_ONCE);
3636
$output->writeln(
3737
\sprintf(
3838
'<action>Starting projection <highlight>%s</highlight>. Keep running: <highlight>%s</highlight></action>',

src/Command/ProjectionStateCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
/**
44
* This file is part of prooph/event-store-symfony-bundle.
5-
* (c) 2014-2022 Alexander Miertsch <[email protected]>
6-
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
5+
* (c) 2014-2024 Alexander Miertsch <[email protected]>
6+
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]>
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.

0 commit comments

Comments
 (0)