diff --git a/README.md b/README.md index 3e1a933..d90180f 100644 --- a/README.md +++ b/README.md @@ -1673,7 +1673,7 @@ class Square extends Rectangle } } -function renderLargeRectangles(Rectangle $rectangles): void +function renderLargeRectangles(array $rectangles): void { foreach ($rectangles as $rectangle) { $rectangle->setWidth(4); @@ -1736,7 +1736,7 @@ class Square extends Shape } } -function renderLargeRectangles(Shape $rectangles): void +function renderLargeRectangles(array $rectangles): void { foreach ($rectangles as $rectangle) { if ($rectangle instanceof Square) {