File tree Expand file tree Collapse file tree 7 files changed +23
-31
lines changed
Expand file tree Collapse file tree 7 files changed +23
-31
lines changed Original file line number Diff line number Diff line change 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
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 :
Original file line number Diff line number Diff line change 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
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
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
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
Original file line number Diff line number Diff line change 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
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
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
Original file line number Diff line number Diff line change 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.*
Original file line number Diff line number Diff line change 22All notable changes to this project will be documented in this file.
33This 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 ) )
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ lint-xliff:
4444.PHONY : lint-xliff
4545
4646lint-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
5050lint-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
7272cs-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
7676cs-fix-xml :
@@ -117,7 +117,7 @@ phpstan:
117117.PHONY : phpstan
118118
119119psalm :
120- vendor/bin/psalm --php-version=8.3
120+ vendor/bin/psalm --php-version=8.4
121121.PHONY : psalm
122122
123123rector :
Original file line number Diff line number Diff line change @@ -32,9 +32,9 @@ Given the following block service::
3232
3333You 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 }
You can’t perform that action at this time.
0 commit comments