Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Leverage FidryFileSystem #852

Merged
merged 1 commit into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"require": {
"php": "^8.1",
"fidry/console": "^0.5.0 || ^0.6.0",
"fidry/filesystem": "^1.1",
"jetbrains/phpstorm-stubs": "^v2022.2",
"nikic/php-parser": "^4.12",
"symfony/console": "^5.2 || ^6.0",
Expand Down
123 changes: 96 additions & 27 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/Configuration/ConfigurationFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

namespace Humbug\PhpScoper\Configuration;

use Fidry\FileSystem\FS;
use Humbug\PhpScoper\Container;
use Humbug\PhpScoper\FileSystemTestCase;
use Humbug\PhpScoper\Patcher\ComposerPatcher;
Expand All @@ -24,7 +25,6 @@
use Humbug\PhpScoper\Symbol\SymbolRegistry;
use InvalidArgumentException;
use function array_keys;
use function KevinGH\Box\FileSystem\dump_file;
use function Safe\touch;
use const DIRECTORY_SEPARATOR;

Expand Down Expand Up @@ -168,7 +168,7 @@ public function test_it_can_create_a_complete_configuration(): void

private static function dumpStandardConfigFile(string $contents): void
{
dump_file('scoper.inc.php', $contents);
FS::dumpFile('scoper.inc.php', $contents);
}

private function createConfigFromStandardFile(): Configuration
Expand Down
Loading
Loading