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:
@@ -59,7 +59,7 @@ class EncodedImage extends File implements EncodedImageInterface
|
||||
public function __debugInfo(): array
|
||||
{
|
||||
return [
|
||||
'mimetype' => $this->mimetype(),
|
||||
'mediaType' => $this->mediaType(),
|
||||
'size' => $this->size(),
|
||||
];
|
||||
}
|
||||
|
@@ -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']);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user