Skip to content

Commit 9cb6989

Browse files
authored
Merge 5.x into 6.x
2 parents ec31d14 + 9573a73 commit 9cb6989

File tree

7 files changed

+23
-31
lines changed

7 files changed

+23
-31
lines changed

.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.3'
32+
php-version: '8.4'
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.3'
56+
php-version: '8.4'
5757
coverage: none
5858
tools: composer:v2, composer-normalize:2
5959
env:

.github/workflows/qa.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.3'
32+
php-version: '8.4'
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.3'
56+
php-version: '8.4'
5757
coverage: none
5858
tools: composer:v2
5959

@@ -63,7 +63,7 @@ jobs:
6363
dependency-versions: highest
6464

6565
- name: Psalm
66-
run: vendor/bin/psalm --no-progress --show-info=false --stats --output-format=github --threads=$(nproc) --shepherd --php-version=8.3
66+
run: vendor/bin/psalm --no-progress --show-info=false --stats --output-format=github --threads=$(nproc) --shepherd --php-version=8.4
6767

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

.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.3'
32+
php-version: '8.4'
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.3'
56+
php-version: '8.4'
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.3'
80+
php-version: '8.4'
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.3'
104+
php-version: '8.4'
105105
coverage: none
106106
tools: composer:v2
107107

.github/workflows/test.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
- '8.1'
3434
- '8.2'
3535
- '8.3'
36+
- '8.4'
3637
dependencies: [highest]
3738
allowed-to-fail: [false]
3839
symfony-require: ['']
@@ -42,17 +43,17 @@ jobs:
4243
dependencies: lowest
4344
allowed-to-fail: false
4445
variant: normal
45-
- php-version: '8.3'
46+
- php-version: '8.4'
4647
dependencies: highest
4748
allowed-to-fail: false
4849
symfony-require: 6.4.*
4950
variant: symfony/symfony:"6.4.*"
50-
- php-version: '8.3'
51+
- php-version: '8.4'
5152
dependencies: highest
5253
allowed-to-fail: false
5354
symfony-require: 7.1.*
5455
variant: symfony/symfony:"7.1.*"
55-
- php-version: '8.3'
56+
- php-version: '8.4'
5657
dependencies: highest
5758
allowed-to-fail: false
5859
symfony-require: 7.2.*

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [5.2.0](https://github.com/sonata-project/SonataBlockBundle/compare/5.1.2...5.2.0) - 2025-05-16
6+
### Deprecated
7+
- [[#1232](https://github.com/sonata-project/SonataBlockBundle/pull/1232)] Extending BlockHelper ([@VincentLanglet](https://github.com/VincentLanglet))
8+
59
## [5.1.2](https://github.com/sonata-project/SonataBlockBundle/compare/5.1.1...5.1.2) - 2025-02-05
610
### Fixed
711
- [[#1218](https://github.com/sonata-project/SonataBlockBundle/pull/1218)] Fix: form validations are by passed when an Exception is thrown ([@sad270](https://github.com/sad270))

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ lint-xliff:
4444
.PHONY: lint-xliff
4545

4646
lint-php:
47-
vendor/bin/php-cs-fixer fix --ansi --verbose --diff --dry-run
47+
PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --ansi --verbose --diff --dry-run
4848
.PHONY: lint-php
4949

5050
lint-symfony: lint-symfony-container lint-symfony-twig lint-symfony-xliff lint-symfony-yaml
@@ -70,7 +70,7 @@ cs-fix: cs-fix-php cs-fix-xml cs-fix-xliff cs-fix-composer
7070
.PHONY: cs-fix
7171

7272
cs-fix-php:
73-
vendor/bin/php-cs-fixer fix --verbose
73+
PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --verbose
7474
.PHONY: cs-fix-php
7575

7676
cs-fix-xml:
@@ -117,7 +117,7 @@ phpstan:
117117
.PHONY: phpstan
118118

119119
psalm:
120-
vendor/bin/psalm --php-version=8.3
120+
vendor/bin/psalm --php-version=8.4
121121
.PHONY: psalm
122122

123123
rector:

docs/reference/testing.rst

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ Given the following block service::
3232

3333
You can write unit tests for block services with the following code::
3434

35-
use Sonata\BlockBundle\Test\AbstractBlockServiceTestCase;
35+
use Sonata\BlockBundle\Test\BlockServiceTestCase;
3636

37-
class CustomBlockServiceTest extends AbstractBlockServiceTestCase
37+
class CustomBlockServiceTest extends BlockServiceTestCase
3838
{
3939
public function testDefaultSettings(): void
4040
{
@@ -47,17 +47,4 @@ You can write unit tests for block services with the following code::
4747
'template' => false,
4848
], $blockContext);
4949
}
50-
51-
public function testExecute(): void
52-
{
53-
$blockService = new CustomBlockService('foo', $this->twig);
54-
$blockContext = $this->getBlockContext($blockService);
55-
56-
$blockService->execute($blockContext);
57-
58-
$this->assertSame($blockContext, $this->templating->parameters['context']);
59-
$this->assertInternalType('array', $this->templating->parameters['settings']);
60-
$this->assertInstanceOf('Sonata\BlockBundle\Model\BlockInterface', $this->templating->parameters['block']);
61-
$this->assertSame('bar', $this->templating->parameters['foo']);
62-
}
6350
}

0 commit comments

Comments
 (0)