From 1423c7c5707f3b785a1acabfd7a2baf69889a453 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Wed, 7 Aug 2024 19:45:34 +1000 Subject: [PATCH] Fixed exception driven by the updstream. (#88) --- composer.json | 2 +- rector.php | 4 ---- src/Git/ArtifactGitRepository.php | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index 17a3d73..89675b4 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ }, "require": { "php": ">=8.2", - "czproject/git-php": "^4.2", + "czproject/git-php": "^4.3", "monolog/monolog": "^3.5", "symfony/console": "^7", "symfony/filesystem": "^7", diff --git a/rector.php b/rector.php index a158b55..27de71c 100644 --- a/rector.php +++ b/rector.php @@ -15,9 +15,7 @@ use Rector\CodeQuality\Rector\ClassMethod\InlineArrayReturnAssignRector; use Rector\CodeQuality\Rector\Empty_\SimplifyEmptyCheckOnEmptyArrayRector; use Rector\CodingStyle\Rector\ClassMethod\NewlineBeforeNewAssignSetRector; -use Rector\CodingStyle\Rector\FuncCall\ArraySpreadInsteadOfArrayMergeRector; use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector; -use Rector\CodingStyle\Rector\PostInc\PostIncDecToPreIncDecRector; use Rector\CodingStyle\Rector\Stmt\NewlineAfterStatementRector; use Rector\Config\RectorConfig; use Rector\DeadCode\Rector\If_\RemoveAlwaysTrueIfConditionRector; @@ -41,13 +39,11 @@ $rectorConfig->skip([ // Rules added by Rector's rule sets. - ArraySpreadInsteadOfArrayMergeRector::class, CountArrayToEmptyArrayComparisonRector::class, DisallowedEmptyRuleFixerRector::class, InlineArrayReturnAssignRector::class, NewlineAfterStatementRector::class, NewlineBeforeNewAssignSetRector::class, - PostIncDecToPreIncDecRector::class, RemoveAlwaysTrueIfConditionRector::class, SimplifyEmptyCheckOnEmptyArrayRector::class, // Dependencies. diff --git a/src/Git/ArtifactGitRepository.php b/src/Git/ArtifactGitRepository.php index 0271e2b..787c8d7 100644 --- a/src/Git/ArtifactGitRepository.php +++ b/src/Git/ArtifactGitRepository.php @@ -364,7 +364,7 @@ public function isRemoteExists(string $remoteName): bool { * * @throws \CzProject\GitPhp\GitException */ - protected function run(...$args): RunnerResult { + public function run(...$args): RunnerResult { $command = array_shift($args); array_unshift($args, '--no-pager', $command);