Skip to content

Commit

Permalink
Add missing annotations for PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
vmcj committed Jul 22, 2023
1 parent 1a0b40e commit 9f780cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions webapp/src/Entity/Language.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ public function getCompileExecutableHash(): ?string
return $this->compile_executable?->getImmutableExecutable()->getHash();
}

/**
* @return array<string, string|null>
*/
#[Serializer\VirtualProperty]
#[Serializer\SerializedName('compiler')]
#[Serializer\Exclude(if:'object.getCompilerVersionCommand() == ""')]
Expand All @@ -226,6 +229,9 @@ public function getCompilerData(): ?array
return $ret;
}

/**
* @return array<string, string|null>
*/
#[Serializer\VirtualProperty]
#[Serializer\SerializedName('runner')]
#[Serializer\Exclude(if:'object.getRunnerVersionCommand() == ""')]
Expand Down

0 comments on commit 9f780cb

Please sign in to comment.