Skip to content

Commit

Permalink
fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Nov 25, 2023
1 parent fd86138 commit ab5f557
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

$rectorConfig->skip([
\Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector::class,
\Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector::class,
\Rector\Php55\Rector\String_\StringClassNameToClassConstantRector::class => [
__DIR__.'/src/Configuration/Configuration.php',
],
Expand Down
3 changes: 1 addition & 2 deletions src/Console/PharInfoRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
use function implode;
use function is_array;
use function KevinGH\Box\format_size;
use function KevinGH\Box\format_size as format_size1;
use function key;
use function preg_match;
use function round;
Expand Down Expand Up @@ -307,7 +306,7 @@ public static function renderContent(
? $splFileInfo->getFilename()
: $splFileInfo->getRelativePathname(),
$compressionLine,
format_size1($compressionSize),
format_size($compressionSize),
),
$depth,
$indent,
Expand Down
6 changes: 4 additions & 2 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@

use Composer\InstalledVersions;
use ErrorException;
use Isolated\Symfony\Component\Finder\Finder as IsolatedFinder;
use Phar;
use Symfony\Component\Console\Helper\Helper;
use Symfony\Component\Finder\Finder as SymfonyFinder;
use Webmozart\Assert\Assert;
use function bin2hex;
use function class_alias;
Expand Down Expand Up @@ -160,8 +162,8 @@ function format_time(float $secs): string
function register_aliases(): void
{
// Exposes the finder used by PHP-Scoper PHAR to allow its usage in the configuration file.
if (false === class_exists(\Isolated\Symfony\Component\Finder\Finder::class)) {
class_alias(\Symfony\Component\Finder\Finder::class, \Isolated\Symfony\Component\Finder\Finder::class);
if (false === class_exists(IsolatedFinder::class)) {
class_alias(SymfonyFinder::class, IsolatedFinder::class);
}
}

Expand Down

0 comments on commit ab5f557

Please sign in to comment.