mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Fix CS (#11003)
This commit is contained in:
parent
6e205a0c84
commit
131da999ac
357 changed files with 5943 additions and 9174 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue