From b488cc2accc1cd84c316c4fc041544ef0b47e41b Mon Sep 17 00:00:00 2001 From: Yuriy Zinchenko Date: Mon, 18 Sep 2017 17:47:44 +0300 Subject: [PATCH] fix example in LSP section --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {