File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 3131
3232use DateTimeInterface ;
3333use Psr \Http \Message \ResponseInterface ;
34+ use Psr \Log \NullLogger ;
3435use Throwable ;
3536use Firstred \PostNL \Entity \Barcode ;
3637use Firstred \PostNL \Entity \Customer ;
109110use Firstred \PostNL \Service \ShippingStatusServiceInterface ;
110111use Firstred \PostNL \Service \TimeframeService ;
111112use Firstred \PostNL \Service \TimeframeServiceInterface ;
112- use Firstred \PostNL \Util \DummyLogger ;
113113use Firstred \PostNL \Util \RFPdi ;
114114use Firstred \PostNL \Util \Util ;
115115use GuzzleHttp \ClientInterface as GuzzleClientInterface ;
@@ -538,7 +538,7 @@ public function setLogger(LoggerInterface $logger): void
538538 */
539539 public function resetLogger (): static
540540 {
541- $ this ->logger = new DummyLogger ();
541+ $ this ->logger = new NullLogger ();
542542
543543 return $ this ;
544544 }
Original file line number Diff line number Diff line change 3737 * Class DummyLogger.
3838 *
3939 * @internal
40+ * @deprecated since 2.0.9. Use the NullLogger from psr/log instead.
4041 */
4142class DummyLogger implements LoggerInterface
4243{
Original file line number Diff line number Diff line change 4343use Firstred \PostNL \Exception \InvalidArgumentException ;
4444use Firstred \PostNL \HttpClient \MockHttpClient ;
4545use Firstred \PostNL \PostNL ;
46- use Firstred \PostNL \Util \DummyLogger ;
4746use GuzzleHttp \Handler \MockHandler ;
4847use GuzzleHttp \HandlerStack ;
4948use GuzzleHttp \Psr7 \Response ;
5049use PHPUnit \Framework \Attributes \TestDox ;
5150use PHPUnit \Framework \Error ;
5251use PHPUnit \Framework \TestCase ;
52+ use Psr \Log \NullLogger ;
5353
5454#[TestDox(text: 'The PostNL object ' )]
5555class PostNLRestTest extends TestCase
@@ -106,7 +106,7 @@ public function testSetNullLogger(): void
106106 {
107107 $ this ->postnl ->resetLogger ();
108108
109- $ this ->assertInstanceOf (expected: DummyLogger ::class, actual: $ this ->postnl ->getLogger ());
109+ $ this ->assertInstanceOf (expected: NullLogger ::class, actual: $ this ->postnl ->getLogger ());
110110 }
111111
112112 /** @throws */
You can’t perform that action at this time.
0 commit comments