Skip to content

Commit f1c13a3

Browse files
committed
refactor: melhorar a documentação do construtor da classe Reader
Signed-off-by: Felipe Sayão Lobato Abreu <github@mentordosnerds.com>
1 parent 0de8b19 commit f1c13a3

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/License/Reader.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
use FastForward\DevTools\Composer\Json\ComposerJson;
2222
use Psr\Clock\ClockInterface;
23-
use Safe\Exceptions\JsonException;
2423

2524
/**
2625
* Reads composer.json and exposes metadata for license generation.
@@ -35,10 +34,8 @@
3534
* Creates a new Reader instance.
3635
*
3736
* @param ComposerJson $source The source file to read from, typically composer.json
38-
* @param ClockInterface $clock
39-
* @param ComposerJson $composerJson
40-
*
41-
* @throws JsonException if the JSON content is invalid
37+
* @param ClockInterface $clock Clock instance for obtaining the current year if needed
38+
* @param ComposerJson $composerJson the composer.json accessor for extracting metadata
4239
*/
4340
public function __construct(
4441
private ClockInterface $clock,

0 commit comments

Comments
 (0)