From 9f780cb9a0ba32621235f08e91911dbf947b3097 Mon Sep 17 00:00:00 2001 From: Michael Vasseur <14887731+vmcj@users.noreply.github.com> Date: Sat, 22 Jul 2023 20:29:19 +0200 Subject: [PATCH] Add missing annotations for PHPStan --- webapp/src/Entity/Language.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webapp/src/Entity/Language.php b/webapp/src/Entity/Language.php index fcf35c5a15..879a107937 100644 --- a/webapp/src/Entity/Language.php +++ b/webapp/src/Entity/Language.php @@ -211,6 +211,9 @@ public function getCompileExecutableHash(): ?string return $this->compile_executable?->getImmutableExecutable()->getHash(); } + /** + * @return array + */ #[Serializer\VirtualProperty] #[Serializer\SerializedName('compiler')] #[Serializer\Exclude(if:'object.getCompilerVersionCommand() == ""')] @@ -226,6 +229,9 @@ public function getCompilerData(): ?array return $ret; } + /** + * @return array + */ #[Serializer\VirtualProperty] #[Serializer\SerializedName('runner')] #[Serializer\Exclude(if:'object.getRunnerVersionCommand() == ""')]