I am currently working my way into an existing Laravel project. In one class I found the following method:
public static function someEncodedString($encodedString): static
{
return new static(base64_decode((string) $encodedString));
}
I wonder what the return type static means. And why return a static object at all. Why do you do that?