Skip to content

Commit

Permalink
Let PHPStan check array and iterable types & generics (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
yann-eugone authored Jul 16, 2021
1 parent c135428 commit c96e145
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/LaunchJobMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ final class LaunchJobMessage
private string $jobName;

/**
* @var array
* @phpstan-var array<string, mixed>
*/
private array $configuration;

/**
* @phpstan-param array<string, mixed> $configuration
*/
public function __construct(string $jobName, array $configuration = [])
{
$this->jobName = $jobName;
Expand All @@ -27,6 +30,9 @@ public function getJobName(): string
return $this->jobName;
}

/**
* @phpstan-return array<string, mixed>
*/
public function getConfiguration(): array
{
return $this->configuration;
Expand Down

0 comments on commit c96e145

Please sign in to comment.