1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-21 13:11:18 +02:00

Extend debug info of Rectangle::class

This commit is contained in:
Oliver Vogel
2025-01-11 10:00:43 +01:00
parent f6e00abf6b
commit 14a7b5b24f

View File

@@ -368,13 +368,14 @@ class Rectangle extends Polygon implements SizeInterface
/**
* Show debug info for the current rectangle
*
* @return array<string, int>
* @return array<string, int|object>
*/
public function __debugInfo(): array
{
return [
'width' => $this->width(),
'height' => $this->height(),
'pivot' => $this->pivot,
];
}
}