diff --git a/composer.json b/composer.json
index adaf098873f8ab0d2d8cd0da0ac4eae3045ed02e..b485492f524d630f4fed69773c684873a80b904a 100644
--- a/composer.json
+++ b/composer.json
@@ -29,7 +29,7 @@
 		"nette/finder": "^2.5",
 		"nette/php-generator": "^3.6.1",
 		"symfony/console": "^5.0",
-		"webmozart/path-util": "^2.3"
+		"symfony/filesystem": "^6.0"
 	},
 	"require-dev": {
 		"nette/tester": "^2.0.0",
diff --git a/src/Console/ScaffolderCommand.php b/src/Console/ScaffolderCommand.php
index 38fcca146694d5717c755716c337f438889f8e3f..18457f07797730b86bbca8b8a180b77d8008a013 100644
--- a/src/Console/ScaffolderCommand.php
+++ b/src/Console/ScaffolderCommand.php
@@ -17,7 +17,8 @@ use Symfony\Component\Console\Input\InputInterface;
 use Symfony\Component\Console\Input\InputOption;
 use Symfony\Component\Console\Output\OutputInterface;
 use Symfony\Component\Console\Style\SymfonyStyle;
-use Webmozart\PathUtil\Path;
+use Symfony\Component\Filesystem\Path;
+
 
 abstract class ScaffolderCommand extends Command
 {
diff --git a/src/DefinitionFile.php b/src/DefinitionFile.php
index 133be9f20c0d32b672edac79b0863ea4899ba227..48c65acf46235281bc079ca580f1877a6834d57c 100644
--- a/src/DefinitionFile.php
+++ b/src/DefinitionFile.php
@@ -5,7 +5,8 @@ declare(strict_types=1);
 namespace Grifart\ClassScaffolder;
 
 use Grifart\ClassScaffolder\Definition\ClassDefinition;
-use Webmozart\PathUtil\Path;
+use Symfony\Component\Filesystem\Path;
+
 
 /**
  * @internal
diff --git a/tests/php-unix.ini b/tests/php-unix.ini
index 115120110ae96d691c78874692b37d95860bbc6e..bda80c80e3fc070916070c4c00b24a841b142f2b 100644
--- a/tests/php-unix.ini
+++ b/tests/php-unix.ini
@@ -1 +1,2 @@
+extension=iconv
 extension=tokenizer