The property "App\Entity\Conference::$slug" is not readable because it is typed "string". You should either initialize it or make it nullable using "?string" instead.
private ?string $slug;
// ...
public function getSlug(): ?string
{
return $this->slug;
}
public function setSlug(string $slug): self
{
$this->slug = $slug;
return $this;
}
private ?string $slug = null;
If a typed property does not have a default value, no implicit null default value is implied (even if the property is nullable). Instead, the property is considered to be uninitialized. Reads from uninitialized properties will generate a TypeErrorhttps://wiki.php.net/rfc/typed_properties_v2#unini...