function DeprecationHandler::handle
Same name and namespace in other branches
- main core/tests/Drupal/TestTools/Extension/DeprecationBridge/DeprecationHandler.php \Drupal\TestTools\Extension\DeprecationBridge\DeprecationHandler::handle()
Handles a deprecation error.
This method is invoked by BootstrapErrorHandler.
Parameters
int $errorNumber: The level of the error raised.
string $errorString: The error message.
string $errorFile: The filename that the error was raised in.
int $errorLine: The line number the error was raised at.
Return value
bool TRUE to stop error handling, FALSE to let the normal error handler continue.
See also
\Drupal\TestTools\ErrorHandler\BootstrapErrorHandler
1 call to DeprecationHandler::handle()
- BootstrapErrorHandler::__invoke in core/
tests/ Drupal/ TestTools/ ErrorHandler/ BootstrapErrorHandler.php - Executes when the object is called as a function.
File
-
core/
tests/ Drupal/ TestTools/ Extension/ DeprecationBridge/ DeprecationHandler.php, line 111
Class
- DeprecationHandler
- Drupal's PHPUnit extension to manage code deprecation.
Namespace
Drupal\TestTools\Extension\DeprecationBridgeCode
public static function handle(int $errorNumber, string $errorString, string $errorFile, int $errorLine) : bool {
assert(Configuration::instance()->projectIgnoresEnabled, __METHOD__ . '() must not be called if the deprecation handler is not enabled.');
return self::isIgnoredByProject($errorString);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.