1
0
mirror of https://github.com/Intervention/image.git synced 2025-07-31 11:00:12 +02:00

Rename debug info key for more consistency

This commit is contained in:
Oliver Vogel
2024-12-16 15:40:07 +01:00
parent ce30eb36a3
commit ffd6ccd45d
2 changed files with 2 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ class EncodedImage extends File implements EncodedImageInterface
public function __debugInfo(): array
{
return [
'mimetype' => $this->mimetype(),
'mediaType' => $this->mediaType(),
'size' => $this->size(),
];
}

View File

@@ -61,7 +61,7 @@ final class EncodedImageTest extends BaseTestCase
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']);
}
}