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