Skip to content

Commit 924bdf9

Browse files
Merge branch '7.1' into 7.2
* 7.1: Fix merge Sync .github/expected-missing-return-types.diff [ErrorHandler] Fix `E_STRICT` logging level
2 parents 42b86e4 + c5f65c7 commit 924bdf9

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

.github/expected-missing-return-types.diff

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,23 @@ diff --git a/src/Symfony/Component/VarDumper/Dumper/DataDumperInterface.php b/sr
583583
- public function dump(Data $data);
584584
+ public function dump(Data $data): ?string;
585585
}
586+
diff --git a/src/Symfony/Component/VarExporter/Tests/ProxyHelperTest.php b/src/Symfony/Component/VarExporter/Tests/ProxyHelperTest.php
587+
--- a/src/Symfony/Component/VarExporter/Tests/ProxyHelperTest.php
588+
+++ b/src/Symfony/Component/VarExporter/Tests/ProxyHelperTest.php
589+
@@ -172,5 +172,5 @@ class ProxyHelperTest extends TestCase
590+
{
591+
yield 'not type hinted __unserialize method' => [new class() {
592+
- public function __unserialize($array)
593+
+ public function __unserialize($array): void
594+
{
595+
}
596+
@@ -192,5 +192,5 @@ class ProxyHelperTest extends TestCase
597+
598+
yield 'type hinted __unserialize method' => [new class() {
599+
- public function __unserialize(array $array)
600+
+ public function __unserialize(array $array): void
601+
{
602+
}
586603
diff --git a/src/Symfony/Contracts/Translation/LocaleAwareInterface.php b/src/Symfony/Contracts/Translation/LocaleAwareInterface.php
587604
--- a/src/Symfony/Contracts/Translation/LocaleAwareInterface.php
588605
+++ b/src/Symfony/Contracts/Translation/LocaleAwareInterface.php

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,7 @@ public function testSerializerJsonDetailedErrorMessagesEnabledWhenDefaultContext
573573
$processor = new Processor();
574574
$config = $processor->processConfiguration(new Configuration(true), [
575575
[
576+
'http_method_override' => false,
576577
'serializer' => [
577578
'default_context' => [
578579
'foo' => 'bar',
@@ -589,6 +590,7 @@ public function testSerializerJsonDetailedErrorMessagesInDefaultContextCanBeDisa
589590
$processor = new Processor();
590591
$config = $processor->processConfiguration(new Configuration(true), [
591592
[
593+
'http_method_override' => false,
592594
'serializer' => [
593595
'default_context' => [
594596
'foo' => 'bar',
@@ -606,6 +608,7 @@ public function testSerializerJsonDetailedErrorMessagesInDefaultContextCanBeDisa
606608
$processor = new Processor();
607609
$config = $processor->processConfiguration(new Configuration(true), [
608610
[
611+
'http_method_override' => false,
609612
'serializer' => [
610613
'default_context' => [
611614
'foo' => 'bar',

src/Symfony/Component/ErrorHandler/ErrorHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public function __construct(
182182
) {
183183
if (\PHP_VERSION_ID < 80400) {
184184
$this->levels[\E_STRICT] = 'Runtime Notice';
185-
$this->loggers[\E_STRICT] = [null, LogLevel::WARNING];
185+
$this->loggers[\E_STRICT] = [null, LogLevel::ERROR];
186186
}
187187

188188
if ($bootstrappingLogger) {

0 commit comments

Comments
 (0)