Skip to content

Commit

Permalink
⬆️ drop php 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
garak committed Dec 27, 2022
1 parent c619d4a commit 8d6316b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 23 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: PHPStan
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: PHPStan
uses: docker://oskarstark/phpstan-ga
env:
Expand All @@ -22,30 +22,34 @@ jobs:
name: PHP-CS-Fixer
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Fix CS
uses: docker://oskarstark/php-cs-fixer-ga
tests:
runs-on: ubuntu-20.04
strategy:
matrix:
php:
- '7.4'
- '8.0'
- '8.1'
- '8.2'
include:
- description: 'Symfony 4.4'
php: '7.4'
- description: 'Symfony 5.4'
php: '8.0'
composer_option: '--prefer-lowest'
- description: 'Symfony 5.3'
php: '7.4'
symfony: 5.3.*
- description: 'Symfony 6.0'
php: '8.0'
symfony: 6.0.*-dev
php: '8.1'
symfony: 6.0.*
- description: 'Symfony 6.1'
php: '8.1'
symfony: 6.1.*
- description: 'Symfony 6.2'
php: '8.2'
symfony: 6.2.*
name: PHP ${{ matrix.php }} tests (${{ matrix.description }})
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v2
with:
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"symfony/form": "^4.4 || ^5.0 || ^6.0",
"symfony/framework-bundle": "^4.4 || ^5.0 || ^6.0"
"php": "^8.0",
"symfony/form": "^5.4 || ^6.0",
"symfony/framework-bundle": "^5.4 || ^6.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"simple-bus/message-bus": "^3.1 || ^6.0",
"symfony/messenger": "^4.4 || ^5.0 || ^6.0"
"symfony/messenger": "^5.4 || ^6.0"
},
"extra": {
"branch-alias": {
Expand Down
5 changes: 1 addition & 4 deletions src/Form/Messenger/AbstractBusType.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@

abstract class AbstractBusType extends AbstractType
{
private Bus $bus;

public function __construct(Bus $bus)
public function __construct(private Bus $bus)
{
$this->bus = $bus;
}

/**
Expand Down
5 changes: 1 addition & 4 deletions src/Form/SimpleBus/AbstractBusType.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@

abstract class AbstractBusType extends AbstractType
{
private Bus $bus;

public function __construct(Bus $bus)
public function __construct(private Bus $bus)
{
$this->bus = $bus;
}

/**
Expand Down

0 comments on commit 8d6316b

Please sign in to comment.