Skip to content

Commit cc9f052

Browse files
committed
Fixes & cs
1 parent 9145047 commit cc9f052

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

phpstan-baseline.neon

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -443,22 +443,22 @@ parameters:
443443
-
444444
message: "#^Method Overblog\\\\GraphQLBundle\\\\Tests\\\\Functional\\\\TestCase\\:\\:createKernel\\(\\) should return Symfony\\\\Component\\\\HttpKernel\\\\KernelInterface but returns object\\.$#"
445445
count: 1
446-
path: tests/Functional/TestCase.php
446+
path: tests/Functional/BaseTestCase.php
447447

448448
-
449449
message: "#^Missing call to parent\\:\\:tearDown\\(\\) method\\.$#"
450450
count: 1
451-
path: tests/Functional/TestCase.php
451+
path: tests/Functional/BaseTestCase.php
452452

453453
-
454454
message: "#^Parameter \\#1 \\$json of function json_decode expects string, string\\|false given\\.$#"
455455
count: 1
456-
path: tests/Functional/TestCase.php
456+
path: tests/Functional/BaseTestCase.php
457457

458458
-
459459
message: "#^Parameter \\#3 \\$message of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\) expects string, string\\|false given\\.$#"
460460
count: 1
461-
path: tests/Functional/TestCase.php
461+
path: tests/Functional/BaseTestCase.php
462462

463463
-
464464
message: "#^Parameter \\#1 \\$json of function json_decode expects string, string\\|false given\\.$#"

src/CacheWarmer/CompileCacheWarmer.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@ public function isOptional(): bool
2727
}
2828

2929
/**
30-
* @param string $cacheDir
31-
*
3230
* @return string[]
3331
*/
34-
public function warmUp(string $cacheDir, ?string $buildDir = null): array
32+
public function warmUp(string $cacheDir, string $buildDir = null): array
3533
{
3634
if ($this->compiled) {
3735
// use warm up cache dir if type generator cache dir not already explicitly declared

tests/ExpressionLanguage/TestCase.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ protected function getSecurityIsGrantedWithExpectation($with, $expects = null, $
8787
$returnValue = $this->returnValue($return);
8888
}
8989

90+
// @phpstan-ignore-next-line
9091
$methodExpectation = $security
9192
->expects($expects)
9293
->method('isGranted');
@@ -96,6 +97,7 @@ protected function getSecurityIsGrantedWithExpectation($with, $expects = null, $
9697
// @phpstan-ignore-next-line
9798
$methodExpectation->will($returnValue);
9899

100+
// @phpstan-ignore-next-line
99101
return new Security($security);
100102
}
101103

tests/Functional/App/TestKernel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
7373
$loader->load(__DIR__.'/config/config.yml');
7474
}
7575

76+
// @phpstan-ignore-next-line
7677
if (Kernel::VERSION < 60200) {
7778
$loader->load(__DIR__.'/config/config_pre_62.yml');
7879
}

tests/Functional/BaseTestCase.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ protected static function createKernel(array $options = []): KernelInterface
5151

5252
$options['test_case'] ??= '';
5353

54-
$env = $options['environment'] ?? 'test' . strtolower($options['test_case']);
54+
$env = $options['environment'] ?? 'test'.strtolower($options['test_case']);
5555
$debug = $options['debug'] ?? true;
5656

5757
return new static::$class($env, $debug, $options['test_case']);
@@ -63,7 +63,7 @@ protected static function createKernel(array $options = []): KernelInterface
6363
public static function setUpBeforeClass(): void
6464
{
6565
$fs = new Filesystem();
66-
$fs->remove(sys_get_temp_dir() . '/OverblogGraphQLBundle/');
66+
$fs->remove(sys_get_temp_dir().'/OverblogGraphQLBundle/');
6767
}
6868

6969
protected function tearDown(): void
@@ -157,7 +157,7 @@ public static function expressionFunctionFromPhp(string $phpFunctionName)
157157
return call_user_func([ExpressionFunction::class, 'fromPhp'], $phpFunctionName);
158158
}
159159

160-
return new ExpressionFunction($phpFunctionName, fn() => sprintf('\%s(%s)', $phpFunctionName, implode(', ', func_get_args())), function (): void {});
160+
return new ExpressionFunction($phpFunctionName, fn () => sprintf('\%s(%s)', $phpFunctionName, implode(', ', func_get_args())), function (): void {});
161161
}
162162

163163
/**

0 commit comments

Comments
 (0)