You are here

public function Twig_Util_DeprecationCollector::errorHandler in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Util/DeprecationCollector.php \Twig_Util_DeprecationCollector::errorHandler()

@internal

File

vendor/twig/twig/lib/Twig/Util/DeprecationCollector.php, line 76

Class

Twig_Util_DeprecationCollector
@author Fabien Potencier <fabien@symfony.com>

Code

public function errorHandler($type, $msg) {
  if (E_USER_DEPRECATED === $type) {
    $this->deprecations[] = $msg;
  }
}