mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 10:49:00 +02:00
Fixed some deprecations.
This commit is contained in:
parent
4fa8eef1bf
commit
5fd608f42a
59 changed files with 202 additions and 165 deletions
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue