This commit is contained in:
2021-12-22 03:29:27 +08:00
parent 9ca53a73ce
commit 6fd8a5dd34
+3 -2
View File
@@ -2,6 +2,7 @@
namespace Kiri\Abstracts;
use DirectoryIterator;
use Kiri\Kiri;
use Note\Inject;
use Exception;
@@ -199,8 +200,8 @@ class Logger implements LoggerInterface
*/
private function removeFile(string $dirname)
{
$paths = new \DirectoryIterator($dirname);
/** @var \DirectoryIterator $path */
$paths = new DirectoryIterator($dirname);
/** @var DirectoryIterator $path */
foreach ($paths as $path) {
if ($path->isDot() || str_starts_with($path->getFilename(), '.')) {
continue;