10000 Fix deprecations on PHP 8.3 · symfony/symfony@f9eb2cf · GitHub
[go: up one dir, main page]

Skip to content

Commit f9eb2cf

Browse files
Fix deprecations on PHP 8.3
1 parent d79796b commit f9eb2cf

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

src/Symfony/Component/Console/Tests/TerminalTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private function resetStatics()
4141
foreach (['height', 'width', 'stty'] as $name) {
4242
$property = new \ReflectionProperty(Terminal::class, $name);
4343
$property->setAccessible(true);
44-
$property->setValue(null);
44+
$property->setValue(null, null);
4545
}
4646
}
4747

src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterAutoconfigureAttributesPassTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ public function testProcess()
3535
(new RegisterAutoconfigureAttributesPass())->process($container);
3636

3737
$argument = new BoundArgument(1, false, BoundArgument::INSTANCEOF_BINDING, realpath(__DIR__.'/../Fixtures/AutoconfigureAttributed.php'));
38-
$values = $argument->getValues();
39-
--$values[1];
40-
$argument->setValues($values);
4138

4239
$expected = (new ChildDefinition(''))
4340
->setLazy(true)

src/Symfony/Component/HttpFoundation/Tests/RequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1882,7 +1882,7 @@ private function disableHttpMethodParameterOverride()
18821882
$class = new \ReflectionClass(Request::class);
18831883
$property = $class->getProperty('httpMethodParameterOverride');
18841884
$property->setAccessible(true);
1885-
$property->setValue(false);
1885+
$property->setValue(null, false);
18861886
}
18871887

18881888
private function getRequestInstanceForClientIpTests(string $remoteAddr, ?string $httpForwardedFor, ?array $trustedProxies): Request

src/Symfony/Component/Messenger/Bridge/Redis/Transport/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ public function get(): ?array
346346
$now = microtime();
347347
$now = substr($now, 11).substr($now, 2, 3);
348348

349-
$queuedMessageCount = $this->rawCommand('ZCOUNT', 0, $now);
349+
$queuedMessageCount = $this->rawCommand('ZCOUNT', 0, $now) ?? 0;
350350

351351
while ($queuedMessageCount--) {
352352
if (!$message = $this->rawCommand('ZPOPMIN', 1)) {

0 commit comments

Comments
 (0)
0