From 2c00f9039294812748f88946ec839069ecc584e2 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Wed, 27 Sep 2023 11:16:16 +0200 Subject: [PATCH] uses nette/utils 4 --- composer.json | 3 +-- src/Checker.php | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 4cd9361..e8b6688 100644 --- a/composer.json +++ b/composer.json @@ -13,8 +13,7 @@ "require": { "php": ">= 8.0", "nette/command-line": "^2.0", - "nette/utils": "^3.0", - "nette/finder": "^2.5", + "nette/utils": "^4.0", "nette/neon": "^3.0", "latte/latte": "^3.0.1", "nette/forms": "^3.0", diff --git a/src/Checker.php b/src/Checker.php index 86547e9..9433436 100644 --- a/src/Checker.php +++ b/src/Checker.php @@ -65,9 +65,7 @@ public function run($paths): bool if ($this->showProgress) { echo str_pad(str_repeat('.', $counter++ % 40), 40), "\x0D"; } - $this->relativePath = is_string($file) - ? $file - : $iterator->getSubPathName(); + $this->relativePath = $file->getRelativePathname(); $success = $this->processFile((string) $file) && $success; }