Not Implemented Exception (ARCH7156)
Esta página aún no está disponible en tu idioma.
Key php.logging.not-implemented · Severity warning · Category logging
Leaving not implemented placeholder exceptions in shipped code paths causes unexpected runtime crashes.
Incorrect
Section titled “Incorrect”<?phppublic function exportReport(int $id): string{ throw new \RuntimeException('Not implemented yet');}Correct
Section titled “Correct”<?phppublic function exportReport(int $id): string{ $report = $this->repository->find($id); return $this->renderer->toPdf($report);}Replace placeholder exceptions with a real implementation, or don’t ship the code path.