Skip to content

Commit

Permalink
Rename debug info key for more consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Dec 16, 2024
1 parent ce30eb3 commit ffd6ccd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/EncodedImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function toDataUri(): string
public function __debugInfo(): array
{
return [
'mimetype' => $this->mimetype(),
'mediaType' => $this->mediaType(),
'size' => $this->size(),
];
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/EncodedImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
}

0 comments on commit ffd6ccd

Please sign in to comment.