Skip to content

Commit 0108bab

Browse files
SanderMullerclaude
authored andcommitted
Say what the time of a rule on CollectedDataNode covers
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent c9f515e commit 0108bab

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/Analyser/AnalyserResultFinalizer.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public function __construct(
4040
}
4141

4242
/**
43-
* @param Closure(string $ruleClass): void|null $preRuleCallback called before each rule on CollectedDataNode runs
44-
* @param Closure(): void|null $postRuleCallback called after each of those rules, also when it throws
43+
* @param Closure(string $ruleClass): void|null $preRuleCallback
44+
* @param Closure(): void|null $postRuleCallback called when the rule's processNode() has returned or thrown, before its errors are processed
4545
*/
4646
public function finalize(
4747
AnalyserResult $analyserResult,

‎src/Command/AnalyseApplication.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ private function runAnalyser(
299299
* Prints the rules on CollectedDataNode the way --debug prints the analysed files. They run after
300300
* all files and can take longer than the analysis itself.
301301
*
302-
* @return array{(Closure(string $ruleClass): void)|null, (Closure(): void)|null}
302+
* @return array{Closure(string $ruleClass): void|null, Closure(): void|null}
303303
*/
304304
private function createRuleCallbacks(bool $debug, Output $stdOutput): array
305305
{

0 commit comments

Comments
 (0)