Skip to content

Commit

Permalink
feat: Show the PHAR signature in the PHAR diff command
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Oct 9, 2023
1 parent d65001c commit 268cbbe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/Command/Diff.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ private static function renderArchive(string $fileName, PharInfo $pharInfo, IO $
);

PharInfoRenderer::renderCompression($pharInfo, $io);
// Omit the signature
PharInfoRenderer::renderSignature($pharInfo, $io);
PharInfoRenderer::renderMetadata($pharInfo, $io);
PharInfoRenderer::renderContentsSummary($pharInfo, $io);
}
Expand Down
4 changes: 4 additions & 0 deletions tests/Console/Command/DiffTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,12 +346,16 @@ static function (CommandTester $commandTester): string {
Archive: simple-phar-bar.phar
Archive Compression: None
Files Compression: None
Signature: SHA-1
Signature Hash: 9ADC09F73909EDF14F8A4ABF9758B6FFAD1BBC51
Metadata: None
Contents: 1 file (6.64KB)
Archive: simple-phar-bar-compressed.phar
Archive Compression: None
Files Compression: GZ
Signature: SHA-1
Signature Hash: 3A388D86C91C36659A043D52C2DEB64E8848DD1A
Metadata: None
Contents: 1 file (6.65KB)
Expand Down

0 comments on commit 268cbbe

Please sign in to comment.