mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 12:26:30 +00:00
Merge branch '3.x' into 4.x
* 3.x: Fix CS
This commit is contained in:
@@ -34,7 +34,7 @@ class DeprecatedCallableInfoTest extends TestCase
|
||||
|
||||
$deprecations = [];
|
||||
try {
|
||||
set_error_handler(function ($type, $msg) use (&$deprecations) {
|
||||
set_error_handler(static function ($type, $msg) use (&$deprecations) {
|
||||
if (\E_USER_DEPRECATED === $type) {
|
||||
$deprecations[] = $msg;
|
||||
}
|
||||
@@ -66,7 +66,7 @@ class DeprecatedCallableInfoTest extends TestCase
|
||||
|
||||
$deprecations = [];
|
||||
try {
|
||||
set_error_handler(function ($type, $msg) use (&$deprecations) {
|
||||
set_error_handler(static function ($type, $msg) use (&$deprecations) {
|
||||
if (\E_USER_DEPRECATED === $type) {
|
||||
$deprecations[] = $msg;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user