cs: Enable risky rule static_lambda.

This commit is contained in:
Pol Dellaiera
2021-11-30 11:43:34 +01:00
parent a9188355c5
commit 91d12c4a96
111 changed files with 212 additions and 212 deletions

View File

@@ -230,7 +230,7 @@ class ExportManagerTest extends KernelTestCase
Argument::Type('array'),
Argument::is(['a' => 'b'])
)
->will(function () use ($em) {
->will(static function () use ($em) {
$qb = $em->createQueryBuilder();
return $qb->addSelect('COUNT(user.id) as export')
@@ -254,7 +254,7 @@ class ExportManagerTest extends KernelTestCase
Argument::is([0, 1]),
Argument::Type('array')
)
->willReturn(function ($value) {
->willReturn(static function ($value) {
switch ($value) {
case 0:
case 1:
@@ -294,7 +294,7 @@ class ExportManagerTest extends KernelTestCase
Argument::is(['cat a', 'cat b']),
Argument::is([])
)
->willReturn(function ($value) {
->willReturn(static function ($value) {
switch ($value) {
case '_header': return 'foo_header';