1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00
This commit is contained in:
Jordi Boggiano 2022-08-17 15:20:07 +03:00 committed by GitHub
parent 6e205a0c84
commit 131da999ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
357 changed files with 5943 additions and 9174 deletions

View file

@ -35,7 +35,7 @@ class SilencerTest extends TestCase
Silencer::restore();
// Check all parameters and return values are passed correctly in a silenced call.
$result = Silencer::call(function ($a, $b, $c) {
$result = Silencer::call(static function ($a, $b, $c) {
@trigger_error('Test', E_USER_WARNING);
return $a * $b * $c;
@ -54,7 +54,7 @@ class SilencerTest extends TestCase
$verification = microtime();
self::expectException('RuntimeException');
self::expectExceptionMessage($verification);
Silencer::call(function () use ($verification): void {
Silencer::call(static function () use ($verification): void {
throw new \RuntimeException($verification);
});
}