Skip to content

Commit b8f7f57

Browse files
iquitofabpot
authored andcommitted
Fix false-positive deprecation notices for TranslationLoader and WriteCheckSessionHandler
1 parent 93a3078 commit b8f7f57

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Translation/TranslationLoader.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@
1414
use Symfony\Component\Translation\Reader\TranslationReader;
1515
use Symfony\Component\Translation\MessageCatalogue;
1616

17-
@trigger_error(sprintf('The class "%s" is deprecated since Symfony 3.4 and will be removed in 4.0. Use "%s" instead. ', TranslationLoader::class, TranslationReader::class), E_USER_DEPRECATED);
18-
1917
/**
2018
* @deprecated since version 3.4 and will be removed in 4.0. Use Symfony\Component\Translation\Reader\TranslationReader instead
2119
*/
2220
class TranslationLoader extends TranslationReader
2321
{
22+
public function __construct()
23+
{
24+
@trigger_error(sprintf('The class "%s" is deprecated since Symfony 3.4 and will be removed in 4.0. Use "%s" instead. ', self::class, TranslationReader::class), E_USER_DEPRECATED);
25+
}
26+
2427
/**
2528
* Loads translation messages from a directory to the catalogue.
2629
*

0 commit comments

Comments
 (0)