[2.8] Silence newest deprecations
This commit is contained in:
parent
7304ba185b
commit
351174be88
@ -195,7 +195,7 @@ class FormType extends BaseType
|
||||
|
||||
$readOnlyNormalizer = function (Options $options, $readOnly) {
|
||||
if (null !== $readOnly) {
|
||||
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);
|
||||
@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);
|
||||
|
||||
return $readOnly;
|
||||
}
|
||||
|
@ -294,7 +294,7 @@ class Translator implements TranslatorInterface, TranslatorBagInterface
|
||||
*/
|
||||
public function getMessages($locale = null)
|
||||
{
|
||||
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);
|
||||
@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);
|
||||
|
||||
$catalogue = $this->getCatalogue($locale);
|
||||
$messages = $catalogue->all();
|
||||
|
Reference in New Issue
Block a user