Jelajahi Sumber

Remove `final` from class declaration (#1859)

Most (if not all) other classes in the project are not marked as final.

Although it's possible to extend the functionality of this class by using composition, it goes against how the rest of the library works for no apparent reason.

In my use case, I was trying to add a field linking the log entry to a request [as described in the Cloud Logging documentation](https://cloud.google.com/run/docs/logging#correlate-logs).
Luiz “Felds” Liscia 1 tahun lalu
induk
melakukan
ee7e2fa4df
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/Monolog/Formatter/GoogleCloudLoggingFormatter.php

+ 1 - 1
src/Monolog/Formatter/GoogleCloudLoggingFormatter.php

@@ -22,7 +22,7 @@ use Monolog\LogRecord;
  *
  *
  * @author Luís Cobucci <lcobucci@gmail.com>
  * @author Luís Cobucci <lcobucci@gmail.com>
  */
  */
-final class GoogleCloudLoggingFormatter extends JsonFormatter
+class GoogleCloudLoggingFormatter extends JsonFormatter
 {
 {
     protected function normalizeRecord(LogRecord $record): array
     protected function normalizeRecord(LogRecord $record): array
     {
     {