Fixed some deprecations.

This commit is contained in:
Jan Böhmer 2022-08-14 19:09:07 +02:00
parent 4fa8eef1bf
commit 5fd608f42a
59 changed files with 202 additions and 165 deletions

View file

@ -146,9 +146,9 @@ class CleanAttachmentsCommand extends Command
/**
* This function removes all empty folders inside $path. Taken from https://stackoverflow.com/a/1833681.
*
* @param string $path The path in which the empty folders should be deleted
* @param string $path The path in which the empty folders should be deleted
*/
protected function removeEmptySubFolders($path): bool
protected function removeEmptySubFolders(string $path): bool
{
$empty = true;
foreach (glob($path.DIRECTORY_SEPARATOR.'*') as $file) {

View file

@ -76,7 +76,7 @@ class ShowEventLogCommand extends Command
parent::__construct();
}
public function execute(InputInterface $input, OutputInterface $output)
public function execute(InputInterface $input, OutputInterface $output): int
{
$io = new SymfonyStyle($input, $output);

View file

@ -31,7 +31,7 @@ class UserListCommand extends Command
;
}
protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
$io = new SymfonyStyle($input, $output);