mirror of
https://github.com/owncloud/ocis
synced 2026-04-25 17:25:21 +02:00
test: adjust PHP code to support v8.4
The implicite nullable type has been deprecated. This fixes it by explicitely typing every nullable type. PHP is also bumped in composer and drone to v8.4.
This commit is contained in:
@@ -1600,7 +1600,7 @@ trait WebDav {
|
||||
* @param string $user
|
||||
* @param string $source
|
||||
* @param string $destination
|
||||
* @param string $spaceId
|
||||
* @param string|null $spaceId
|
||||
* @param bool|null $isGivenStep
|
||||
*
|
||||
* @return ResponseInterface
|
||||
@@ -1609,7 +1609,7 @@ trait WebDav {
|
||||
string $user,
|
||||
string $source,
|
||||
string $destination,
|
||||
string $spaceId = null,
|
||||
?string $spaceId = null,
|
||||
?bool $isGivenStep = false,
|
||||
): ResponseInterface {
|
||||
$user = $this->getActualUsername($user);
|
||||
@@ -4042,11 +4042,11 @@ trait WebDav {
|
||||
/**
|
||||
* @param string $user
|
||||
* @param string $path
|
||||
* @param string $spaceId
|
||||
* @param string|null $spaceId
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getFileIdForPath(string $user, string $path, string $spaceId = null): ?string {
|
||||
public function getFileIdForPath(string $user, string $path, ?string $spaceId = null): ?string {
|
||||
$user = $this->getActualUsername($user);
|
||||
try {
|
||||
return WebDavHelper::getFileIdForPath(
|
||||
|
||||
Reference in New Issue
Block a user