Skip to content

Commit

Permalink
Make run methods void and put contracted arguments in constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Mar 16, 2023
1 parent 5f40260 commit bc2cbb8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions monorepo/HydeStan/HydeStan.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,14 @@ public function run(string $file, string $contents): array

interface FileAnalyserContract
{
public function run(string $file, string $contents): array;
public function __construct(string $file, string $contents);

public function run(): array;
}

interface LineAnalyserContract
{
public function run(string $file, string $contents, int $lineNumber, string $line): array;
public function __construct(string $file, string $contents, int $lineNumber, string $line);

public function run(): array;
}

0 comments on commit bc2cbb8

Please sign in to comment.