chore: cleanup, add PHPStan type annotations

This commit is contained in:
Björn Fromme committed 2026-04-03 13:45:41 +02:00
1 parent a264526127
commit fce6d1615a
14 files changed
+91 -41

No files matched your search

+18
View File
@@ -22,9 +22,15 @@ class LogEntry
#[ORM\Column(type: 'string', length: 255)]
private ?string $message;
/**
* @var array<string, mixed>|null
*/
#[ORM\Column(type: 'json', nullable: true)]
private ?array $context = [];
/**
* @var array<string, mixed>|null
*/
#[ORM\Column(type: 'json', nullable: true)]
private ?array $extra = [];
@@ -70,11 +76,17 @@ class LogEntry
return $this;
}
/**
* @return array<string, mixed>|null
*/
public function getContext(): ?array
{
return $this->context;
}
/**
* @param array<string, mixed>|null $context
*/
public function setContext(?array $context): self
{
$this->context = $context;
@@ -82,11 +94,17 @@ class LogEntry
return $this;
}
/**
* @return array<string, mixed>|null
*/
public function getExtra(): ?array
{
return $this->extra;
}
/**
* @param array<string, mixed>|null $extra
*/
public function setExtra(?array $extra): self
{
$this->extra = $extra;