Skip to content

Commit 8733a0f

Browse files
committed
[FrameworkBundle] Make Translator class final
1 parent a985ec4 commit 8733a0f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

UPGRADE-8.0.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ FrameworkBundle
179179
$application->addCommand(new CreateUserCommand());
180180
```
181181

182+
* Make `Translator` class `final`
183+
182184
HttpFoundation
183185
--------------
184186

src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ CHANGELOG
66

77
* Enable the property info constructor extractor by default
88
* Remove deprecated `Symfony\Bundle\FrameworkBundle\Console\Application::add()` method in favor of `Symfony\Bundle\FrameworkBundle\Console\Application::addCommand()`
9+
* Make `Translator` class `final`
910

1011
7.4
1112
---

src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@
2121

2222
/**
2323
* @author Fabien Potencier <fabien@symfony.com>
24-
*
25-
* @final since Symfony 7.1
2624
*/
27-
class Translator extends BaseTranslator implements WarmableInterface
25+
final class Translator extends BaseTranslator implements WarmableInterface
2826
{
2927
protected array $options = [
3028
'cache_dir' => null,

0 commit comments

Comments
 (0)