From c96e1457250f32807af019d63ebd2ab4f3bc3e83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20Eugon=C3=A9?= Date: Fri, 16 Jul 2021 12:12:25 +0200 Subject: [PATCH] Let PHPStan check array and iterable types & generics (#27) --- src/LaunchJobMessage.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/LaunchJobMessage.php b/src/LaunchJobMessage.php index de2cf53..8c7c5e7 100644 --- a/src/LaunchJobMessage.php +++ b/src/LaunchJobMessage.php @@ -12,10 +12,13 @@ final class LaunchJobMessage private string $jobName; /** - * @var array + * @phpstan-var array */ private array $configuration; + /** + * @phpstan-param array $configuration + */ public function __construct(string $jobName, array $configuration = []) { $this->jobName = $jobName; @@ -27,6 +30,9 @@ public function getJobName(): string return $this->jobName; } + /** + * @phpstan-return array + */ public function getConfiguration(): array { return $this->configuration;