Skip to content

Commit 6ee628d

Browse files
committed
Fixed PHP 8 specific issue with patch:validate command
1 parent b609e36 commit 6ee628d

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Incorrect error: Output/AnsiColorMode.php,63,23,PHPCompatibility.Variables.ForbiddenThisUseContext
2+
Incorrect error: Output/AnsiColorMode.php,64,37,PHPCompatibility.Variables.ForbiddenThisUseContext
3+
Incorrect error: Output/AnsiColorMode.php,65,45,PHPCompatibility.Variables.ForbiddenThisUseContext
4+
Incorrect error: Output/AnsiColorMode.php,72,23,PHPCompatibility.Variables.ForbiddenThisUseContext
5+
Incorrect error: Output/AnsiColorMode.php,73,28,PHPCompatibility.Variables.ForbiddenThisUseContext
6+
Incorrect error: Output/AnsiColorMode.php,74,28,PHPCompatibility.Variables.ForbiddenThisUseContext

src/Utils/RepositoryUtils.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ public function __construct()
2222
public function filterByDependency(WritableRepositoryInterface $repository, $dependencyName)
2323
{
2424
$depsRepository = $this->composerDependencies->createCompositeRepository($repository);
25-
$dependentsList = array_map('reset', $depsRepository->getDependents($dependencyName));
25+
$dependents = $depsRepository->getDependents($dependencyName);
26+
$dependentsList = array_column($dependents, 0);
2627

2728
return array_filter($dependentsList);
2829
}

test/scenarios/content-change/.output

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Processing patches configuration
1010

1111
Writing patch info to install file
1212
Processing patches configuration
13+
- Installing vaimo/composer-patches-target1 (1.0.0): Mirroring from modules/composer-patches-target1
1314
- Applying patches for vaimo/composer-patches-target1 (2)
1415
~ {{PATCHES-OWNER}}: patches/1_second-change.patch [CHANGED]
1516
Change: valueC => valueX

0 commit comments

Comments
 (0)