Skip to content

Commit 7501c1b

Browse files
authored
fix(core): remove php 8.5 deprecations (#1742)
1 parent 29c64db commit 7501c1b

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

packages/console/src/Commands/CompleteCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __invoke(
3232
array $input,
3333
int $current,
3434
): void {
35-
$commandName = $input[1] ?? null;
35+
$commandName = $input[1] ?? '';
3636

3737
$command = $this->consoleConfig->commands[$commandName] ?? null;
3838

packages/console/src/Input/ConsoleArgumentBag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function all(): array
4747

4848
public function last(): ?ConsoleInputArgument
4949
{
50-
return $this->arguments[array_key_last($this->arguments)] ?? null;
50+
return $this->arguments[array_key_last($this->arguments) ?? ''] ?? null;
5151
}
5252

5353
public function has(string ...$names): bool

packages/http/tests/Mappers/PsrRequestToGenericRequestMapperTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ protected function setUp(): void
4343

4444
$reflection = new ReflectionClass($this->mapper);
4545
$this->requestMethod = $reflection->getMethod('requestMethod');
46-
$this->requestMethod->setAccessible(true);
4746
}
4847

4948
#[DataProvider('nonPostMethodsProvider')]

0 commit comments

Comments
 (0)