8000 [2.8] Silence newest deprecations · symfony/symfony@351174b · GitHub
[go: up one dir, main page]

Skip to content

Commit 351174b

Browse files
[2.8] Silence newest deprecations
1 parent 7304ba1 commit 351174b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Form/Extension/Core/Type/FormType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function configureOptions(OptionsResolver $resolver)
195195

196196
$readOnlyNormalizer = function (Options $options, $readOnly) {
197197
if (null !== $readOnly) {
198-
trigger_error('The form option "read_only" is deprecated since version 2.8 and will be removed in 3.0. Use "attr[\'readonly\']" instead.', E_USER_DEPRECATED);
198+
@trigger_error('The form option "read_only" is deprecated since version 2.8 and will be removed in 3.0. Use "attr[\'readonly\']" instead.', E_USER_DEPRECATED);
199199

200200
return $readOnly;
201201
}

src/Symfony/Component/Translation/Translator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ protected function getLoaders()
294294
*/
295295
public function getMessages($locale = null)
296296
{
297-
trigger_error('The '.__METHOD__.' method is deprecated since version 2.8 and will be removed in 3.0. Use TranslatorBagInterface::getCatalogue() method instead.', E_USER_DEPRECATED);
297+
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.8 and will be removed in 3.0. Use TranslatorBagInterface::getCatalogue() method instead.', E_USER_DEPRECATED);
298298

299299
$catalogue = $this->getCatalogue($locale);
300300
$messages = $catalogue->all();

0 commit comments

Comments
 (0)
0