From ffd6ccd45dd613736cb6b9b4d0a5a61c6e679135 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Mon, 16 Dec 2024 15:40:07 +0100 Subject: [PATCH] Rename debug info key for more consistency --- src/EncodedImage.php | 2 +- tests/Unit/EncodedImageTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EncodedImage.php b/src/EncodedImage.php index b2383b215..ffe210078 100644 --- a/src/EncodedImage.php +++ b/src/EncodedImage.php @@ -59,7 +59,7 @@ public function toDataUri(): string public function __debugInfo(): array { return [ - 'mimetype' => $this->mimetype(), + 'mediaType' => $this->mediaType(), 'size' => $this->size(), ]; } diff --git a/tests/Unit/EncodedImageTest.php b/tests/Unit/EncodedImageTest.php index c430dae64..b35726812 100644 --- a/tests/Unit/EncodedImageTest.php +++ b/tests/Unit/EncodedImageTest.php @@ -61,7 +61,7 @@ public function testMimetype(): void public function testDebugInfo(): void { $info = (new EncodedImage('foo', 'image/png'))->__debugInfo(); - $this->assertEquals('image/png', $info['mimetype']); + $this->assertEquals('image/png', $info['mediaType']); $this->assertEquals(3, $info['size']); } }