From 14a7b5b24fe6f9f6b5e15936c9f85c507ebca92d Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Sat, 11 Jan 2025 10:00:43 +0100 Subject: [PATCH] Extend debug info of Rectangle::class --- src/Geometry/Rectangle.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Geometry/Rectangle.php b/src/Geometry/Rectangle.php index 22da194e..484364f9 100644 --- a/src/Geometry/Rectangle.php +++ b/src/Geometry/Rectangle.php @@ -368,13 +368,14 @@ class Rectangle extends Polygon implements SizeInterface /** * Show debug info for the current rectangle * - * @return array + * @return array */ public function __debugInfo(): array { return [ 'width' => $this->width(), 'height' => $this->height(), + 'pivot' => $this->pivot, ]; } }