Skip to content

Commit 2b699f8

Browse files
DevKit updates for 4.x branch (#8357)
Co-authored-by: Vincent Langlet <vincentlanglet@hotmail.fr>
1 parent 32f655c commit 2b699f8

File tree

15 files changed

+36
-54
lines changed

15 files changed

+36
-54
lines changed

.gitattributes

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ rector.php export-ignore
1313
phpstan.neon.dist export-ignore
1414
phpstan-baseline.neon export-ignore
1515
phpstan-console-application.php export-ignore
16-
psalm.xml export-ignore
17-
psalm-baseline.xml export-ignore
1816
package.json export-ignore
1917
package-lock.json export-ignore
2018
postcss.config.js export-ignore

.github/workflows/lint.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Install PHP with extensions
3030
uses: shivammathur/setup-php@v2
3131
with:
32-
php-version: '8.4'
32+
php-version: '8.5'
3333
coverage: none
3434
tools: composer:v2
3535

@@ -53,7 +53,7 @@ jobs:
5353
- name: Install PHP with extensions
5454
uses: shivammathur/setup-php@v2
5555
with:
56-
php-version: '8.4'
56+
php-version: '8.5'
5757
coverage: none
5858
tools: composer:v2, composer-normalize:2
5959
env:

.github/workflows/qa.yaml

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Install PHP with extensions
3030
uses: shivammathur/setup-php@v2
3131
with:
32-
php-version: '8.4'
32+
php-version: '8.5'
3333
coverage: none
3434
tools: composer:v2
3535

@@ -41,30 +41,6 @@ jobs:
4141
- name: PHPStan
4242
run: vendor/bin/phpstan --no-progress --memory-limit=1G analyse --error-format=github
4343

44-
psalm:
45-
name: Psalm
46-
47-
runs-on: ubuntu-latest
48-
49-
steps:
50-
- name: Checkout code
51-
uses: actions/checkout@v4
52-
53-
- name: Install PHP with extensions
54-
uses: shivammathur/setup-php@v2
55-
with:
56-
php-version: '8.4'
57-
coverage: none
58-
tools: composer:v2
59-
60-
- name: Install Composer dependencies (highest)
61-
uses: ramsey/composer-install@v3
62-
with:
63-
dependency-versions: highest
64-
65-
- name: Psalm
66-
run: vendor/bin/psalm --no-progress --show-info=false --stats --output-format=github --threads=$(nproc) --shepherd --php-version=8.4
67-
6844
rector:
6945
name: Rector
7046

@@ -77,7 +53,7 @@ jobs:
7753
- name: Install PHP with extensions
7854
uses: shivammathur/setup-php@v2
7955
with:
80-
php-version: '8.4'
56+
php-version: '8.5'
8157
coverage: none
8258
tools: composer:v2
8359

.github/workflows/symfony-lint.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Install PHP with extensions
3030
uses: shivammathur/setup-php@v2
3131
with:
32-
php-version: '8.4'
32+
php-version: '8.5'
3333
coverage: none
3434
tools: composer:v2
3535

@@ -53,7 +53,7 @@ jobs:
5353
- name: Install PHP with extensions
5454
uses: shivammathur/setup-php@v2
5555
with:
56-
php-version: '8.4'
56+
php-version: '8.5'
5757
coverage: none
5858
tools: composer:v2
5959

@@ -77,7 +77,7 @@ jobs:
7777
- name: Install PHP with extensions
7878
uses: shivammathur/setup-php@v2
7979
with:
80-
php-version: '8.4'
80+
php-version: '8.5'
8181
coverage: none
8282
tools: composer:v2
8383

@@ -101,7 +101,7 @@ jobs:
101101
- name: Install PHP with extensions
102102
uses: shivammathur/setup-php@v2
103103
with:
104-
php-version: '8.4'
104+
php-version: '8.5'
105105
coverage: none
106106
tools: composer:v2
107107

.github/workflows/test.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,34 +30,39 @@ jobs:
3030
strategy:
3131
matrix:
3232
php-version:
33-
- '8.1'
3433
- '8.2'
3534
- '8.3'
3635
- '8.4'
36+
- '8.5'
3737
dependencies: [highest]
3838
allowed-to-fail: [false]
3939
symfony-require: ['']
4040
variant: [normal]
4141
include:
42-
- php-version: '8.1'
42+
- php-version: '8.2'
4343
dependencies: lowest
4444
allowed-to-fail: false
4545
variant: normal
46-
- php-version: '8.4'
46+
- php-version: '8.5'
4747
dependencies: highest
4848
allowed-to-fail: false
4949
symfony-require: 6.4.*
5050
variant: symfony/symfony:"6.4.*"
51-
- php-version: '8.4'
51+
- php-version: '8.5'
5252
dependencies: highest
5353
allowed-to-fail: false
54-
symfony-require: 7.1.*
55-
variant: symfony/symfony:"7.1.*"
56-
- php-version: '8.4'
54+
symfony-require: 7.3.*
55+
variant: symfony/symfony:"7.3.*"
56+
- php-version: '8.5'
5757
dependencies: highest
5858
allowed-to-fail: false
59-
symfony-require: 7.2.*
60-
variant: symfony/symfony:"7.2.*"
59+
symfony-require: 7.4.*
60+
variant: symfony/symfony:"7.4.*"
61+
- php-version: '8.5'
62+
dependencies: highest
63+
allowed-to-fail: false
64+
symfony-require: 8.0.*
65+
variant: symfony/symfony:"8.0.*"
6166

6267
steps:
6368
- name: Checkout

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ composer.lock
1010
phpunit.xml
1111
phpstan.neon
1212
/.phpunit.result.cache
13+
tests/App/config/reference.php
1314
/docs/_build/
1415
npm-debug.log

Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,6 @@ phpstan:
116116
vendor/bin/phpstan --memory-limit=1G analyse
117117
.PHONY: phpstan
118118

119-
psalm:
120-
vendor/bin/psalm --php-version=8.4
121-
.PHONY: psalm
122-
123119
rector:
124120
vendor/bin/rector
125121
.PHONY: rector

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ The missing Symfony Admin Generator
1010

1111
[![Latest Stable Version](https://poser.pugx.org/sonata-project/admin-bundle/v/stable)](https://packagist.org/packages/sonata-project/admin-bundle)
1212
[![Latest Unstable Version](https://poser.pugx.org/sonata-project/admin-bundle/v/unstable)](https://packagist.org/packages/sonata-project/admin-bundle)
13-
[![Psalm Type Coverage][shepherd_stable_badge]][shepherd_stable_link]
1413
[![License](https://poser.pugx.org/sonata-project/admin-bundle/license)](https://packagist.org/packages/sonata-project/admin-bundle)
1514

1615
[![Total Downloads](https://poser.pugx.org/sonata-project/admin-bundle/downloads)](https://packagist.org/packages/sonata-project/admin-bundle)

rector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
]);
3434

3535
$rectorConfig->sets([
36-
LevelSetList::UP_TO_PHP_81,
36+
LevelSetList::UP_TO_PHP_82,
3737
PHPUnitSetList::PHPUNIT_100,
3838
PHPUnitSetList::PHPUNIT_CODE_QUALITY,
3939
]);

src/DependencyInjection/Configuration.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ final class Configuration implements ConfigurationInterface
182182
* @psalm-suppress UndefinedInterfaceMethod
183183
*
184184
* @see https://github.com/psalm/psalm-plugin-symfony/issues/174
185+
*
186+
* @return TreeBuilder<'array'>
185187
*/
186188
public function getConfigTreeBuilder(): TreeBuilder
187189
{

0 commit comments

Comments
 (0)