Skip to content

Commit 1ddc9a0

Browse files
committed
Rename debug info key for more consistency
1 parent 86fe195 commit 1ddc9a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/EncodedImage.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function toDataUri(): string
5959
public function __debugInfo(): array
6060
{
6161
return [
62-
'mimetype' => $this->mimetype(),
62+
'mediaType' => $this->mediaType(),
6363
'size' => $this->size(),
6464
];
6565
}

tests/Unit/EncodedImageTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function testMimetype(): void
6161
public function testDebugInfo(): void
6262
{
6363
$info = (new EncodedImage('foo', 'image/png'))->__debugInfo();
64-
$this->assertEquals('image/png', $info['mimetype']);
64+
$this->assertEquals('image/png', $info['mediaType']);
6565
$this->assertEquals(3, $info['size']);
6666
}
6767
}

0 commit comments

Comments
 (0)