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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user