Commit dc5d4d31 authored by Tim Lieberman's avatar Tim Lieberman
Browse files

Override parent constructor in WrappedMonolog to narrow type of wrapped logger.

parent ca126a71
Pipeline #25 failed with stage
in 43 seconds
......@@ -13,6 +13,11 @@ use Monolog\Logger as MonologLogger;
class WrappedMonolog extends WrappedPSR3
public function __construct(MonologLogger $logger)
public function withName(string $name): static
// this works, but requires WrappedPSR3::$logger to be non-private.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment