Skip to content

Commit 9577b1a

Browse files
mamazudantleech
andauthored
Replace webmozart/path-util with symfony/filesystem (#28)
Co-authored-by: dantleech <dan.t.leech@gmail.com>
1 parent 6793f08 commit 9577b1a

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

composer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@
1010
],
1111
"require": {
1212
"php": "^7.4 || ^8.0",
13-
"psr/log": "^1.0 || ^2.0 || ^3.0",
14-
"webmozart/path-util": "^2.3"
13+
"symfony/filesystem": "^4.2 || ^5.0",
14+
"psr/log": "^1.0 || ^2.0 || ^3.0"
1515
},
1616
"require-dev": {
1717
"ergebnis/composer-normalize": "^2.0",
1818
"friendsofphp/php-cs-fixer": "^3.0",
1919
"phpstan/phpstan": "~0.12.0",
2020
"phpunit/phpunit": "^9.0",
21-
"symfony/filesystem": "^4.2 || ^5.0",
2221
"phpspec/prophecy-phpunit": "^2.0",
2322
"symfony/var-dumper": "^6.0 || ^5.0"
2423
},

lib/Adapter/Composer/ComposerFileToClass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
use Phpactor\ClassFileConverter\Domain\FilePath;
77
use Phpactor\ClassFileConverter\Domain\FileToClass;
88
use Phpactor\ClassFileConverter\Domain\ClassNameCandidates;
9-
use Webmozart\PathUtil\Path;
109
use InvalidArgumentException;
10+
use Symfony\Component\Filesystem\Path;
1111

1212
final class ComposerFileToClass implements FileToClass
1313
{

lib/Domain/FilePath.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Phpactor\ClassFileConverter\Domain;
44

5-
use Webmozart\PathUtil\Path;
5+
use Symfony\Component\Filesystem\Path;
66

77
final class FilePath
88
{

0 commit comments

Comments
 (0)