Skip to content

Commit

Permalink
Support Symfony 6.4 (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
fre5h authored Dec 1, 2023
1 parent 49c8bb0 commit 60a0d72
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 10 deletions.
33 changes: 25 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
name: CI

on:
pull_request:
push:
branches:
- 'main'
pull_request:

jobs:
composer-validate:
runs-on: ubuntu-latest
name: "Composer Validate"
steps:
- name: 'Checkout Code'
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: 'Setup PHP'
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
ini-values: memory_limit=-1
coverage: none
tools: composer:v2

- name: 'Validate composer.json'
run: composer validate --no-check-all --strict --no-check-lock
Expand All @@ -23,10 +31,18 @@ jobs:
name: "Composer Install"
steps:
- name: 'Checkout Code'
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: 'Setup PHP'
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
ini-values: memory_limit=-1
coverage: none
tools: composer:v2

- name: 'Install Dependencies'
run: composer install --prefer-dist --no-progress --no-interaction --no-suggest --optimize-autoloader
run: composer install --prefer-dist --no-progress --no-interaction

code-style:
needs: composer-install
Expand All @@ -36,7 +52,7 @@ jobs:
fail-fast: false
steps:
- name: 'Checkout Code'
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: 'Setup PHP'
uses: shivammathur/setup-php@v2
Expand All @@ -61,7 +77,7 @@ jobs:
fail-fast: false
steps:
- name: 'Checkout Code'
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: 'Setup PHP'
uses: shivammathur/setup-php@v2
Expand Down Expand Up @@ -92,9 +108,10 @@ jobs:
- '6.1'
- '6.2'
- '6.3'
- '6.4'
steps:
- name: 'Checkout Code'
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: 'Setup PHP'
uses: shivammathur/setup-php@v2
Expand All @@ -121,7 +138,7 @@ jobs:
fail-fast: false
steps:
- name: 'Checkout Code'
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: 'Setup PHP'
uses: shivammathur/setup-php@v2
Expand Down
6 changes: 4 additions & 2 deletions Form/EnumTypeGuesser.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ public function __construct(ManagerRegistry $registry, array $registeredTypes)
}

/**
* @param string $class
* @param string $property
* @template T of object
*
* @param class-string<T> $class
* @param string $property
*
* @throws EnumTypeIsRegisteredButClassDoesNotExistException
*
Expand Down

0 comments on commit 60a0d72

Please sign in to comment.