Skip to content

Commit 232d6d0

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: fix merge fix merge fix merge
2 parents 4e01371 + 0e1883e commit 232d6d0

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/Symfony/Component/Config/Tests/Definition/BaseNodeTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,17 @@ protected function validateType($value): void
4141
{
4242
}
4343

44-
protected function normalizeValue($value)
44+
protected function normalizeValue($value): mixed
4545
{
4646
return null;
4747
}
4848

49-
protected function mergeValues($leftSide, $rightSide)
49+
protected function mergeValues($leftSide, $rightSide): mixed
5050
{
5151
return null;
5252
}
5353

54-
protected function finalizeValue($value)
54+
protected function finalizeValue($value): mixed
5555
{
5656
return null;
5757
}
@@ -61,7 +61,7 @@ public function hasDefaultValue(): bool
6161
return true;
6262
}
6363

64-
public function getDefaultValue()
64+
public function getDefaultValue(): mixed
6565
{
6666
return null;
6767
}

src/Symfony/Component/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ protected function tearDown(): void
5555
@rmdir($this->savePath);
5656
}
5757

58-
$this->savePath = null;
5958
ini_set('session.save_handler', $this->initialSessionSaveHandler);
6059
ini_set('session.save_path', $this->initialSessionSavePath);
6160
}

src/Symfony/Component/HttpFoundation/Tests/Session/Storage/PhpBridgeSessionStorageTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ protected function tearDown(): void
5151
@rmdir($this->savePath);
5252
}
5353

54-
$this->savePath = null;
5554
ini_set('session.save_handler', $this->initialSessionSaveHandler);
5655
ini_set('session.save_path', $this->initialSessionSavePath);
5756
}

src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Proxy/AbstractProxyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
class AbstractProxyTest extends TestCase
2525
{
26-
protected MockObject&AbstractProxy $proxy;
26+
protected AbstractProxy $proxy;
2727

2828
protected function setUp(): void
2929
{

src/Symfony/Component/HttpKernel/Tests/Fragment/InlineFragmentRendererTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function testRenderExceptionIgnoreErrors()
102102

103103
public function testRenderExceptionIgnoreErrorsWithAlt()
104104
{
105-
$strategy = new InlineFragmentRenderer($this->getKernel($this->returnCallback(function () {
105+
$strategy = new InlineFragmentRenderer($this->getKernel(function () {
106106
static $firstCall = true;
107107

108108
if ($firstCall) {
@@ -112,7 +112,7 @@ public function testRenderExceptionIgnoreErrorsWithAlt()
112112
}
113113

114114
return new Response('bar');
115-
})));
115+
}));
116116

117117
$this->assertEquals('bar', $strategy->render('/', Request::create('/'), ['ignore_errors' => true, 'alt' => '/foo'])->getContent());
118118
}
@@ -127,6 +127,8 @@ private function getKernel($returnValue)
127127

128128
if ($returnValue instanceof \Exception) {
129129
$mocker->willThrowException($returnValue);
130+
} elseif ($returnValue instanceof \Closure) {
131+
$mocker->willReturnCallback($returnValue);
130132
} else {
131133
$mocker->willReturn(...(\is_array($returnValue) ? $returnValue : [$returnValue]));
132134
}

0 commit comments

Comments
 (0)