static::class, 'method' => $caller, ], $context)); } protected static function staticLogError(string $message, string $caller, array $context = []): void { Errors::log($message, array_merge([ 'class' => static::class, 'method' => $caller, ], $context)); } }