Skip to content

Commit

Permalink
Extend debug info of Rectangle::class
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Jan 11, 2025
1 parent f6e00ab commit 14a7b5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Geometry/Rectangle.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,13 +368,14 @@ protected function resizer(?int $width = null, ?int $height = null): RectangleRe
/**
* 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,
];
}
}

0 comments on commit 14a7b5b

Please sign in to comment.