diff --git a/CHANGELOG.md b/CHANGELOG.md index 8391e8c8..2d5d529f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [4.10.0](https://github.com/sonata-project/SonataBlockBundle/compare/4.9.1...4.10.0) - 2022-02-28 +### Deprecated +- [[#1012](https://github.com/sonata-project/SonataBlockBundle/pull/1012)] Not passing a string value for the template setting of a BlockContext ([@VincentLanglet](https://github.com/VincentLanglet)) + ## [4.9.1](https://github.com/sonata-project/SonataBlockBundle/compare/4.9.0...4.9.1) - 2022-01-01 ### Fixed - [[#997](https://github.com/sonata-project/SonataBlockBundle/pull/997)] Wrong deprecation message in BlockContextManager with Symfony 4 ([@VincentLanglet](https://github.com/VincentLanglet)) diff --git a/src/Block/BlockContext.php b/src/Block/BlockContext.php index 2073716b..1f4172b6 100644 --- a/src/Block/BlockContext.php +++ b/src/Block/BlockContext.php @@ -34,7 +34,7 @@ public function __construct(BlockInterface $block, array $settings = []) { if (!\array_key_exists('template', $settings)) { @trigger_error( - 'Not providing a "template" setting is deprecated since sonata-project/block-bundle 4.x' + 'Not providing a "template" setting is deprecated since sonata-project/block-bundle 4.10' .' and will be throw an exception in version 5.0.', \E_USER_DEPRECATED ); @@ -44,7 +44,7 @@ public function __construct(BlockInterface $block, array $settings = []) } elseif (!\is_string($settings['template'])) { @trigger_error( 'Not providing a string value for the "template" setting is deprecated since' - .' sonata-project/block-bundle 4.x and will be throw an exception in version 5.0.', + .' sonata-project/block-bundle 4.10 and will be throw an exception in version 5.0.', \E_USER_DEPRECATED );