Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SRWieZ committed Sep 8, 2024
1 parent fb5e4ed commit a1ae4e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: xdebug
# coverage: xdebug

- name: Get composer cache directory
id: composer-cache
Expand Down
3 changes: 3 additions & 0 deletions src/whatsdiff.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ function diffComposerLockPackages($last, $previous)

function printDiff(array $diff): void
{
if (!count($diff)) {
return;
}
$maxStrLen = max(array_map('strlen', array_keys($diff)));
$maxStrLenVersion = max(array_map(fn ($el) => strlen($el[0]), $diff));
foreach ($diff as $package => $infos) {
Expand Down

0 comments on commit a1ae4e7

Please sign in to comment.