Skip to content

Commit

Permalink
1.10.0 (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet authored May 21, 2022
1 parent 8b970c3 commit 377e033
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [1.10.0](https://github.com/sonata-project/twig-extensions/compare/1.9.1...1.10.0) - 2022-05-21
### Deprecated
- [[#318](https://github.com/sonata-project/twig-extensions/pull/318)] Passing a string to StatusRuntime::statusClass ([@VincentLanglet](https://github.com/VincentLanglet))
- [[#318](https://github.com/sonata-project/twig-extensions/pull/318)] StatusRendererCompilerPass ([@VincentLanglet](https://github.com/VincentLanglet))
- [[#316](https://github.com/sonata-project/twig-extensions/pull/316)] Deprecated custom bundle file for flex recipe. ([@jordisala1991](https://github.com/jordisala1991))

## [1.9.1](https://github.com/sonata-project/twig-extensions/compare/1.9.0...1.9.1) - 2021-12-04
### Fixed
- [[#269](https://github.com/sonata-project/twig-extensions/pull/269)] Multiple phpdoc ([@VincentLanglet](https://github.com/VincentLanglet))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*
* NEXT_MAJOR: Remove this compiler pass.
*
* @deprecated Since version 1.x, to be removed in 2.0.
* @deprecated Since version 1.10, to be removed in 2.0.
*/
final class StatusRendererCompilerPass implements CompilerPassInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Bridge/Symfony/SonataTwigSymfonyBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace Sonata\Twig\Bridge\Symfony;

@trigger_error(sprintf(
'The %s\SonataTwigSymfonyBundle class is deprecated since sonata-project/twig-extensions 1.x, to be removed in version 2.0. Use %s instead.',
'The %s\SonataTwigSymfonyBundle class is deprecated since sonata-project/twig-extensions 1.10, to be removed in version 2.0. Use %s instead.',
__NAMESPACE__,
SonataTwigBundle::class
), \E_USER_DEPRECATED);
Expand Down
4 changes: 2 additions & 2 deletions src/Extension/StatusRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function statusClass($object, $statusType = null, string $default = ''):
// NEXT_MAJOR: Remove this check.
if ($object instanceof FlashManagerInterface && null !== $statusType) {
@trigger_error(sprintf(
'Passing a %s as argument 1 for "%s()" is deprecated since sonata-project/twig-extensions 1.x'
'Passing a %s as argument 1 for "%s()" is deprecated since sonata-project/twig-extensions 1.10'
.' and will have a different behaviour in 2.0.',
FlashManagerInterface::class,
__METHOD__
Expand All @@ -63,7 +63,7 @@ public function statusClass($object, $statusType = null, string $default = ''):

// NEXT_MAJOR: Throw an exception instead.
@trigger_error(sprintf(
'Passing other type than object as argument 1 for "%s()" is deprecated since sonata-project/twig-extensions 1.x'
'Passing other type than object as argument 1 for "%s()" is deprecated since sonata-project/twig-extensions 1.10'
.' and will throw an exception in 2.0.',
__METHOD__
), \E_USER_DEPRECATED);
Expand Down

0 comments on commit 377e033

Please sign in to comment.