diff --git a/src/Symfony/Component/Debug/DebugClassLoader.php b/src/Symfony/Component/Debug/DebugClassLoader.php index 01104ea21e..7d99b634bb 100644 --- a/src/Symfony/Component/Debug/DebugClassLoader.php +++ b/src/Symfony/Component/Debug/DebugClassLoader.php @@ -179,7 +179,7 @@ class DebugClassLoader } if (in_array(strtolower($refl->getShortName()), self::$php7Reserved)) { - trigger_error(sprintf('%s uses a reserved class name (%s) that will break on PHP 7 and higher', $name, $refl->getShortName()), E_USER_DEPRECATED); + @trigger_error(sprintf('%s uses a reserved class name (%s) that will break on PHP 7 and higher', $name, $refl->getShortName()), E_USER_DEPRECATED); } elseif (preg_match('#\n \* @deprecated (.*?)\r?\n \*(?: @|/$)#s', $refl->getDocComment(), $notice)) { self::$deprecated[$name] = preg_replace('#\s*\r?\n \* +#', ' ', $notice[1]); } else { diff --git a/src/Symfony/Component/HttpKernel/Tests/Logger.php b/src/Symfony/Component/HttpKernel/Tests/Logger.php index 017518a305..54300960d3 100644 --- a/src/Symfony/Component/HttpKernel/Tests/Logger.php +++ b/src/Symfony/Component/HttpKernel/Tests/Logger.php @@ -91,7 +91,7 @@ class Logger implements LoggerInterface */ public function emerg($message, array $context = array()) { - trigger_error('Use emergency() which is PSR-3 compatible', E_USER_DEPRECATED); + @trigger_error('Use emergency() which is PSR-3 compatible', E_USER_DEPRECATED); $this->log('emergency', $message, $context); } @@ -101,7 +101,7 @@ class Logger implements LoggerInterface */ public function crit($message, array $context = array()) { - trigger_error('Use critical() which is PSR-3 compatible', E_USER_DEPRECATED); + @trigger_error('Use critical() which is PSR-3 compatible', E_USER_DEPRECATED); $this->log('critical', $message, $context); } @@ -111,7 +111,7 @@ class Logger implements LoggerInterface */ public function err($message, array $context = array()) { - trigger_error('Use error() which is PSR-3 compatible', E_USER_DEPRECATED); + @trigger_error('Use error() which is PSR-3 compatible', E_USER_DEPRECATED); $this->log('error', $message, $context); } @@ -121,7 +121,7 @@ class Logger implements LoggerInterface */ public function warn($message, array $context = array()) { - trigger_error('Use warning() which is PSR-3 compatible', E_USER_DEPRECATED); + @trigger_error('Use warning() which is PSR-3 compatible', E_USER_DEPRECATED); $this->log('warning', $message, $context); } diff --git a/src/Symfony/Component/PropertyAccess/Exception/UnexpectedTypeException.php b/src/Symfony/Component/PropertyAccess/Exception/UnexpectedTypeException.php index 5b87244f9d..3bf8fa4b5e 100644 --- a/src/Symfony/Component/PropertyAccess/Exception/UnexpectedTypeException.php +++ b/src/Symfony/Component/PropertyAccess/Exception/UnexpectedTypeException.php @@ -36,7 +36,7 @@ class UnexpectedTypeException extends RuntimeException $path->getElement($pathIndex) ); } else { - trigger_error('The '.__CLASS__.' constructor now expects 3 arguments: the invalid property value, the '.__NAMESPACE__.'\PropertyPathInterface object and the current index of the property path.', E_USER_DEPRECATED); + @trigger_error('The '.__CLASS__.' constructor now expects 3 arguments: the invalid property value, the '.__NAMESPACE__.'\PropertyPathInterface object and the current index of the property path.', E_USER_DEPRECATED); $message = sprintf( 'Expected argument of type "%s", "%s" given',