diff --git a/src/Symfony/Component/Console/Tests/TerminalTest.php b/src/Symfony/Component/Console/Tests/TerminalTest.php index 34d32b08ebecb..08b0df7cdabd6 100644 --- a/src/Symfony/Component/Console/Tests/TerminalTest.php +++ b/src/Symfony/Component/Console/Tests/TerminalTest.php @@ -41,7 +41,7 @@ private function resetStatics() foreach (['height', 'width', 'stty'] as $name) { $property = new \ReflectionProperty(Terminal::class, $name); $property->setAccessible(true); - $property->setValue(null); + $property->setValue(null, null); } } diff --git a/src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterAutoconfigureAttributesPassTest.php b/src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterAutoconfigureAttributesPassTest.php index 793962f3e0466..689c75aa783be 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterAutoconfigureAttributesPassTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterAutoconfigureAttributesPassTest.php @@ -35,9 +35,6 @@ public function testProcess() (new RegisterAutoconfigureAttributesPass())->process($container); $argument = new BoundArgument(1, false, BoundArgument::INSTANCEOF_BINDING, realpath(__DIR__.'/../Fixtures/AutoconfigureAttributed.php')); - $values = $argument->getValues(); - --$values[1]; - $argument->setValues($values); $expected = (new ChildDefinition('')) ->setLazy(true) diff --git a/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php b/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php index e5360807ba54d..a6d0b25b58ad3 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php @@ -1882,7 +1882,7 @@ private function disableHttpMethodParameterOverride() $class = new \ReflectionClass(Request::class); $property = $class->getProperty('httpMethodParameterOverride'); $property->setAccessible(true); - $property->setValue(false); + $property->setValue(null, false); } private function getRequestInstanceForClientIpTests(string $remoteAddr, ?string $httpForwardedFor, ?array $trustedProxies): Request diff --git a/src/Symfony/Component/Messenger/Bridge/Redis/Transport/Connection.php b/src/Symfony/Component/Messenger/Bridge/Redis/Transport/Connection.php index 064c939ba4a1b..c8050658fc5a1 100644 --- a/src/Symfony/Component/Messenger/Bridge/Redis/Transport/Connection.php +++ b/src/Symfony/Component/Messenger/Bridge/Redis/Transport/Connection.php @@ -346,7 +346,7 @@ public function get(): ?array $now = microtime(); $now = substr($now, 11).substr($now, 2, 3); - $queuedMessageCount = $this->rawCommand('ZCOUNT', 0, $now); + $queuedMessageCount = $this->rawCommand('ZCOUNT', 0, $now) ?? 0; while ($queuedMessageCount--) { if (!$message = $this->rawCommand('ZPOPMIN', 1)) {