Skip to content

Commit c96e145

Browse files
authored
Let PHPStan check array and iterable types & generics (#27)
1 parent c135428 commit c96e145

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/LaunchJobMessage.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ final class LaunchJobMessage
1212
private string $jobName;
1313

1414
/**
15-
* @var array
15+
* @phpstan-var array<string, mixed>
1616
*/
1717
private array $configuration;
1818

19+
/**
20+
* @phpstan-param array<string, mixed> $configuration
21+
*/
1922
public function __construct(string $jobName, array $configuration = [])
2023
{
2124
$this->jobName = $jobName;
@@ -27,6 +30,9 @@ public function getJobName(): string
2730
return $this->jobName;
2831
}
2932

33+
/**
34+
* @phpstan-return array<string, mixed>
35+
*/
3036
public function getConfiguration(): array
3137
{
3238
return $this->configuration;

0 commit comments

Comments
 (0)