1
0
mirror of https://github.com/jupeter/clean-code-php.git synced 2025-09-28 15:09:00 +02:00

fix example in LSP section

This commit is contained in:
Yuriy Zinchenko
2017-09-18 17:47:44 +03:00
parent 4386410294
commit b488cc2acc

View File

@@ -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) {