Skip to content

Commit

Permalink
Allow passing PSR-3 loggers to setLogger as they are compatible (#1304)
Browse files Browse the repository at this point in the history
* Allow passing PSR-3 loggers to setLogger as they are compatible

* Fix cs

Co-authored-by: Dominic Charley-Roy <[email protected]>
  • Loading branch information
Seldaek and dcr-stripe authored Aug 15, 2022
1 parent 5dd4a24 commit c36f057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Stripe.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public static function getLogger()
}

/**
* @param Util\LoggerInterface $logger the logger to which the library
* @param \Psr\Log\LoggerInterface|Util\LoggerInterface $logger the logger to which the library
* will produce messages
*/
public static function setLogger($logger)
Expand Down

0 comments on commit c36f057

Please sign in to comment.