Skip to content

Commit

Permalink
Fix tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SRWieZ committed Sep 8, 2024
1 parent a1ae4e7 commit 8f0cfdd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
6 changes: 3 additions & 3 deletions src/whatsdiff.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ function diffComposerLockPackages($last, $previous)

function printDiff(array $diff): void
{
if (!count($diff)) {
return;
}
// 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 8f0cfdd

Please sign in to comment.