Skip to content

Commit

Permalink
fix phpstan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Sep 11, 2023
1 parent b0e55d0 commit 5cd75c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Exceptions/CouldNotCompare.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class CouldNotCompare extends Exception
{
public static function imageDimensionsDiffer($pathA, $pathB): self
public static function imageDimensionsDiffer(string $pathA, string $pathB): self
{
return new self("Could not compare `{$pathA}` with `{$pathB }` as these images have different dimensions.");
}
Expand Down
4 changes: 3 additions & 1 deletion src/Pixelmatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ public function getResult(): PixelmatchResult
}

/**
* @return array<int, ?string>
* @param array<string, mixed> $arguments
*
* @return array<int, string|false|null>
*/
protected function getCommand(array $arguments): array
{
Expand Down

0 comments on commit 5cd75c3

Please sign in to comment.