Skip to content

Commit 80a84ae

Browse files
committed
Silence invasive deprecation warnings, opt-in for warnings
1 parent d5326b2 commit 80a84ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ConfigCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function __construct($file, $debug)
4646
*/
4747
public function __toString()
4848
{
49-
trigger_error('ConfigCache::__toString() is deprecated since version 2.7 and will be removed in 3.0. Use the getPath() method instead.', E_USER_DEPRECATED);
49+
@trigger_error('ConfigCache::__toString() is deprecated since version 2.7 and will be removed in 3.0. Use the getPath() method instead.', E_USER_DEPRECATED);
5050

5151
return $this->file;
5252
}

Definition/ReferenceDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Component\Config\Definition;
1313

14-
trigger_error('The '.__NAMESPACE__.'\ReferenceDumper class is deprecated since version 2.4 and will be removed in 3.0. Use the Symfony\Component\Config\Definition\Dumper\YamlReferenceDumper class instead.', E_USER_DEPRECATED);
14+
@trigger_error('The '.__NAMESPACE__.'\ReferenceDumper class is deprecated since version 2.4 and will be removed in 3.0. Use the Symfony\Component\Config\Definition\Dumper\YamlReferenceDumper class instead.', E_USER_DEPRECATED);
1515

1616
use Symfony\Component\Config\Definition\Dumper\YamlReferenceDumper;
1717

0 commit comments

Comments
 (0)