mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-27 12:18:54 +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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue