Skip to content

Commit 8d6316b

Browse files
committed
⬆️ drop php 7.4
1 parent c619d4a commit 8d6316b

File tree

4 files changed

+21
-23
lines changed

4 files changed

+21
-23
lines changed

.github/workflows/build.yaml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
name: PHPStan
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v3
1414
- name: PHPStan
1515
uses: docker://oskarstark/phpstan-ga
1616
env:
@@ -22,30 +22,34 @@ jobs:
2222
name: PHP-CS-Fixer
2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v2
25+
uses: actions/checkout@v3
2626
- name: Fix CS
2727
uses: docker://oskarstark/php-cs-fixer-ga
2828
tests:
2929
runs-on: ubuntu-20.04
3030
strategy:
3131
matrix:
3232
php:
33-
- '7.4'
3433
- '8.0'
34+
- '8.1'
35+
- '8.2'
3536
include:
36-
- description: 'Symfony 4.4'
37-
php: '7.4'
37+
- description: 'Symfony 5.4'
38+
php: '8.0'
3839
composer_option: '--prefer-lowest'
39-
- description: 'Symfony 5.3'
40-
php: '7.4'
41-
symfony: 5.3.*
4240
- description: 'Symfony 6.0'
43-
php: '8.0'
44-
symfony: 6.0.*-dev
41+
php: '8.1'
42+
symfony: 6.0.*
43+
- description: 'Symfony 6.1'
44+
php: '8.1'
45+
symfony: 6.1.*
46+
- description: 'Symfony 6.2'
47+
php: '8.2'
48+
symfony: 6.2.*
4549
name: PHP ${{ matrix.php }} tests (${{ matrix.description }})
4650
steps:
4751
- name: Checkout
48-
uses: actions/checkout@v2
52+
uses: actions/checkout@v3
4953
- name: Cache
5054
uses: actions/cache@v2
5155
with:

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^7.4 || ^8.0",
14-
"symfony/form": "^4.4 || ^5.0 || ^6.0",
15-
"symfony/framework-bundle": "^4.4 || ^5.0 || ^6.0"
13+
"php": "^8.0",
14+
"symfony/form": "^5.4 || ^6.0",
15+
"symfony/framework-bundle": "^5.4 || ^6.0"
1616
},
1717
"require-dev": {
1818
"phpunit/phpunit": "^9.5",
1919
"simple-bus/message-bus": "^3.1 || ^6.0",
20-
"symfony/messenger": "^4.4 || ^5.0 || ^6.0"
20+
"symfony/messenger": "^5.4 || ^6.0"
2121
},
2222
"extra": {
2323
"branch-alias": {

src/Form/Messenger/AbstractBusType.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,8 @@
1212

1313
abstract class AbstractBusType extends AbstractType
1414
{
15-
private Bus $bus;
16-
17-
public function __construct(Bus $bus)
15+
public function __construct(private Bus $bus)
1816
{
19-
$this->bus = $bus;
2017
}
2118

2219
/**

src/Form/SimpleBus/AbstractBusType.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@
1111

1212
abstract class AbstractBusType extends AbstractType
1313
{
14-
private Bus $bus;
15-
16-
public function __construct(Bus $bus)
14+
public function __construct(private Bus $bus)
1715
{
18-
$this->bus = $bus;
1916
}
2017

2118
/**

0 commit comments

Comments
 (0)